diff --git a/src/DataProtection/Az.DataProtection.format.ps1xml b/src/DataProtection/Az.DataProtection.format.ps1xml index b16896515565..da279660003c 100644 --- a/src/DataProtection/Az.DataProtection.format.ps1xml +++ b/src/DataProtection/Az.DataProtection.format.ps1xml @@ -35,6 +35,34 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesCreateOrUpdateAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesCreateOrUpdateAcceptedResponseHeaders + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesDeleteAcceptedResponseHeaders @@ -69,6 +97,176 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesResumeBackupsAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesResumeBackupsAcceptedResponseHeaders + + + + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + RetryAfter + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesResumeProtectionAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesResumeProtectionAcceptedResponseHeaders + + + + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + RetryAfter + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesStopProtectionAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesStopProtectionAcceptedResponseHeaders + + + + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + RetryAfter + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesSuspendBackupsAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesSuspendBackupsAcceptedResponseHeaders + + + + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + RetryAfter + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesSyncBackupInstanceAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesSyncBackupInstanceAcceptedResponseHeaders + + + + + + + + + + + + + + + + + + AzureAsyncOperation + + + Location + + + RetryAfter + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.BackupInstancesTriggerRehydrateAcceptedResponseHeaders @@ -384,9 +582,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource @@ -412,9 +610,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AbsoluteDeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AbsoluteDeleteOption @@ -440,9 +638,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptions - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptions @@ -462,9 +660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOption @@ -484,9 +682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTriggerContext @@ -506,9 +704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials @@ -528,9 +726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupDiscreteRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupDiscreteRecoveryPoint @@ -598,9 +796,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequest @@ -632,9 +830,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequestResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequestResource @@ -678,9 +876,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponse @@ -700,9 +898,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponseResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponseResource @@ -722,9 +920,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJob - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJob @@ -906,9 +1104,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResource @@ -928,9 +1126,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResourceList @@ -950,9 +1148,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupParams - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupParams @@ -978,9 +1176,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPoint @@ -1000,9 +1198,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointBasedRestoreRequest @@ -1012,6 +1210,9 @@ + + + @@ -1025,6 +1226,9 @@ SourceDataStoreType + + SourceResourceId + RecoveryPointId @@ -1034,9 +1238,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResource @@ -1056,9 +1260,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResourceList @@ -1078,9 +1282,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryTimeBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryTimeBasedRestoreRequest @@ -1090,6 +1294,9 @@ + + + @@ -1103,6 +1310,9 @@ SourceDataStoreType + + SourceResourceId + RecoveryPointTime @@ -1112,9 +1322,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRehydrationRequest @@ -1146,9 +1356,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest @@ -1158,6 +1368,9 @@ + + + @@ -1168,15 +1381,18 @@ SourceDataStoreType + + SourceResourceId + - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreWithRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreWithRehydrationRequest @@ -1189,6 +1405,9 @@ + + + @@ -1208,6 +1427,9 @@ SourceDataStoreType + + SourceResourceId + RehydrationPriority @@ -1220,9 +1442,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRule @@ -1248,9 +1470,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettings + + + + + + + + + + + + AlertsForAllJobFailure + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureOperationalStoreParameters + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureOperationalStoreParameters @@ -1282,9 +1526,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureRetentionRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureRetentionRule @@ -1316,9 +1560,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupCriteria @@ -1338,9 +1582,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstance @@ -1356,6 +1600,9 @@ + + + @@ -1372,15 +1619,18 @@ ProvisioningState + + ValidationType + - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResourceList @@ -1400,9 +1650,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParameters @@ -1422,9 +1672,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupPolicy @@ -1450,9 +1700,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupSchedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupSchedule @@ -1478,9 +1728,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVault @@ -1506,9 +1756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResource @@ -1540,9 +1790,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResourceList @@ -1562,9 +1812,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicy @@ -1590,9 +1840,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResource @@ -1612,9 +1862,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResourceList @@ -1634,9 +1884,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRule @@ -1662,9 +1912,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityRequest @@ -1684,9 +1934,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityResult @@ -1718,9 +1968,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplay - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplay @@ -1758,9 +2008,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForLogSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForLogSpecification @@ -1792,9 +2042,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryResponse @@ -1814,9 +2064,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryValueForSingleApi - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryValueForSingleApi @@ -1848,9 +2098,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOnExpiryOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOnExpiryOption @@ -1870,9 +2120,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption @@ -1892,9 +2142,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CustomCopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CustomCopyOption @@ -1920,9 +2170,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource @@ -1972,9 +2222,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet @@ -2030,9 +2280,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase @@ -2058,9 +2308,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreParameters @@ -2086,9 +2336,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Day - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Day @@ -2114,9 +2364,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOption @@ -2142,9 +2392,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResource @@ -2164,9 +2414,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResourceList @@ -2186,9 +2436,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetails @@ -2214,9 +2464,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource @@ -2236,9 +2486,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResourceList @@ -2258,9 +2508,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResource @@ -2292,9 +2542,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceList @@ -2314,9 +2564,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTags @@ -2336,9 +2586,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequest @@ -2382,9 +2632,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeaders - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeaders @@ -2404,9 +2654,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParameters @@ -2426,9 +2676,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error @@ -2460,9 +2710,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ExportJobsResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ExportJobsResult @@ -2500,9 +2750,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequest @@ -2534,9 +2784,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequestBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequestBase @@ -2556,9 +2806,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationResponse @@ -2584,9 +2834,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationResponseBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationResponseBase @@ -2606,9 +2856,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ImmediateCopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ImmediateCopyOption @@ -2628,9 +2878,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerError - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerError @@ -2650,9 +2900,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorAdditionalInfo @@ -2672,9 +2922,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria @@ -2694,9 +2944,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreTargetInfo @@ -2728,9 +2978,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfo @@ -2762,9 +3012,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetails @@ -2784,9 +3034,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTask @@ -2824,9 +3074,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetails @@ -2846,9 +3096,77 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.KubernetesPvRestoreCriteria + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.KubernetesPvRestoreCriteria + + + + + + + + + + + + + + + + + + ObjectType + + + Name + + + StorageClassName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.KubernetesStorageClassRestoreCriteria + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.KubernetesStorageClassRestoreCriteria + + + + + + + + + + + + + + + + + + ObjectType + + + Provisioner + + + SelectedStorageClassName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfo @@ -2868,9 +3186,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationJobExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationJobExtendedInfo @@ -2896,9 +3214,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationResource @@ -2936,9 +3254,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTags @@ -2958,9 +3276,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfo @@ -2986,9 +3304,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetails @@ -3008,9 +3326,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RangeBasedItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RangeBasedItemLevelRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RangeBasedItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RangeBasedItemLevelRestoreCriteria @@ -3042,9 +3360,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointDataStoreDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointDataStoreDetails @@ -3100,9 +3418,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointsFilters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointsFilters @@ -3152,9 +3470,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuard + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuard - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuard + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuard @@ -3162,13 +3480,13 @@ - + - + - + @@ -3178,13 +3496,13 @@ AllowAutoApproval - Description + CriticalOperationExclusionList - ProvisioningState + Description - VaultCriticalOperationExclusionList + ProvisioningState @@ -3192,9 +3510,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperation + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperation + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperation @@ -3220,9 +3538,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResource @@ -3272,9 +3590,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResourceList @@ -3294,9 +3612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetails @@ -3340,9 +3658,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRange - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRange @@ -3374,9 +3692,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreFilesTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreFilesTargetInfo @@ -3408,9 +3726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails @@ -3436,9 +3754,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfo @@ -3470,9 +3788,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase @@ -3504,9 +3822,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTag - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTag @@ -3532,9 +3850,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ScheduleBasedBackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ScheduleBasedBackupCriteria @@ -3584,9 +3902,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ScheduleBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ScheduleBasedTriggerContext @@ -3606,9 +3924,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreBasedAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreBasedAuthCredentials - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreBasedAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreBasedAuthCredentials @@ -3628,9 +3946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource @@ -3640,6 +3958,9 @@ + + + @@ -3650,15 +3971,18 @@ Uri + + Value + - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSetting @@ -3678,9 +4002,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SupportedFeature - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SupportedFeature @@ -3712,9 +4036,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SyncBackupInstanceRequest + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SyncBackupInstanceRequest + + + + + + + + + + + + SyncType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData @@ -3764,9 +4110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TaggingCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TaggingCriteria @@ -3792,9 +4138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetails @@ -3826,9 +4172,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext @@ -3848,9 +4194,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingError - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingError @@ -3900,9 +4246,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorProperties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorProperties diff --git a/src/DataProtection/Az.DataProtection.psd1 b/src/DataProtection/Az.DataProtection.psd1 index 275d0b14816a..92d5deb1b37c 100644 --- a/src/DataProtection/Az.DataProtection.psd1 +++ b/src/DataProtection/Az.DataProtection.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/31/2021 +# Generated on: 6/13/2022 # @{ @@ -12,7 +12,7 @@ RootModule = './Az.DataProtection.psm1' # Version number of this module. -ModuleVersion = '0.3.1' +ModuleVersion = '0.4.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -80,6 +80,7 @@ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'Get-AzDataProtectionOperation', 'Get-AzDataProtectionPolicyTemplate', 'Get-AzDataProtectionRecoveryPoint', + 'Get-AzDataProtectionResourceGuard', 'Initialize-AzDataProtectionBackupInstance', 'Initialize-AzDataProtectionRestoreRequest', 'New-AzDataProtectionBackupInstance', @@ -88,15 +89,22 @@ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'New-AzDataProtectionBackupVaultStorageSettingObject', 'New-AzDataProtectionPolicyTagCriteriaClientObject', 'New-AzDataProtectionPolicyTriggerScheduleClientObject', + 'New-AzDataProtectionResourceGuard', 'New-AzDataProtectionRetentionLifeCycleClientObject', 'Remove-AzDataProtectionBackupInstance', 'Remove-AzDataProtectionBackupPolicy', 'Remove-AzDataProtectionBackupVault', + 'Remove-AzDataProtectionResourceGuard', + 'Resume-AzDataProtectionBackupInstanceProtection', 'Search-AzDataProtectionBackupInstanceInAzGraph', 'Search-AzDataProtectionJobInAzGraph', 'Start-AzDataProtectionBackupInstanceRestore', + 'Stop-AzDataProtectionBackupInstanceProtection', + 'Suspend-AzDataProtectionBackupInstanceBackup', + 'Sync-AzDataProtectionBackupInstance', 'Update-AzDataProtectionBackupInstanceAssociatedPolicy', - 'Update-AzDataProtectionBackupVault' + 'Update-AzDataProtectionBackupVault', + 'Update-AzDataProtectionResourceGuard' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -134,7 +142,12 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed trigger schedule client for ''New-AzDataProtectionPolicyTriggerScheduleClientObject''' + ReleaseNotes = '* Added support for CRUD of resource guard resource. +* Added support for protection related commands with swagger refresh + - Resume-AzDataProtectionBackupInstanceProtection + - Stop-AzDataProtectionBackupInstanceProtection + - Suspend-AzDataProtectionBackupInstanceBackup + - Sync-AzDataProtectionBackupInstance' # Prerelease string of this module # Prerelease = '' diff --git a/src/DataProtection/Az.DataProtection.psm1 b/src/DataProtection/Az.DataProtection.psm1 index c5d294f7718a..c2b95760209c 100644 --- a/src/DataProtection/Az.DataProtection.psm1 +++ b/src/DataProtection/Az.DataProtection.psm1 @@ -1,6 +1,6 @@ # region Generated -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. + # ---------------------------------------------------------------------------------- + # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -12,92 +12,104 @@ # limitations under the License. # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. -# ---------------------------------------------------------------------------------- -# Load required Az.Accounts module -$accountsName = 'Az.Accounts' -$accountsModule = Get-Module -Name $accountsName -if(-not $accountsModule) { - $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' - if(Test-Path -Path $localAccountsPath) { - $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 - if($localAccounts) { - $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru - } - } + # ---------------------------------------------------------------------------------- + # Load required Az.Accounts module + $accountsName = 'Az.Accounts' + $accountsModule = Get-Module -Name $accountsName if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0 - if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru + $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules' + if(Test-Path -Path $localAccountsPath) { + $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1 + if($localAccounts) { + $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru + } + } + if(-not $accountsModule) { + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 + if($hasAdequateVersion) { + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru + } } } -} -if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.2.3 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.2.3') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop -} -Write-Information "Loaded Module '$($accountsModule.Name)'" -# Load the private module dll -$null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.DataProtection.private.dll') -# Get the private module's instance -$instance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module]::Instance -# Ask for the shared functionality table -$VTable = Register-AzModule -# Tweaks the pipeline on module load -$instance.OnModuleLoad = $VTable.OnModuleLoad - -# Tweaks the pipeline per call -$instance.OnNewRequest = $VTable.OnNewRequest + if(-not $accountsModule) { + 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 + } + Write-Information "Loaded Module '$($accountsModule.Name)'" -# Gets shared parameter values -$instance.GetParameterValue = $VTable.GetParameterValue + # Load the private module dll + $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.DataProtection.private.dll') -# Allows shared module to listen to events from this module -$instance.EventListener = $VTable.EventListener + # Get the private module's instance + $instance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module]::Instance -# Gets shared argument completers -$instance.ArgumentCompleter = $VTable.ArgumentCompleter + # Ask for the shared functionality table + $VTable = Register-AzModule + + # Tweaks the pipeline on module load + $instance.OnModuleLoad = $VTable.OnModuleLoad -# The name of the currently selected Azure profile -$instance.ProfileName = $VTable.ProfileName + # Following two delegates are added for telemetry + $instance.GetTelemetryId = $VTable.GetTelemetryId + $instance.Telemetry = $VTable.Telemetry + -# Load the custom module -$customModulePath = Join-Path $PSScriptRoot './custom/Az.DataProtection.custom.psm1' -if(Test-Path $customModulePath) { - $null = Import-Module -Name $customModulePath -} + # Tweaks the pipeline per call + $instance.OnNewRequest = $VTable.OnNewRequest + + # Gets shared parameter values + $instance.GetParameterValue = $VTable.GetParameterValue + + # Allows shared module to listen to events from this module + $instance.EventListener = $VTable.EventListener + + # Gets shared argument completers + $instance.ArgumentCompleter = $VTable.ArgumentCompleter + + # The name of the currently selected Azure profile + $instance.ProfileName = $VTable.ProfileName -# Export nothing to clear implicit exports -Export-ModuleMember -# Export proxy cmdlet scripts -$exportsPath = Join-Path $PSScriptRoot './exports' -$directories = Get-ChildItem -Directory -Path $exportsPath -$profileDirectory = $null -if($instance.ProfileName) { - if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { - $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } - } else { - # Don't export anything if the profile doesn't exist for the module - $exportsPath = $null - Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + + # Load the custom module + $customModulePath = Join-Path $PSScriptRoot './custom/Az.DataProtection.custom.psm1' + if(Test-Path $customModulePath) { + $null = Import-Module -Name $customModulePath } -} elseif(($directories | Measure-Object).Count -gt 0) { - # Load the last folder if no profile is selected - $profileDirectory = $directories | Select-Object -Last 1 -} + + # Export nothing to clear implicit exports + Export-ModuleMember -if($profileDirectory) { - Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" - $exportsPath = $profileDirectory.FullName -} + # Export proxy cmdlet scripts + $exportsPath = Join-Path $PSScriptRoot './exports' + $directories = Get-ChildItem -Directory -Path $exportsPath + $profileDirectory = $null + if($instance.ProfileName) { + if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) { + $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName } + } else { + # Don't export anything if the profile doesn't exist for the module + $exportsPath = $null + Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded." + } + } elseif(($directories | Measure-Object).Count -gt 0) { + # Load the last folder if no profile is selected + $profileDirectory = $directories | Select-Object -Last 1 + } + + if($profileDirectory) { + Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" + $exportsPath = $profileDirectory.FullName + } + + if($exportsPath) { + Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } + $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath + Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) + } -if($exportsPath) { - Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } - $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath - Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias) -} -# Finalize initialization of this module -$instance.Init(); -Write-Information "Loaded Module '$($instance.Name)'" + # Finalize initialization of this module + $instance.Init(); + Write-Information "Loaded Module '$($instance.Name)'" # endregion diff --git a/src/DataProtection/Changelog.md b/src/DataProtection/Changelog.md index 16295d611295..a731302dff36 100644 --- a/src/DataProtection/Changelog.md +++ b/src/DataProtection/Changelog.md @@ -19,6 +19,14 @@ --> ## Upcoming Release +## Version 0.4.0 +* Added support for CRUD of resource guard resource. +* Added support for protection related commands with swagger refresh + - Resume-AzDataProtectionBackupInstanceProtection + - Stop-AzDataProtectionBackupInstanceProtection + - Suspend-AzDataProtectionBackupInstanceBackup + - Sync-AzDataProtectionBackupInstance + ## Version 0.3.1 * Fixed trigger schedule client for `New-AzDataProtectionPolicyTriggerScheduleClientObject` diff --git a/src/DataProtection/DataProtection.sln b/src/DataProtection/DataProtection.sln index 55690a5a37a1..4168b1ab028d 100644 --- a/src/DataProtection/DataProtection.sln +++ b/src/DataProtection/DataProtection.sln @@ -3,17 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.30114.105 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{AD8D1817-2358-4320-B718-E92CA4C74FE9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{8B37AE1D-B764-4A41-B018-9BA0E911A79A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{1C133492-9CF9-444E-8794-5789DA6FE530}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{D705EA30-0516-432A-BE2C-D248BF20C76F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{6AED1BBF-69B3-45B7-81FE-85D5190495FE}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{5410B86A-CB47-4AE6-8679-4A4501B96AB3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{91FEB133-C265-4E93-BA74-591F1F939FE0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{70BA4779-D992-4F6F-8025-8DE925D55A7B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{090FC6B6-DA04-4DB8-BF49-6422A402D6F7}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{CA4F659D-DCDA-4ABF-87CD-82E433F86685}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{A3E6B273-1352-4D22-8459-788D33861F0B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{8D1ABE91-66E5-43AF-B28E-E5D506335D60}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -28,77 +28,77 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|x64.ActiveCfg = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|x64.Build.0 = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|x86.ActiveCfg = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Debug|x86.Build.0 = Debug|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|Any CPU.Build.0 = Release|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|x64.ActiveCfg = Release|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|x64.Build.0 = Release|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|x86.ActiveCfg = Release|Any CPU - {AD8D1817-2358-4320-B718-E92CA4C74FE9}.Release|x86.Build.0 = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|x64.ActiveCfg = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|x64.Build.0 = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|x86.ActiveCfg = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Debug|x86.Build.0 = Debug|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|Any CPU.Build.0 = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|x64.ActiveCfg = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|x64.Build.0 = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|x86.ActiveCfg = Release|Any CPU - {1C133492-9CF9-444E-8794-5789DA6FE530}.Release|x86.Build.0 = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|x64.ActiveCfg = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|x64.Build.0 = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|x86.ActiveCfg = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Debug|x86.Build.0 = Debug|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|Any CPU.Build.0 = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|x64.ActiveCfg = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|x64.Build.0 = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|x86.ActiveCfg = Release|Any CPU - {6AED1BBF-69B3-45B7-81FE-85D5190495FE}.Release|x86.Build.0 = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|x64.ActiveCfg = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|x64.Build.0 = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|x86.ActiveCfg = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Debug|x86.Build.0 = Debug|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|Any CPU.Build.0 = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|x64.ActiveCfg = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|x64.Build.0 = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|x86.ActiveCfg = Release|Any CPU - {91FEB133-C265-4E93-BA74-591F1F939FE0}.Release|x86.Build.0 = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|x64.ActiveCfg = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|x64.Build.0 = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|x86.ActiveCfg = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Debug|x86.Build.0 = Debug|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|Any CPU.Build.0 = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|x64.ActiveCfg = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|x64.Build.0 = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|x86.ActiveCfg = Release|Any CPU - {090FC6B6-DA04-4DB8-BF49-6422A402D6F7}.Release|x86.Build.0 = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|x64.ActiveCfg = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|x64.Build.0 = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|x86.ActiveCfg = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Debug|x86.Build.0 = Debug|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|Any CPU.Build.0 = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|x64.ActiveCfg = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|x64.Build.0 = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|x86.ActiveCfg = Release|Any CPU - {A3E6B273-1352-4D22-8459-788D33861F0B}.Release|x86.Build.0 = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|x64.ActiveCfg = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|x64.Build.0 = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|x86.ActiveCfg = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Debug|x86.Build.0 = Debug|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|Any CPU.Build.0 = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|x64.ActiveCfg = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|x64.Build.0 = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|x86.ActiveCfg = Release|Any CPU + {8B37AE1D-B764-4A41-B018-9BA0E911A79A}.Release|x86.Build.0 = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|x64.ActiveCfg = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|x64.Build.0 = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|x86.ActiveCfg = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Debug|x86.Build.0 = Debug|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|Any CPU.Build.0 = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|x64.ActiveCfg = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|x64.Build.0 = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|x86.ActiveCfg = Release|Any CPU + {D705EA30-0516-432A-BE2C-D248BF20C76F}.Release|x86.Build.0 = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|x64.ActiveCfg = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|x64.Build.0 = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|x86.ActiveCfg = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Debug|x86.Build.0 = Debug|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|Any CPU.Build.0 = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|x64.ActiveCfg = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|x64.Build.0 = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|x86.ActiveCfg = Release|Any CPU + {5410B86A-CB47-4AE6-8679-4A4501B96AB3}.Release|x86.Build.0 = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|x64.ActiveCfg = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|x64.Build.0 = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|x86.ActiveCfg = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Debug|x86.Build.0 = Debug|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|Any CPU.Build.0 = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|x64.ActiveCfg = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|x64.Build.0 = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|x86.ActiveCfg = Release|Any CPU + {70BA4779-D992-4F6F-8025-8DE925D55A7B}.Release|x86.Build.0 = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|x64.ActiveCfg = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|x64.Build.0 = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|x86.ActiveCfg = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Debug|x86.Build.0 = Debug|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|Any CPU.Build.0 = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|x64.ActiveCfg = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|x64.Build.0 = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|x86.ActiveCfg = Release|Any CPU + {CA4F659D-DCDA-4ABF-87CD-82E433F86685}.Release|x86.Build.0 = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|x64.ActiveCfg = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|x64.Build.0 = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|x86.ActiveCfg = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Debug|x86.Build.0 = Debug|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|Any CPU.Build.0 = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|x64.ActiveCfg = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|x64.Build.0 = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|x86.ActiveCfg = Release|Any CPU + {8D1ABE91-66E5-43AF-B28E-E5D506335D60}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/DataProtection/Properties/AssemblyInfo.cs b/src/DataProtection/Properties/AssemblyInfo.cs index 21c8286f4336..7913a292a6b8 100644 --- a/src/DataProtection/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("ab240bd4-c397-4629-a993-21763b35faed")] -[assembly: AssemblyVersion("0.3.1")] -[assembly: AssemblyFileVersion("0.3.1")] +[assembly: AssemblyVersion("0.4.0")] +[assembly: AssemblyFileVersion("0.4.0")] diff --git a/src/DataProtection/README.md b/src/DataProtection/README.md index 1ba71b18e621..4ea2c40c141e 100644 --- a/src/DataProtection/README.md +++ b/src/DataProtection/README.md @@ -17,7 +17,7 @@ This directory contains the PowerShell module for the DataProtection service. This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -36,16 +36,54 @@ This file contains the configuration for generating My API from the OpenAPI spec # it's the same options as command line options, just drop the double-dash! require: - $(this-folder)/../readme.azure.noprofile.md -input-file: https://github.com/Azure/azure-rest-api-specs/blob/e048b46b2c40d62fabd94c783dcfeabbd83be831/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/dataprotection.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/dataprotection.json title: DataProtection directive: - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete transform: $["description"] = "Delete a backupInstances" + - where: + parameter-name: AzureMonitorAlertSettingAlertsForAllJobFailure + set: + parameter-name: AzureMonitorAlertsForAllJobFailure + parameter-description: Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled. + - where: + parameter-name: VaultCriticalOperationExclusionList + set: + parameter-name: CriticalOperationExclusionList + clear-alias: true - where: verb: Get subject: BackupVaultResource.* hide: true + - where: + verb: Get + subject: ResourceGuardResource + variant: Get1 + set: + subject: ResourceGuard + - where: + subject: ResourceGuard + parameter-name: SName + set: + parameter-name: Name + clear-alias: true + - where: + subject: ResourceGuard.+ + remove: true + - where: + verb: Update + subject: ResourceGuard + remove: true + - where: + verb: Set + subject: ResourceGuard.* + set: + verb: New + - where: + verb: New + subject: ResourceGuard + hide: true - where: subject: RecoveryPoint variant: List @@ -72,6 +110,17 @@ directive: verb: Get subject: ExportJobsOperationResult remove: true + - where: + verb: Resume + subject: Backup$ + remove: true + - where: + subject: Context$|OperationResult$ + remove: true + - where: + verb: Sync + variant: Sync$|SyncViaIdentity$|SyncViaIdentityExpanded$ + remove: true - where: verb: Get subject: OperationResult @@ -108,9 +157,6 @@ directive: verb: Find variant: ^Find$|^FindViaIdentity$|^FindViaIdentityExpanded$ remove: true - - where: - subject: ^ResourceGuard - remove: true - where: verb: Get subject: BackupVault @@ -136,6 +182,14 @@ directive: - where: verb: Test hide: true + - where: + property-name: AzureMonitorAlertSettingAlertsForAllJobFailure + set: + property-name: AzureMonitorAlertsForAllJobFailure + - where: + property-name: VaultCriticalOperationExclusionList + set: + property-name: CriticalOperationExclusionList - where: model-name: BackupVaultResource set: @@ -159,16 +213,16 @@ directive: - SystemData - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy Property'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext Trigger'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext Trigger'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters BackupParameter'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters BackupParameter'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint Property'); ``` ## Alternate settings diff --git a/src/DataProtection/check-dependencies.ps1 b/src/DataProtection/check-dependencies.ps1 index b02ae9135957..c29591c7bfe1 100644 --- a/src/DataProtection/check-dependencies.ps1 +++ b/src/DataProtection/check-dependencies.ps1 @@ -25,7 +25,7 @@ if(-not $Isolated) { function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { if($predicate) { $module = Get-Module -ListAvailable -Name $moduleName - if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." if ($requiredVersion) { @@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' diff --git a/src/DataProtection/create-model-cmdlets.ps1 b/src/DataProtection/create-model-cmdlets.ps1 index 43f95460cf18..bf30b6b71fcb 100644 --- a/src/DataProtection/create-model-cmdlets.ps1 +++ b/src/DataProtection/create-model-cmdlets.ps1 @@ -23,7 +23,7 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'Az.DataProtection'.Split(".")[1] + $ModuleName = 'DataProtection' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir @@ -115,7 +115,9 @@ function CreateModelCmdlet { # check whether completer is needed $completer = ''; if($Type.Split('.').Split('.')[-2] -eq 'Support') { - $completer += "`n [ArgumentCompleter([${Type}])]" + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} diff --git a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 index bd762a7a7595..b619013ffee3 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.Api20210701.BackupInstanceResource]::FromJsonString($jsonStringResponse) + $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 9960bda55904..6249438dc632 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.Api20210701.AzureBackupJobResource]::FromJsonString($jsonStringResponse) + $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 1fcb7cb92969..0ffe926a3395 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.Api20210701.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')] @@ -38,7 +38,7 @@ function Initialize-AzDataProtectionBackupInstance { process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance]::new() + $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstance]::new() $backupInstance.ObjectType = "BackupInstance" if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -73,9 +73,9 @@ function Initialize-AzDataProtectionBackupInstance { $errormsg = "Please input SecretStoreType" throw $errormsg } - $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreBasedAuthCredentials]::new() + $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreBasedAuthCredentials]::new() $backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource]::new() + $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource]::new() $backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } @@ -85,7 +85,7 @@ function Initialize-AzDataProtectionBackupInstance { } } - $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource]::new() + $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource]::new() $backupInstanceResource.Property = $backupInstance if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -103,7 +103,7 @@ function Initialize-AzDataProtectionBackupInstance { if($DatasourceType.ToString() -eq "AzureDisk") { - $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureOperationalStoreParameters]::new() + $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 323f83406681..87db63637be7 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.Api20210701.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource] ${BackupInstance}, [Parameter()] diff --git a/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..4c8fd80ec042 --- /dev/null +++ b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,83 @@ + + +function New-AzDataProtectionResourceGuard +{ + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource')] + [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a resource guard under a resource group')] + + param( + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory=$false, HelpMessage='Subscription Id of the resource guard')] + [System.String] + ${SubscriptionId}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory, HelpMessage='Resource Group name of the resource guard')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory, HelpMessage='Name of the resource guard')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory=$false, HelpMessage='Optional ETag')] + [System.String] + ${ETag}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory=$false, HelpMessage='The IdentityType to be added to the resource guard, example: SystemAssigned, None')] + [System.String] + ${IdentityType}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory, HelpMessage='Location of the resource guard')] + [System.String] + ${Location}, + + [Parameter(ParameterSetName="CreateResourceGuard", Mandatory=$false, HelpMessage='Resource tags')] + [Hashtable] + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process + { + Az.DataProtection.Internal\New-AzDataProtectionResourceGuard @PSBoundParameters + } +} \ No newline at end of file diff --git a/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index e72147818bec..6af664a269ff 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.Api20210701.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 new file mode 100644 index 000000000000..4b69e82e8be8 --- /dev/null +++ b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,115 @@ + + +function Update-AzDataProtectionResourceGuard +{ + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource')] + [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')] + + param( + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='Subscription Id of the resource guard')] + [System.String] + ${SubscriptionId}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory, HelpMessage='Resource Group name of the resource guard')] + [System.String] + ${ResourceGroupName}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory, HelpMessage='Name of the resource guard')] + [System.String] + ${Name}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='Optional ETag')] + [System.String] + ${ETag}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='The identityType to be updated in resource guard, example: SystemAssigned, None')] + [System.String] + ${IdentityType}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='Resource tags')] + [Hashtable] + ${Tag}, + + [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='List of critical operations which are not protected by this resourceGuard. Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin')] + [System.String[]] + ${CriticalOperationExclusionList}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process + { + $ResGuard = $null + if($SubscriptionId -ne $null){ + $ResGuard = Get-AzDataProtectionResourceGuard -Name $Name -ResourceGroupName $ResourceGroupName -SubscriptionId $SubscriptionId + } + else { + $ResGuard = Get-AzDataProtectionResourceGuard -Name $Name -ResourceGroupName $ResourceGroupName + } + + # modify Critical operation exclusion list + $CriticalOperationsMap = @{ DeleteProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete"; UpdateProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write"; UpdatePolicy = "Microsoft.RecoveryServices/vaults/backupPolicies/write"; GetSecurityPin = "Microsoft.RecoveryServices/vaults/backupSecurityPIN/action" } + + $CriticalOperationExclusionListInternal = [System.Collections.ArrayList]@() + + foreach($item in $CriticalOperationExclusionList) + { + if($CriticalOperationsMap.ContainsKey($item)){ + $arrayIndex = $CriticalOperationExclusionListInternal.Add($CriticalOperationsMap[$item]) + } + else { + $arrayIndex = $CriticalOperationExclusionListInternal.Add($item) + } + } + + if($PSBoundParameters.ContainsKey("CriticalOperationExclusionList")) + { + $null = $PSBoundParameters.Remove("CriticalOperationExclusionList") + $null = $PSBoundParameters.Add("CriticalOperationExclusionList", $CriticalOperationExclusionListInternal) + } + + # Add Location + $null = $PSBoundParameters.Add("Location", $ResGuard.Location) + + Az.DataProtection.Internal\New-AzDataProtectionResourceGuard @PSBoundParameters + } +} \ No newline at end of file diff --git a/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 index a68d9c8eefc8..d26732e04cb4 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.Api20210701.IAzureBackupRestoreRequest')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.AzureBackupRestoreWithRehydrationRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreWithRehydrationRequest]::new() $restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest" $restoreRequest.RehydrationPriority = $RehydrationPriority if($PSBoundParameters.ContainsKey("RehydrationDuration")){ @@ -143,7 +143,7 @@ } } else{ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.AzureBackupRecoveryTimeBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.RestoreFilesTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.RestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo" } else { # ILR: ItemLevelRestoreTargetInfo - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.SecretStoreBasedAuthCredentials]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreBasedAuthCredentials]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 index bbca20b7cda2..d5d618d113f1 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 @@ -30,9 +30,14 @@ ${Location}, [Parameter(Mandatory, HelpMessage='Storage Settings of the vault. Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]] ${StorageSetting}, + [Parameter(Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + [ValidateSet('Enabled','Disabled')] + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(HelpMessage='Resource tags.')] [System.Collections.Hashtable] ${Tag}, @@ -43,7 +48,7 @@ [System.Management.Automation.PSObject] # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - + [Parameter()] [System.Management.Automation.SwitchParameter] # Run the command as a job diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 index 11ec1a75ed82..22a266964175 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.Api20210701.StorageSetting]::new() + $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSetting]::new() $storageSetting.Type = $Type $storageSetting.DataStoreType = $DataStoreType diff --git a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index cef2959208f3..9fe86081eae3 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.Api20210701.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.AzureRetentionRule]::new() + $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 4f21b5e4192b..911d1eb77f99 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.Api20210701.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria[]] ${Criteria} ) @@ -83,7 +83,7 @@ if($tagIndex -eq -1) { - $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteria]::new() + $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 927f0c07af87..fa64fb963a07 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.Api20210701.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 559633fc41af..9259111e4224 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.Api20210701.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.BackupPolicy]::FromJsonString($jsonPolicyString) + $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 f18e69b13f29..11ed6a1e2af4 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.Api20210701.IBaseBackupPolicyResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] ${Policy}, [Parameter()] @@ -114,7 +114,7 @@ $index += 1 } - $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResource]::new() + $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 a6d386a1b3fd..881d6fdce5c3 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.Api20210701.IScheduleBasedBackupCriteria')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ScheduleBasedBackupCriteria]::new() + $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 933402d4be55..5104fbcd303b 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.Api20210701.ISourceLifeCycle')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.SourceLifeCycle]::new() + $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.TargetCopySetting]::new() + $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetCopySetting]::new() $targetCopySetting.DataStoreObjectType = "DataStoreInfoBase" $targetCopySetting.DataStoreType = $TargetDataStore $targetCopySetting.CopyAfterObjectType = $CopyOption diff --git a/src/DataProtection/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/custom/Helpers/CommonHelpers.ps1 index 2f00e340f7a7..a744b6353cb7 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.Api20210701.IDatasource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource] $DatasourceInfo ) process { - $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet]::new() + $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet]::new() $DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type $DataSourceSetInfo.ObjectType = "DatasourceSet" $splitResourceId = $DatasourceInfo.ResourceId.Split("/") @@ -49,7 +49,7 @@ function GetDatasourceInfo process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource]::new() + $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 894d0430e065..4af4b331f359 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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { public partial class BackupInstanceResource { diff --git a/src/DataProtection/examples/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/examples/Backup-AzDataProtectionBackupInstanceAdhoc.md index 4ee15e4929ac..c7b583424e7c 100644 --- a/src/DataProtection/examples/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/examples/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -1,7 +1,7 @@ ### Example 1: Backup a protected backup instance ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" ``` @@ -9,18 +9,17 @@ This Command Triggers Backup for a given backup instance. ### Example 2: Backup a protected backup instance ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | where {$_.Name -eq "policyName"} -PS C:\> $backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName -PS C:\> $jobid = $backupJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") ->> { ->> Start-Sleep -Seconds 10 ->> $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName ->> $jobstatus = $currentjob.Status ->> } - +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | Where-Object {$_.Name -eq "policyName"} +$backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName +$jobid = $backupJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") +{ + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName + $jobstatus = $currentjob.Status +} ``` This Command Triggers Backup for a given backup instance using protection policy used to protect the backup instance. Then we track the backup job in a loop until it's completed. diff --git a/src/DataProtection/examples/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/examples/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index 983a5b3e736f..22da1c5c9a79 100644 --- a/src/DataProtection/examples/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md +++ b/src/DataProtection/examples/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md @@ -1,9 +1,11 @@ ### Example 1: Add Weekly Retention Rule ```powershell -PS C:\> $pol = Get-AzDataProtectionPolicyTemplate -PS C:\> $lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false +$pol = Get-AzDataProtectionPolicyTemplate +$lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy @@ -13,8 +15,10 @@ The first command gets the default policy template. The second command creates a ### Example 2: Remove Weekly Retention Rule ```powershell -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy diff --git a/src/DataProtection/examples/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/examples/Edit-AzDataProtectionPolicyTagClientObject.md index e0b3ddd8be4a..190a479cc476 100644 --- a/src/DataProtection/examples/Edit-AzDataProtectionPolicyTagClientObject.md +++ b/src/DataProtection/examples/Edit-AzDataProtectionPolicyTagClientObject.md @@ -1,8 +1,10 @@ ### Example 1: Add Weekly tag to Backup Policy ```powershell -PS C:\> $criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria +$criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy @@ -12,8 +14,10 @@ This command adds a weekly tag to given backup policy ### Example 2: Remove Weeky tag from Backup Policy ```powershell -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy diff --git a/src/DataProtection/examples/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/examples/Edit-AzDataProtectionPolicyTriggerClientObject.md index a99b95c7d046..368c794d8a4a 100644 --- a/src/DataProtection/examples/Edit-AzDataProtectionPolicyTriggerClientObject.md +++ b/src/DataProtection/examples/Edit-AzDataProtectionPolicyTriggerClientObject.md @@ -1,8 +1,10 @@ ### Example 1: Add Daily schedule to Azure Backup rule. ```powershell -PS C:\> $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (get-date) -IntervalType Daily -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule +$schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (Get-Date) -IntervalType Daily -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy diff --git a/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md index bd502210fd29..4cb9d4e45cec 100644 --- a/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md +++ b/src/DataProtection/examples/Find-AzDataProtectionRestorableTimeRange.md @@ -1,11 +1,13 @@ ### Example 1: Fetch valid restorable time ranges for a BackupInstance ```powershell -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $pointInTimeRange.RestorableTimeRange | fl +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$pointInTimeRange.RestorableTimeRange | Format-List +``` +```output EndTime : 2021-04-24T08:57:36.4149422Z ObjectType : RestorableTimeRange StartTime : 2021-03-25T14:27:31.0000000Z diff --git a/src/DataProtection/examples/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/examples/Get-AzDataProtectionBackupInstance.md index 005efaaaf898..456a84884e02 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/examples/Get-AzDataProtectionBackupInstance.md @@ -1,23 +1,26 @@ ### Example 1: Get all the backup instances protected in a specified backup vault. ```powershell -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +``` +```output Name Type BackupInstanceName ---- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f… -sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186cc6f10 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186c… - +sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +sarathdisk2-sarathdisk2-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxcc Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ``` This command gets all the backup instances in a vault. ### Example 2: Get a backup instance by name. ```powershell -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" +``` +```output Name Type BackupInstanceName ---- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ``` This command gets a specific backup instance protected in a backup vault. diff --git a/src/DataProtection/examples/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/examples/Get-AzDataProtectionBackupPolicy.md index ca2d4ac15e78..429f57288a5c 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/examples/Get-AzDataProtectionBackupPolicy.md @@ -1,7 +1,9 @@ ### Example 1: Get all backup policies in a backup vault. ```powershell -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +``` +```output Name Type ---- ---- DiskPolicy1 Microsoft.DataProtection/backupVaults/backupPolicies @@ -12,8 +14,10 @@ This command gets backup policies created in a given backup vault. ### Example 2: Get backup policy by Name ```powershell -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" +``` +```output Name Type ---- ---- MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies diff --git a/src/DataProtection/examples/Get-AzDataProtectionBackupVault.md b/src/DataProtection/examples/Get-AzDataProtectionBackupVault.md index cdc653857a4c..6351f6e3082e 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/Get-AzDataProtectionBackupVault.md @@ -1,36 +1,42 @@ ### Example 1: Get all backup vaults in a given subscription ```powershell -PS C:\> Get-AzDataProtectionBackupVault +Get-AzDataProtectionBackupVault +``` +```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 2a21f108-07bc-4c22-a221-f26c9de554ba 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupV… - 34237b3f-8f2c-4ae7-bbff-2896491976fb 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupV… - 41155247-420f-4052-a894-84814f0b983c 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupV… - 26da260b-e232-419c-8586-9157e4f6260e 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupV… + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupVault ``` This command gets all backup vaults in current subscription context. Provide SubscriptionId parameter to retrieve backup vaults in a different subscription. ### Example 2: Get all backup vaults in a given resource Group. ```powershell -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg +``` +```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 05400379-2551-4dc9-86e0-cf59ab05405a 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults ``` This command gets all backup vaults in a given resource group. ### Example 3: Get a specific vault. ```powershell -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +``` +```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults ``` This command gets a specific vault by given vault name. diff --git a/src/DataProtection/examples/Get-AzDataProtectionJob.md b/src/DataProtection/examples/Get-AzDataProtectionJob.md index f0ee75db9dda..c2519c7072a4 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionJob.md +++ b/src/DataProtection/examples/Get-AzDataProtectionJob.md @@ -1,7 +1,9 @@ ### Example 1: Get All backup Jobs in a backup vault ```powershell -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +``` +```output Name Type ---- ---- a6a4879d-f914-4174-b129-0e27da8a4fb0 Microsoft.DataProtection/backupVaults/backupJobs @@ -16,8 +18,10 @@ This command gets all the backup jobs in a given backup vault. ### Example 2: Get a single Job ```powershell -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 +``` +```output Name Type ---- ---- 4abaea8c-f53a-4bb1-9963-59f96b597165 Microsoft.DataProtection/backupVaults/backupJobs diff --git a/src/DataProtection/examples/Get-AzDataProtectionOperation.md b/src/DataProtection/examples/Get-AzDataProtectionOperation.md index dd5d1b0ccfdc..a0781065b27e 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionOperation.md +++ b/src/DataProtection/examples/Get-AzDataProtectionOperation.md @@ -1,7 +1,9 @@ ### Example 1: Get the list of of available operations ```powershell -PS C:\> Get-AzDataProtectionOperation +Get-AzDataProtectionOperation +``` +```output IsDataAction Name Origin ------------ ---- ------ Microsoft.DataProtection/locations/getBackupStatus/action user diff --git a/src/DataProtection/examples/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/examples/Get-AzDataProtectionPolicyTemplate.md index 1e6378071a1d..2c2558a3003f 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/examples/Get-AzDataProtectionPolicyTemplate.md @@ -1,7 +1,9 @@ ### Example 1: Get Azure Disk default policy template ```powershell -PS C:\> Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +``` +```output DatasourceType ObjectType -------------- ---------- {Microsoft.Compute/disks} BackupPolicy diff --git a/src/DataProtection/examples/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/examples/Get-AzDataProtectionRecoveryPoint.md index 56fa55e5f5f1..5cf83dfa6fa6 100644 --- a/src/DataProtection/examples/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/examples/Get-AzDataProtectionRecoveryPoint.md @@ -1,8 +1,10 @@ ### Example 1: Get all recovery points of a given backup instance ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name +``` +```output Name Type ---- ---- aded40a562134f97b732f30d0b486fef Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints @@ -17,9 +19,11 @@ This command lists all available recovery points of a given backup instance ### Example 2: Get recovery point with given recovery point id. ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 +``` +```output Name Type ---- ---- 892e5c5014dc4a96807d22924f5745c9 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints diff --git a/src/DataProtection/examples/Get-AzDataProtectionResourceGuard.md b/src/DataProtection/examples/Get-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..763afb9ae71c --- /dev/null +++ b/src/DataProtection/examples/Get-AzDataProtectionResourceGuard.md @@ -0,0 +1,31 @@ +### Example 1: Fetch a resource guard with a particular Name +```powershell +PS C:\> $resGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" -Name "ResourceGuardName" +PS C:\> $resGuard +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardName centraluseuap ResourceGuardName +``` + +Gets a resource guard under a resource group with name "ResourceGuardName" + +### Example 2: Fetch all the resource guards under a resource group +```powershell +PS C:\> $resGuardList = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" +PS C:\> $resGuardList +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name Type +---- -- ------------------- ---------------- ------------ -------- ---- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard1 centraluseuap rguard1 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard2 centraluseuap rguard2 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard3 centraluseuap rguard3 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard4 centraluseuap rguard4 Microsoft.DataProtection/resourceGuards +``` + +Gets all resource guards under a resource group + diff --git a/src/DataProtection/examples/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/examples/Initialize-AzDataProtectionBackupInstance.md index 815d5b53323d..43fd584e2015 100644 --- a/src/DataProtection/examples/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/examples/Initialize-AzDataProtectionBackupInstance.md @@ -1,11 +1,13 @@ ### Example 1: Get Backup instance object for Azure Disk ```powershell -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" -PS C:\> $instance +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +$AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" +$instance +``` +```output Name Type BackupInstanceName ---- ---- ------------------ sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405 diff --git a/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md index dc6bbc3a49db..febfc64abb64 100644 --- a/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/examples/Initialize-AzDataProtectionRestoreRequest.md @@ -1,10 +1,12 @@ ### Example 1: Get restore request object for Protected Azure Disk Backup instance ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" -PS C:\> $restoreRequest +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" +$restoreRequest +``` +```output ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointI d ---------- --------------------------- ------------------------------- -------------------------------- ------------------- -------------- @@ -15,13 +17,15 @@ This command initialized a restore request object which can be used to trigger r ### Example 2: Get restore request object for Protected Azure Blob Backup instance ```powershell -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) -PS C:\> $restoreRequest +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +$restoreRequest +``` +```output ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z @@ -33,13 +37,15 @@ This command initialized a restore request object which can be used to trigger r ### Example 3: Get restore request object for Item Level recovery for containers under protected AzureBlob Backup instance ```powershell -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" -PS C:\> $restoreRequest +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +$restoreRequest +``` +```output ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z @@ -51,13 +57,15 @@ This command initialized a restore request object which can be used to trigger I ### Example 4: Get restore request object for Item Level recovery for containers/prefixMatch under protected AzureBlob Backup instance ```powershell -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" -PS C:\> $restoreRequest +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +$restoreRequest +``` +```output ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ---------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z diff --git a/src/DataProtection/examples/New-AzDataProtectionBackupInstance.md b/src/DataProtection/examples/New-AzDataProtectionBackupInstance.md index 9d7490913594..1cf32674363f 100644 --- a/src/DataProtection/examples/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/examples/New-AzDataProtectionBackupInstance.md @@ -1,13 +1,14 @@ ### Example 1: Configure backup of an azure disk in a backup vault. ```powershell -PS C:\> $sub = "xxxx-xxx-xx" -PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance - +$sub = "xxxx-xxx-xx" +$DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance +``` +```output Name Type BackupInstanceName ---- ---- ------------------ sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 @@ -18,14 +19,16 @@ The fourth command initializes the backup instance request. The last command con ### Example 2: Configure protection for AzureDatabaseForPostgreSQL database in a backup vault (using secret store authentication). ```powershell -PS C:\> $sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> $dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance +``` +```output Name Type BackupInstanceName ---- ---- ------------------ xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 Microsoft.DataProtection/backupVaults/backupInstances xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 diff --git a/src/DataProtection/examples/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/examples/New-AzDataProtectionBackupPolicy.md index 8a81bf370eb7..043e69e36f74 100644 --- a/src/DataProtection/examples/New-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/examples/New-AzDataProtectionBackupPolicy.md @@ -1,8 +1,10 @@ ### Example 1: Create a default policy ```powershell -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol +``` +```output Name Type ---- ---- MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies @@ -12,11 +14,11 @@ This command creates a default policy for Azure disk datasource type. ### Example 2: Create a policy for AzureDatabaseForPostgreSQL, this example covers a sophisticated policy using powerShell ```powershell -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true -PS C:\> $schDates = @( +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true +$schDates = @( ( (Get-Date -Year 2021 -Month 08 -Day 18 -Hour 10 -Minute 0 -Second 0) ), @@ -24,16 +26,17 @@ PS C:\> $schDates = @( (Get-Date -Year 2021 -Month 08 -Day 22 -Hour 10 -Minute 0 -Second 0) )) -PS C:\> $trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false -PS C:\> $tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol - +$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false +$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth +Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol +``` +```output Name Type ---- ---- MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies diff --git a/src/DataProtection/examples/New-AzDataProtectionBackupVault.md b/src/DataProtection/examples/New-AzDataProtectionBackupVault.md index 34ba0358da5f..972b89437162 100644 --- a/src/DataProtection/examples/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/New-AzDataProtectionBackupVault.md @@ -1,9 +1,11 @@ ### Example 1: Create a new backup vault ```powershell -PS C:\> $sub = "xxxx-xxxx-xxxxx" -PS C:\> $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant -PS C:\> New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +$sub = "xxxx-xxxx-xxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +``` +```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- westus MyVault Microsoft.DataProtection/backupVaults @@ -11,4 +13,3 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type This command creates a new backup vault. - diff --git a/src/DataProtection/examples/New-AzDataProtectionBackupVaultStorageSettingObject.md b/src/DataProtection/examples/New-AzDataProtectionBackupVaultStorageSettingObject.md index 2ef6821faf5a..680427234f24 100644 --- a/src/DataProtection/examples/New-AzDataProtectionBackupVaultStorageSettingObject.md +++ b/src/DataProtection/examples/New-AzDataProtectionBackupVaultStorageSettingObject.md @@ -1,7 +1,9 @@ ### Example 1: Create a new vault storage setting object ```powershell -PS C:\> New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore +New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore +``` +```output DatastoreType Type ------------- ---- VaultStore GeoRedundant diff --git a/src/DataProtection/examples/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/examples/New-AzDataProtectionPolicyTagCriteriaClientObject.md index 8da298bfcc34..3b4eec447442 100644 --- a/src/DataProtection/examples/New-AzDataProtectionPolicyTagCriteriaClientObject.md +++ b/src/DataProtection/examples/New-AzDataProtectionPolicyTagCriteriaClientObject.md @@ -1,7 +1,9 @@ ### Example 1: Create a tag with absolute criteria ```powershell -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay +New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay +``` +```output ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ---------- ----------------- ------------- ------------ ------------ --------------- ScheduleBasedBackupCriteria {FirstOfDay} @@ -11,8 +13,10 @@ This command creates a criteria object with absolute criteria. ### Example 2: create a tag with weekly criteria ```powershell -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") +New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") +``` +```output ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ---------- ----------------- ------------- ------------ ------------ --------------- ScheduleBasedBackupCriteria {Sunday, Monday} diff --git a/src/DataProtection/examples/New-AzDataProtectionPolicyTriggerScheduleClientObject.md b/src/DataProtection/examples/New-AzDataProtectionPolicyTriggerScheduleClientObject.md index 9b44f631c9c3..a61e9226b6f2 100644 --- a/src/DataProtection/examples/New-AzDataProtectionPolicyTriggerScheduleClientObject.md +++ b/src/DataProtection/examples/New-AzDataProtectionPolicyTriggerScheduleClientObject.md @@ -1,8 +1,10 @@ ### Example 1: Create a daily schedule object ```powershell -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 +``` +```output R/2021-03-03T12:49:55+05:30/P1D ``` @@ -10,9 +12,11 @@ This command creates a daily schedule for Azure Backup Rule ### Example 2: Create an hourly schedule object ```powershell -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 +``` +```output R/2021-03-03T12:49:55+05:30/PT4H ``` diff --git a/src/DataProtection/examples/New-AzDataProtectionResourceGuard.md b/src/DataProtection/examples/New-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..4b424640e797 --- /dev/null +++ b/src/DataProtection/examples/New-AzDataProtectionResourceGuard.md @@ -0,0 +1,13 @@ +### Example 1: Create a new resource guard +```powershell +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/mua-rg/providers/Microsoft.DataProtection/resourceGuards/mua-resource-guard centraluseuap mua-resource-guard +``` + +The above command is used to create a resource guard "mua-resource-guard" under resource group "mua-rg" in location "centraluseuap" + diff --git a/src/DataProtection/examples/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/examples/New-AzDataProtectionRetentionLifeCycleClientObject.md index 64274d0ffbff..e7823988662e 100644 --- a/src/DataProtection/examples/New-AzDataProtectionRetentionLifeCycleClientObject.md +++ b/src/DataProtection/examples/New-AzDataProtectionRetentionLifeCycleClientObject.md @@ -1,7 +1,9 @@ ### Example 1: Create a daily retention lifecycle ```powershell -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 +``` +```output DeleteAfterDuration : P30D DeleteAfterObjectType : AbsoluteDeleteOption SourceDataStoreObjectType : DataStoreInfoBase @@ -13,8 +15,10 @@ This command creates a lifecycle object which stores the backup data in operatio ### Example 2: Create a weekly retention lifecycle. ```powershell -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 +``` +```output DeleteAfterDuration : P20W DeleteAfterObjectType : AbsoluteDeleteOption SourceDataStoreObjectType : DataStoreInfoBase diff --git a/src/DataProtection/examples/Remove-AzDataProtectionBackupInstance.md b/src/DataProtection/examples/Remove-AzDataProtectionBackupInstance.md index 26edd1c92d18..a006623756a3 100644 --- a/src/DataProtection/examples/Remove-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/examples/Remove-AzDataProtectionBackupInstance.md @@ -1,7 +1,7 @@ ### Example 1: Delete a protected backup instance ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name ``` diff --git a/src/DataProtection/examples/Remove-AzDataProtectionBackupPolicy.md b/src/DataProtection/examples/Remove-AzDataProtectionBackupPolicy.md index f25c04c2375a..3a2a6fbebc8b 100644 --- a/src/DataProtection/examples/Remove-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/examples/Remove-AzDataProtectionBackupPolicy.md @@ -1,7 +1,7 @@ ### Example 1: Delete an existing policy ```powershell -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" ``` diff --git a/src/DataProtection/examples/Remove-AzDataProtectionBackupVault.md b/src/DataProtection/examples/Remove-AzDataProtectionBackupVault.md index 2f1758f80647..c8aac092a044 100644 --- a/src/DataProtection/examples/Remove-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/Remove-AzDataProtectionBackupVault.md @@ -1,6 +1,6 @@ ### Example 1: Delete a backup vault. ```powershell -PS C:\> Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" ``` diff --git a/src/DataProtection/examples/Remove-AzDataProtectionResourceGuard.md b/src/DataProtection/examples/Remove-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..e578b0d49608 --- /dev/null +++ b/src/DataProtection/examples/Remove-AzDataProtectionResourceGuard.md @@ -0,0 +1,6 @@ +### Example 1: Delete a resource guard +```powershell +PS C:\> Remove-AzDataProtectionResourceGuard -Name "ResourceGuardName" -ResourceGroupName "ResourceGroupName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" +``` +This command is used to delete the resource guard under a resource group. + diff --git a/src/DataProtection/examples/Resume-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/examples/Resume-AzDataProtectionBackupInstanceProtection.md new file mode 100644 index 000000000000..c5842ac66eeb --- /dev/null +++ b/src/DataProtection/examples/Resume-AzDataProtectionBackupInstanceProtection.md @@ -0,0 +1,7 @@ +### Example 1: Resume protection for a backup instance for which the protection state is ProtectionStopped +```powershell +PS C:\> Resume-AzDataProtectionBackupInstanceProtection -BackupInstanceName $backupInstance.BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" +``` + + The above command can be used to resume protection for a stopped or suspended backup instance + diff --git a/src/DataProtection/examples/Search-AzDataProtectionBackupInstanceInAzGraph.md b/src/DataProtection/examples/Search-AzDataProtectionBackupInstanceInAzGraph.md index 8440458c32c0..a00162c0e524 100644 --- a/src/DataProtection/examples/Search-AzDataProtectionBackupInstanceInAzGraph.md +++ b/src/DataProtection/examples/Search-AzDataProtectionBackupInstanceInAzGraph.md @@ -1,7 +1,9 @@ ### Example 1: Get all protected azure disk backup instance in a given subscription ```powershell -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk +``` +```output Name Type ---- ---- ContosoDemoVM_DataDisk_0-ContosoDemoVM_DataDisk_0-5f7b2a1f-f1ab-4abe-aadf-e7dc48238157 microsoft.dataprotection/backupvaults/backupinstance @@ -18,8 +20,10 @@ This command gets all protected azure disk backup instance in a given subscripti ### Example 2: Get all protected azure disk backup instance in a given resource group list ```powershell -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") +``` +```output Name Type BackupInstanceName ---- ---- ------------------ sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 @@ -31,8 +35,10 @@ This commands gets all protected azure disk backup instance in a given set of re ### Example 3: Get all protected azure disk backup instance in a given resource group list with protection state 'ProtectionConfigured' ```powershell -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured +``` +```output Name Type BackupInstanceName ---- ---- ------------------ sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 diff --git a/src/DataProtection/examples/Search-AzDataProtectionJobInAzGraph.md b/src/DataProtection/examples/Search-AzDataProtectionJobInAzGraph.md index 2caa15cf8039..6ed4af203c6c 100644 --- a/src/DataProtection/examples/Search-AzDataProtectionJobInAzGraph.md +++ b/src/DataProtection/examples/Search-AzDataProtectionJobInAzGraph.md @@ -1,9 +1,11 @@ ### Example 1: Get all jobs in a certain time range ```powershell -PS C:\> $endtime = get-date -PS C:\> $starttime = $endtime.AddHours(-5) -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime +$endtime = Get-Date +$starttime = $endtime.AddHours(-5) +Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime +``` +```output Name Type ---- ---- 1c1d56c2-b21a-4038-ba46-3c1a0089e66a microsoft.dataprotection/backupvaults/backupjobs @@ -15,8 +17,10 @@ This command gets all jobs in a vault in last 5 hours. ### Example 2: Get all jobs of a certain operation type ```powershell -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup +Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup +``` +```output Name Type ---- ---- 11bc277d-9448-446a-9e79-4721858524d6 microsoft.dataprotection/backupvaults/backupjobs diff --git a/src/DataProtection/examples/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/examples/Start-AzDataProtectionBackupInstanceRestore.md index 028a070697f0..b5080388a849 100644 --- a/src/DataProtection/examples/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/examples/Start-AzDataProtectionBackupInstanceRestore.md @@ -1,23 +1,23 @@ ### Example 1: Trigger restore for a protected azure disk. ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name -PS C:\> Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name +Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest ``` ### Example 2: Trigger restore as DB for protected AzureDatabaseForPostgreSQL using secret store. ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") { Start-Sleep -Seconds 10 $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" @@ -34,15 +34,15 @@ The seventh, eight, ninth commands track the restore job to completion. ### Example 3: Trigger restore as Files for protected AzureDatabaseForPostgreSQL. ```powershell -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" -PS C:\> $fileNamePrefix = "restore_as_files_12345" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" +$fileNamePrefix = "restore_as_files_12345" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") { Start-Sleep -Seconds 10 $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" diff --git a/src/DataProtection/examples/Stop-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/examples/Stop-AzDataProtectionBackupInstanceProtection.md new file mode 100644 index 000000000000..4af2f1ee9f36 --- /dev/null +++ b/src/DataProtection/examples/Stop-AzDataProtectionBackupInstanceProtection.md @@ -0,0 +1,7 @@ +### Example 1: Stop protection for a backup instance +```powershell +PS C:\> Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + + The above command can be used to stop protection of a backup instance + diff --git a/src/DataProtection/examples/Suspend-AzDataProtectionBackupInstanceBackup.md b/src/DataProtection/examples/Suspend-AzDataProtectionBackupInstanceBackup.md new file mode 100644 index 000000000000..b05c7b68d15e --- /dev/null +++ b/src/DataProtection/examples/Suspend-AzDataProtectionBackupInstanceBackup.md @@ -0,0 +1,7 @@ +### Example 1: Suspend backups for a backup instance +```powershell +PS C:\> Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + + The above command can be used to stop backups of a backup instance, this will move the backup instance to a suspended state. + diff --git a/src/DataProtection/examples/Sync-AzDataProtectionBackupInstance.md b/src/DataProtection/examples/Sync-AzDataProtectionBackupInstance.md new file mode 100644 index 000000000000..6509fcc889fe --- /dev/null +++ b/src/DataProtection/examples/Sync-AzDataProtectionBackupInstance.md @@ -0,0 +1,7 @@ +### Example 1: Sync backup instance again in case of failure +```powershell +PS C:\> Sync-AzDataProtectionBackupInstance -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + + The above command is used to sync backup instance again in case of failure. This action will retry last failed operation and will bring backup instance to valid state. + diff --git a/src/DataProtection/examples/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/examples/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index 460999fe2a0f..ef0f173bba85 100644 --- a/src/DataProtection/examples/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md +++ b/src/DataProtection/examples/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md @@ -1,10 +1,12 @@ ### Example 1: Update Associated policy of a backup instance ```powershell -PS C:\> $sub = "xxxx-xxxx-xxxx" -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id +$sub = "xxxx-xxxx-xxxx" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id +``` +```output Name Type BackupInstanceName ---- ---- ------------------ sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66d404f Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66 diff --git a/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md b/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md index 4cfb83a7d710..f4c8bbdd9614 100644 --- a/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md @@ -1,8 +1,10 @@ ### Example 1: Add tags to an existing backup vault ```powershell -PS C:\> $tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} -PS C:\> Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +$tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} +Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +``` +```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults @@ -10,3 +12,13 @@ ETag IdentityPrincipalId IdentityTenantId I The first command creates a new tag hashtable with tags and their values. The second command adds the given tags to the backup vault. +### Example 2: Disable Azure monitor alerts for job failures +```powershell +PS C:\> Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' + +Name Location Type IdentityType +---- -------- ---- ------------ +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. diff --git a/src/DataProtection/examples/Update-AzDataProtectionResourceGuard.md b/src/DataProtection/examples/Update-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..0e4a947a2245 --- /dev/null +++ b/src/DataProtection/examples/Update-AzDataProtectionResourceGuard.md @@ -0,0 +1,16 @@ +### Example 1: Update a resource guard +```powershell +PS C:\> $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name "resGuardName" +PS C:\> $criticalOperations = $resourceGuard.ResourceGuardOperation.VaultCriticalOperation +PS C:\> $operationsToBeExcluded = $criticalOperations | where { $_ -match "backupSecurityPIN/action" -or $_ -match "backupInstances/delete" } +PS C:\> Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/mua-rg/providers/Microsoft.DataProtection/resourceGuards/mua-resource-guard centraluseuap mua-resource-guard +``` + +The first command is used to fetch the resource guard to be updated. The second and third command is used to fecth the critical operations user want to update. +The fourth command is used to exclude some critical operations from the resource guard \ No newline at end of file diff --git a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 index 67fe3826b119..3a4269ad7f7a 100644 --- a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 +++ b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 @@ -20,27 +20,26 @@ Trigger adhoc backup .Description Trigger adhoc backup .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | where {$_.Name -eq "policyName"} -PS C:\> $backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName -PS C:\> $jobid = $backupJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") ->> { ->> Start-Sleep -Seconds 10 ->> $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName ->> $jobstatus = $currentjob.Status ->> } - +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | Where-Object {$_.Name -eq "policyName"} +$backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName +$jobid = $backupJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") +{ + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName + $jobstatus = $currentjob.Status +} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -63,7 +62,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] @@ -177,6 +176,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ BackupExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded'; BackupViaIdentityExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded'; @@ -191,6 +208,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -199,15 +217,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index 2405075cf961..00f49c490e1d 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 @@ -20,22 +20,14 @@ Adds or removes Retention Rule to existing Policy .Description Adds or removes Retention Rule to existing Policy .Example -PS C:\> $pol = Get-AzDataProtectionPolicyTemplate -PS C:\> $lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$pol = Get-AzDataProtectionPolicyTemplate +$lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false .Example -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -75,12 +67,12 @@ POLICY : Backup Policy Object https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -105,7 +97,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[]] # Life cycles associated with the retention rule. # To construct, see NOTES section for LIFECYCLES properties and create a hash table. ${LifeCycles} @@ -118,6 +110,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RemoveRetention = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyRetentionRuleClientObject'; AddRetention = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyRetentionRuleClientObject'; @@ -129,6 +139,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -137,15 +148,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 index 649c8d6aec32..8a8ab5fb29f2 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 @@ -20,21 +20,13 @@ Adds or removes schedule tag in an existing backup policy. .Description Adds or removes schedule tag in an existing backup policy. .Example -PS C:\> $criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria .Example -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -75,12 +67,12 @@ POLICY : Backup Policy Object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -99,7 +91,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria[]] # Criterias to be associated with the schedule tag. # To construct, see NOTES section for CRITERIA properties and create a hash table. ${Criteria} @@ -112,6 +104,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RemoveTag = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTagClientObject'; updateTag = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTagClientObject'; @@ -123,6 +133,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -131,15 +142,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 index 1b7da6be3c76..c211e3e53688 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 @@ -20,15 +20,11 @@ Updates Backup schedule of an existing backup policy. .Description Updates Backup schedule of an existing backup policy. .Example -PS C:\> $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (get-date) -IntervalType Daily -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (Get-Date) -IntervalType Daily -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -58,12 +54,12 @@ POLICY : Backup Policy object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -82,6 +78,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTriggerClientObject'; } @@ -92,6 +106,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -100,15 +115,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 b/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 index 02e7a2de7a4d..66b1529004fc 100644 --- a/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 +++ b/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 @@ -20,23 +20,19 @@ .Description .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $pointInTimeRange.RestorableTimeRange | fl - -EndTime : 2021-04-24T08:57:36.4149422Z -ObjectType : RestorableTimeRange -StartTime : 2021-03-25T14:27:31.0000000Z +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$pointInTimeRange.RestorableTimeRange | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange #> function Find-AzDataProtectionRestorableTimeRange { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource])] [CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -140,6 +136,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ FindExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_FindExpanded'; } @@ -153,6 +167,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -161,15 +176,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 index 83561470fc6e..01c651c84ada 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 @@ -20,24 +20,14 @@ Gets a backup instance with name in a backup vault .Description Gets a backup instance with name in a backup vault .Example -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f� -sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186cc6f10 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186c� - +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Example -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -60,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -154,6 +144,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_GetViaIdentity'; @@ -169,6 +177,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -177,15 +186,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 index 361171ed57cd..c26a9826f478 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 @@ -20,23 +20,14 @@ Gets a backup policy belonging to a backup vault .Description Gets a backup policy belonging to a backup vault .Example -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" - -Name Type ----- ---- -DiskPolicy1 Microsoft.DataProtection/backupVaults/backupPolicies -DiskDailyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Example -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -59,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -153,6 +144,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_GetViaIdentity'; @@ -168,6 +177,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -176,15 +186,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 index ffe42a866597..e5655c580dfa 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 @@ -20,32 +20,16 @@ Returns resource collection belonging to a resource group. .Description Returns resource collection belonging to a resource group. .Example -PS C:\> Get-AzDataProtectionBackupVault - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2a21f108-07bc-4c22-a221-f26c9de554ba 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupV� - 34237b3f-8f2c-4ae7-bbff-2896491976fb 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupV� - 41155247-420f-4052-a894-84814f0b983c 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupV� - 26da260b-e232-419c-8586-9157e4f6260e 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupV� +Get-AzDataProtectionBackupVault .Example -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 05400379-2551-4dc9-86e0-cf59ab05405a 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg .Example -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -68,7 +52,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Mandatory)] @@ -154,6 +138,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get1 = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_Get1'; Get2 = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_Get2'; @@ -169,6 +171,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -177,15 +180,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 index 2039601388d2..377be73e899a 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 @@ -20,27 +20,14 @@ Gets a job with id in a backup vault .Description Gets a job with id in a backup vault .Example -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault - -Name Type ----- ---- -a6a4879d-f914-4174-b129-0e27da8a4fb0 Microsoft.DataProtection/backupVaults/backupJobs -1a402664-a245-4a9d-8bb5-a6bafbb40d26 Microsoft.DataProtection/backupVaults/backupJobs -672564f7-1f91-46e2-a0ca-4fb1dc977a1c Microsoft.DataProtection/backupVaults/backupJobs -1653a7b4-8ce4-457e-8084-dc1c9d9e4106 Microsoft.DataProtection/backupVaults/backupJobs -9f21c438-ca0d-45c1-88fe-79f08a8342c7 Microsoft.DataProtection/backupVaults/backupJobs -736bab4d-480f-49f8-92ea-57c5ff203c33 Microsoft.DataProtection/backupVaults/backupJobs +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault .Example -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 - -Name Type ----- ---- -4abaea8c-f53a-4bb1-9963-59f96b597165 Microsoft.DataProtection/backupVaults/backupJobs +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -63,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -159,6 +146,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionJob_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionJob_GetViaIdentity'; @@ -174,6 +179,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -182,15 +188,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 b/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 index a00248edac81..7c63819e416a 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 @@ -20,70 +20,15 @@ Returns the list of available operations. .Description Returns the list of available operations. .Example -PS C:\> Get-AzDataProtectionOperation - -IsDataAction Name Origin ------------- ---- ------ - Microsoft.DataProtection/locations/getBackupStatus/action user - Microsoft.DataProtection/backupVaults/backupInstances/write user - Microsoft.DataProtection/backupVaults/backupInstances/delete user - Microsoft.DataProtection/backupVaults/backupInstances/read user - Microsoft.DataProtection/backupVaults/backupInstances/read user - Microsoft.DataProtection/backupVaults/backupInstances/backup/action user - Microsoft.DataProtection/backupVaults/backupInstances/sync/action user - Microsoft.DataProtection/backupVaults/backupInstances/operationResults/read user - Microsoft.DataProtection/backupVaults/backupInstances/stopProtection/action user - Microsoft.DataProtection/backupVaults/backupInstances/suspendBackups/action user - Microsoft.DataProtection/backupVaults/backupInstances/resumeProtection/action user - Microsoft.DataProtection/backupVaults/backupInstances/resumeBackups/action user - Microsoft.DataProtection/backupVaults/backupInstances/validateRestore/action user - Microsoft.DataProtection/backupVaults/backupInstances/restore/action user - Microsoft.DataProtection/backupVaults/backupPolicies/write user - Microsoft.DataProtection/backupVaults/backupPolicies/delete user - Microsoft.DataProtection/backupVaults/backupPolicies/read user - Microsoft.DataProtection/backupVaults/backupPolicies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/write user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/unlockDelete/action user - Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read user - Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read user - Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges/action user - Microsoft.DataProtection/backupVaults/write user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/backupVaults/delete user - Microsoft.DataProtection/backupVaults/operationResults/read user - Microsoft.DataProtection/locations/checkNameAvailability/action user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/delete user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read user - Microsoft.DataProtection/subscriptions/providers/locations/checkFeatureSupport/action user - Microsoft.DataProtection/locations/operationStatus/read user - Microsoft.DataProtection/backupVaults/operationStatus/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/operationStatus/read user - Microsoft.DataProtection/locations/operationResults/read user - Microsoft.DataProtection/backupVaults/validateForBackup/action user - Microsoft.DataProtection/backupVaults/backupJobs/read user - Microsoft.RecoveryServices/Vaults/backupJobs/read user - Microsoft.DataProtection/register/action user - Microsoft.DataProtection/unregister/action user - Microsoft.DataProtection/operations/read user +Get-AzDataProtectionOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -141,6 +86,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ List = 'Az.DataProtection.private\Get-AzDataProtectionOperation_List'; } @@ -151,6 +114,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -159,15 +123,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 index 85d2e0c20979..5deb8504171b 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 @@ -20,19 +20,15 @@ Gets default policy template for a selected datasource type. .Description Gets default policy template for a selected datasource type. .Example -PS C:\> Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -49,6 +45,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Get-AzDataProtectionPolicyTemplate'; } @@ -59,6 +73,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -67,15 +82,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 index 7c93b8308705..e8f3b271b61c 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 @@ -20,29 +20,16 @@ Gets a Recovery Point using recoveryPointId for a Datasource. .Description Gets a Recovery Point using recoveryPointId for a Datasource. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name - -Name Type ----- ---- -aded40a562134f97b732f30d0b486fef Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -f458438d5ebb4098adbf67e9655cb624 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -515ba70e49d34b2bbff033dcc08593fe Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -e61293fdd1064fbdb4f42b7f5927a927 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -aecc362b85484f4eb905bb05ef445e3e Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -dc814d61a9624c36a1f9d635bc0b80f0 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 - -Name Type ----- ---- -892e5c5014dc4a96807d22924f5745c9 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -67,7 +54,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -180,6 +167,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_GetViaIdentity'; @@ -195,6 +200,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -203,15 +209,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..0f812f41ed16 --- /dev/null +++ b/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,211 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Returns a ResourceGuard belonging to a resource group. +.Description +Returns a ResourceGuard belonging to a resource group. +.Example +PS C:\> $resGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" -Name "ResourceGuardName" +PS C:\> $resGuard +.Example +PS C:\> $resGuardList = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" +PS C:\> $resGuardList + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard +#> +function Get-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of ResourceGuard + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [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. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='Get1')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_Get'; + Get1 = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_Get1'; + GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_GetViaIdentity'; + } + if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 index 6c36ab4d4cbf..b2f5ee5243ff 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 @@ -20,23 +20,19 @@ Initializes Backup instance Request object for configuring backup .Description Initializes Backup instance Request object for configuring backup .Example -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" -PS C:\> $instance - -Name Type BackupInstanceName ----- ---- ------------------ - sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405 +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +$AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" +$instance .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -85,6 +81,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Initialize-AzDataProtectionBackupInstance'; } @@ -95,6 +109,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -103,15 +118,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 index c324d7f6f00c..7d551cd7c9f3 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -20,54 +20,34 @@ Initializes Restore Request object for triggering restore on a protected backup .Description Initializes Restore Request object for triggering restore on a protected backup instance. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointI - d ----------- --------------------------- ------------------------------- -------------------------------- ------------------- -------------- -AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfExists westus OperationalStore 892e5c5014dc4a96807d22924f5745c9 +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +$restoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest .Notes COMPLEX PARAMETER PROPERTIES @@ -101,11 +81,12 @@ BACKUPINSTANCE : Backup Instance object to trigger origi [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest])] [CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -180,7 +161,7 @@ param( [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource] # Backup Instance object to trigger original localtion restore. # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -231,6 +212,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RestoreAsFiles = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; @@ -244,6 +243,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -252,15 +252,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 index 1bb47c84b023..a8447621bef3 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 @@ -20,30 +20,20 @@ Configures Backup for supported azure resources .Description Configures Backup for supported azure resources .Example -PS C:\> $sub = "xxxx-xxx-xx" -PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance - - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +$sub = "xxxx-xxx-xx" +$DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance .Example -PS C:\> $sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> $dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance - -Name Type BackupInstanceName ----- ---- ------------------ -xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 Microsoft.DataProtection/backupVaults/backupInstances xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 - +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Notes COMPLEX PARAMETER PROPERTIES @@ -78,6 +68,7 @@ BACKUPINSTANCE : Backup instance request object which w [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> @@ -98,7 +89,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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}, @@ -167,6 +158,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupInstance'; } @@ -177,6 +186,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -185,15 +195,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 index 3b8562f8d6b0..a3a659e05949 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 @@ -20,18 +20,14 @@ Creates a new backup policy in a given backup vault .Description Creates a new backup policy in a given backup vault .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true -PS C:\> $schDates = @( +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true +$schDates = @( ( (Get-Date -Year 2021 -Month 08 -Day 18 -Hour 10 -Minute 0 -Second 0) ), @@ -39,22 +35,17 @@ PS C:\> $schDates = @( (Get-Date -Year 2021 -Month 08 -Day 22 -Hour 10 -Minute 0 -Second 0) )) -PS C:\> $trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false -PS C:\> $tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol - - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false +$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth +Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -84,7 +75,7 @@ POLICY : Policy Request Object https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -107,7 +98,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Policy Request Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -166,6 +157,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupPolicy'; } @@ -176,6 +185,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -184,15 +194,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 index 4399931622ba..f7e3ea9fa6c3 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 @@ -20,13 +20,9 @@ Creates or updates a BackupVault resource belonging to a resource group. .Description Creates or updates a BackupVault resource belonging to a resource group. .Example -PS C:\> $sub = "xxxx-xxxx-xxxxx" -PS C:\> $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant -PS C:\> New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - westus MyVault Microsoft.DataProtection/backupVaults +$sub = "xxxx-xxxx-xxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus .Outputs System.Management.Automation.PSObject @@ -65,7 +61,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,6 +85,13 @@ param( # The identityType which can be either SystemAssigned or None. ${IdentityType}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.Collections.Hashtable] @@ -153,6 +156,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupVault'; } @@ -163,6 +184,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -171,15 +193,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 index f240af418e72..02c32edd60aa 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 @@ -20,11 +20,7 @@ Get Backup Vault storage setting object .Description Get Backup Vault storage setting object .Example -PS C:\> New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore - -DatastoreType Type -------------- ---- -VaultStore GeoRedundant +New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore .Outputs System.Management.Automation.PSObject @@ -55,6 +51,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupVaultStorageSettingObject'; } @@ -65,6 +79,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -73,15 +88,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 index 54970c9af0fe..904a2fb615a2 100644 --- a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 @@ -20,25 +20,17 @@ Creates a new criteria object .Description Creates a new criteria object .Example -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay - -ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ----------- ----------------- ------------- ------------ ------------ --------------- -ScheduleBasedBackupCriteria {FirstOfDay} +New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay .Example -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") - -ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ----------- ----------------- ------------- ------------ ------------ --------------- -ScheduleBasedBackupCriteria {Sunday, Monday} +New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] @@ -88,6 +80,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ AbsoluteCriteria = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTagCriteriaClientObject'; ScheduleCriteria = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTagCriteriaClientObject'; @@ -100,6 +110,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -108,15 +119,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionPolicyTriggerScheduleClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionPolicyTriggerScheduleClientObject.ps1 index f244174ff443..6952b45b4a47 100644 --- a/src/DataProtection/exports/New-AzDataProtectionPolicyTriggerScheduleClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionPolicyTriggerScheduleClientObject.ps1 @@ -20,15 +20,11 @@ Creates new Schedule object .Description Creates new Schedule object .Example -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 - -R/2021-03-03T12:49:55+05:30/P1D +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 .Example -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 - -R/2021-03-03T12:49:55+05:30/PT4H +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 .Outputs System.String[] @@ -65,6 +61,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTriggerScheduleClientObject'; } @@ -75,6 +89,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -83,15 +98,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..e6fa404c99a8 --- /dev/null +++ b/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,189 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates a resource guard under a resource group +.Description +Creates a resource guard under a resource group +.Example +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard +#> +function New-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Resource Group name of the resource guard + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Name of the resource guard + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Location of the resource guard + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Subscription Id of the resource guard + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Optional ETag + ${ETag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # The IdentityType to be added to the resource guard, example: SystemAssigned, None + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Collections.Hashtable] + # Resource tags + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateResourceGuard = 'Az.DataProtection.custom\New-AzDataProtectionResourceGuard'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 index 0da3d9c91df6..21da967650a6 100644 --- a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 @@ -20,29 +20,17 @@ Creates new Lifecycle object .Description Creates new Lifecycle object .Example -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 - -DeleteAfterDuration : P30D -DeleteAfterObjectType : AbsoluteDeleteOption -SourceDataStoreObjectType : DataStoreInfoBase -SourceDataStoreType : OperationalStore -TargetDataStoreCopySetting : +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 .Example -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 - -DeleteAfterDuration : P20W -DeleteAfterObjectType : AbsoluteDeleteOption -SourceDataStoreObjectType : DataStoreInfoBase -SourceDataStoreType : OperationalStore -TargetDataStoreCopySetting : +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -83,6 +71,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionRetentionLifeCycleClientObject'; } @@ -93,6 +99,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -101,15 +108,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 index fef436df0cc2..4dad5a2e7121 100644 --- a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 @@ -20,27 +20,26 @@ Trigger adhoc backup .Description Trigger adhoc backup .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | where {$_.Name -eq "policyName"} -PS C:\> $backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName -PS C:\> $jobid = $backupJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") ->> { ->> Start-Sleep -Seconds 10 ->> $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName ->> $jobstatus = $currentjob.Status ->> } - +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -VaultName "MyVault" -ResourceGroupName "MyResourceGroup" | Where-Object {$_.Name -eq "policyName"} +$backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName $policy.Property.PolicyRule[0].Name -TriggerOptionRetentionTagOverride $policy.Property.PolicyRule[0].Trigger.TaggingCriterion[0].TagInfoTagName +$jobid = $backupJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") +{ + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName + $jobstatus = $currentjob.Status +} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -63,7 +62,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] @@ -177,6 +176,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ BackupExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded'; BackupViaIdentityExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded'; @@ -191,6 +208,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -199,17 +217,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -218,23 +253,19 @@ end { .Description .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $pointInTimeRange.RestorableTimeRange | fl - -EndTime : 2021-04-24T08:57:36.4149422Z -ObjectType : RestorableTimeRange -StartTime : 2021-03-25T14:27:31.0000000Z +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instances = Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "subscriptionId" -DatasourceType AzureBlob -ResourceGroup "rgName" -Vault "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instances[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$pointInTimeRange.RestorableTimeRange | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange #> function Find-AzDataProtectionRestorableTimeRange { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource])] [CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -338,6 +369,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ FindExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_FindExpanded'; } @@ -351,6 +400,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -359,17 +409,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -378,24 +445,14 @@ Gets a backup instance with name in a backup vault .Description Gets a backup instance with name in a backup vault .Example -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f� -sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186cc6f10 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186c� - +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Example -PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -418,7 +475,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -512,6 +569,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_GetViaIdentity'; @@ -527,6 +602,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -535,17 +611,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -554,23 +647,14 @@ Gets a backup policy belonging to a backup vault .Description Gets a backup policy belonging to a backup vault .Example -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" - -Name Type ----- ---- -DiskPolicy1 Microsoft.DataProtection/backupVaults/backupPolicies -DiskDailyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Example -PS C:\> Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "MyPolicy" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -593,7 +677,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -687,6 +771,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_GetViaIdentity'; @@ -702,6 +804,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -710,17 +813,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -729,32 +849,16 @@ Returns resource collection belonging to a resource group. .Description Returns resource collection belonging to a resource group. .Example -PS C:\> Get-AzDataProtectionBackupVault - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2a21f108-07bc-4c22-a221-f26c9de554ba 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupV� - 34237b3f-8f2c-4ae7-bbff-2896491976fb 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupV� - 41155247-420f-4052-a894-84814f0b983c 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupV� - 26da260b-e232-419c-8586-9157e4f6260e 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupV� +Get-AzDataProtectionBackupVault .Example -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 05400379-2551-4dc9-86e0-cf59ab05405a 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg .Example -PS C:\> Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName sarath-rg -VaultName sarath-vault .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -777,7 +881,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get1', Mandatory)] @@ -863,6 +967,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get1 = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_Get1'; Get2 = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_Get2'; @@ -878,6 +1000,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -886,17 +1009,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -905,27 +1045,14 @@ Gets a job with id in a backup vault .Description Gets a job with id in a backup vault .Example -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault - -Name Type ----- ---- -a6a4879d-f914-4174-b129-0e27da8a4fb0 Microsoft.DataProtection/backupVaults/backupJobs -1a402664-a245-4a9d-8bb5-a6bafbb40d26 Microsoft.DataProtection/backupVaults/backupJobs -672564f7-1f91-46e2-a0ca-4fb1dc977a1c Microsoft.DataProtection/backupVaults/backupJobs -1653a7b4-8ce4-457e-8084-dc1c9d9e4106 Microsoft.DataProtection/backupVaults/backupJobs -9f21c438-ca0d-45c1-88fe-79f08a8342c7 Microsoft.DataProtection/backupVaults/backupJobs -736bab4d-480f-49f8-92ea-57c5ff203c33 Microsoft.DataProtection/backupVaults/backupJobs +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault .Example -PS C:\> Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 - -Name Type ----- ---- -4abaea8c-f53a-4bb1-9963-59f96b597165 Microsoft.DataProtection/backupVaults/backupJobs +Get-AzDataProtectionjob -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Id 4abaea8c-f53a-4bb1-9963-59f96b597165 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -948,7 +1075,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1044,6 +1171,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionJob_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionJob_GetViaIdentity'; @@ -1059,6 +1204,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1067,17 +1213,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1086,70 +1249,15 @@ Returns the list of available operations. .Description Returns the list of available operations. .Example -PS C:\> Get-AzDataProtectionOperation - -IsDataAction Name Origin ------------- ---- ------ - Microsoft.DataProtection/locations/getBackupStatus/action user - Microsoft.DataProtection/backupVaults/backupInstances/write user - Microsoft.DataProtection/backupVaults/backupInstances/delete user - Microsoft.DataProtection/backupVaults/backupInstances/read user - Microsoft.DataProtection/backupVaults/backupInstances/read user - Microsoft.DataProtection/backupVaults/backupInstances/backup/action user - Microsoft.DataProtection/backupVaults/backupInstances/sync/action user - Microsoft.DataProtection/backupVaults/backupInstances/operationResults/read user - Microsoft.DataProtection/backupVaults/backupInstances/stopProtection/action user - Microsoft.DataProtection/backupVaults/backupInstances/suspendBackups/action user - Microsoft.DataProtection/backupVaults/backupInstances/resumeProtection/action user - Microsoft.DataProtection/backupVaults/backupInstances/resumeBackups/action user - Microsoft.DataProtection/backupVaults/backupInstances/validateRestore/action user - Microsoft.DataProtection/backupVaults/backupInstances/restore/action user - Microsoft.DataProtection/backupVaults/backupPolicies/write user - Microsoft.DataProtection/backupVaults/backupPolicies/delete user - Microsoft.DataProtection/backupVaults/backupPolicies/read user - Microsoft.DataProtection/backupVaults/backupPolicies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/write user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete user - Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/unlockDelete/action user - Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read user - Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read user - Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges/action user - Microsoft.DataProtection/backupVaults/write user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/backupVaults/delete user - Microsoft.DataProtection/backupVaults/operationResults/read user - Microsoft.DataProtection/locations/checkNameAvailability/action user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/backupVaults/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/delete user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/providers/resourceGuards/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read user - Microsoft.DataProtection/subscriptions/providers/locations/checkFeatureSupport/action user - Microsoft.DataProtection/locations/operationStatus/read user - Microsoft.DataProtection/backupVaults/operationStatus/read user - Microsoft.DataProtection/subscriptions/resourceGroups/providers/operationStatus/read user - Microsoft.DataProtection/locations/operationResults/read user - Microsoft.DataProtection/backupVaults/validateForBackup/action user - Microsoft.DataProtection/backupVaults/backupJobs/read user - Microsoft.RecoveryServices/Vaults/backupJobs/read user - Microsoft.DataProtection/register/action user - Microsoft.DataProtection/unregister/action user - Microsoft.DataProtection/operations/read user +Get-AzDataProtectionOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -1207,6 +1315,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ List = 'Az.DataProtection.private\Get-AzDataProtectionOperation_List'; } @@ -1217,6 +1343,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1225,17 +1352,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1244,29 +1388,16 @@ Gets a Recovery Point using recoveryPointId for a Datasource. .Description Gets a Recovery Point using recoveryPointId for a Datasource. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name - -Name Type ----- ---- -aded40a562134f97b732f30d0b486fef Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -f458438d5ebb4098adbf67e9655cb624 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -515ba70e49d34b2bbff033dcc08593fe Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -e61293fdd1064fbdb4f42b7f5927a927 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -aecc362b85484f4eb905bb05ef445e3e Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -dc814d61a9624c36a1f9d635bc0b80f0 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 - -Name Type ----- ---- -892e5c5014dc4a96807d22924f5745c9 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -1291,7 +1422,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1404,6 +1535,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_Get'; GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_GetViaIdentity'; @@ -1419,6 +1568,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1427,33 +1577,52 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# .Synopsis -Delete a backupInstances +Returns a ResourceGuard belonging to a resource group. .Description -Delete a backupInstances +Returns a ResourceGuard belonging to a resource group. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name - +PS C:\> $resGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" -Name "ResourceGuardName" +PS C:\> $resGuard +.Example +PS C:\> $resGuardList = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" +PS C:\> $resGuardList .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1473,39 +1642,34 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The subscription Id. [VaultName ]: The name of the backup vault. .Link -https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupinstance +https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard #> -function Remove-AzDataProtectionBackupInstance { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('BackupInstanceName')] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of ResourceGuard ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [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. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='Get1')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The subscription Id. ${SubscriptionId}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] - [System.String] - # The name of the backup vault. - ${VaultName}, - - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] # Identity Parameter @@ -1520,12 +1684,6 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1546,18 +1704,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] [System.Uri] @@ -1585,11 +1731,30 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_Delete'; - DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_DeleteViaIdentity'; + Get = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_Get'; + Get1 = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_Get1'; + GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_GetViaIdentity'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] @@ -1599,6 +1764,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1607,27 +1773,44 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# .Synopsis -Deletes a backup policy belonging to a backup vault +Delete a backupInstances .Description -Deletes a backup policy belonging to a backup vault +Delete a backupInstances .Example -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name .Inputs @@ -1653,17 +1836,17 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The subscription Id. [VaultName ]: The name of the backup vault. .Link -https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackuppolicy +https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupinstance #> -function Remove-AzDataProtectionBackupPolicy { +function Remove-AzDataProtectionBackupInstance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('BackupPolicyName')] + [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -1700,6 +1883,12 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1720,6 +1909,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -1753,9 +1948,27 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_Delete'; - DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_DeleteViaIdentity'; + Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_Delete'; + DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1767,6 +1980,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1775,26 +1989,44 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# .Synopsis -Deletes a BackupVault resource from the resource group. +Deletes a backup policy belonging to a backup vault .Description -Deletes a BackupVault resource from the resource group. +Deletes a backup policy belonging to a backup vault .Example -PS C:\> Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Inputs @@ -1820,12 +2052,19 @@ INPUTOBJECT : Identity Parameter [SubscriptionId ]: The subscription Id. [VaultName ]: The name of the backup vault. .Link -https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupvault +https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackuppolicy #> -function Remove-AzDataProtectionBackupVault { +function Remove-AzDataProtectionBackupPolicy { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('BackupPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${Name}, + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] @@ -1913,9 +2152,27 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_Delete'; - DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_DeleteViaIdentity'; + Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_Delete'; + DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -1927,6 +2184,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1935,95 +2193,1357 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# .Synopsis -Triggers restore for a BackupInstance +Deletes a BackupVault resource from the resource group. .Description -Triggers restore for a BackupInstance -.Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name -PS C:\> Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest - -.Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") -{ - Start-Sleep -Seconds 10 - $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" - $jobstatus = $currentjob.Status -} - +Deletes a BackupVault resource from the resource group. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" -PS C:\> $fileNamePrefix = "restore_as_files_12345" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") -{ - Start-Sleep -Seconds 10 - $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" - $jobstatus = $currentjob.Status -} +Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -PARAMETER : Azure backup restore request - ObjectType : +INPUTOBJECT : Identity Parameter + [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). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupvault +#> +function Remove-AzDataProtectionBackupVault { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_Delete'; + DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a ResourceGuard resource from the resource group. +.Description +Deletes a ResourceGuard resource from the resource group. +.Example +PS C:\> Remove-AzDataProtectionResourceGuard -Name "ResourceGuardName" -ResourceGroupName "ResourceGroupName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionresourceguard +#> +function Remove-AzDataProtectionResourceGuard { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of ResourceGuard + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_Delete'; + DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +This operation will resume protection for a stopped backup instance +.Description +This operation will resume protection for a stopped backup instance +.Example +PS C:\> Resume-AzDataProtectionBackupInstanceProtection -BackupInstanceName $backupInstance.BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/resume-azdataprotectionbackupinstanceprotection +#> +function Resume-AzDataProtectionBackupInstanceProtection { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Resume', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Resume', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Resume', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='ResumeViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Resume = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_Resume'; + ResumeViaIdentity = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_ResumeViaIdentity'; + } + if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Triggers restore for a BackupInstance +.Description +Triggers restore for a BackupInstance +.Example +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name +Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest + +.Example +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") +{ + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" + $jobstatus = $currentjob.Status +} + +.Example +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" +$fileNamePrefix = "restore_as_files_12345" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") +{ + Start-Sleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" + $jobstatus = $currentjob.Status +} + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. + +PARAMETER : Azure backup restore request + ObjectType : RestoreTargetInfo : Gets or sets the restore target information. ObjectType : Type of Datasource object, used to initialize the right inherited type [RestoreLocation ]: Target Restore region SourceDataStoreType : Gets or sets the type of the source data store. + [SourceResourceId ]: Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + +RESTORETARGETINFO : Gets or sets the restore target information. + ObjectType : Type of Datasource object, used to initialize the right inherited type + [RestoreLocation ]: Target Restore region +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore +#> +function Start-AzDataProtectionBackupInstanceRestore { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 + ${BackupInstanceName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the resource group where the backup vault is present. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest] + # Azure backup restore request + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # . + ${ObjectType}, + + [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase] + # Gets or sets the restore target information. + # To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. + ${RestoreTargetInfo}, + + [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType] + # Gets or sets the type of the source data store. + ${SourceDataStoreType}, + + [Parameter(ParameterSetName='TriggerExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + ${SourceResourceId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Trigger = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_Trigger'; + TriggerExpanded = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_TriggerExpanded'; + } + if (('Trigger', 'TriggerExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +This operation will stop protection of a backup instance and data will be held forever +.Description +This operation will stop protection of a backup instance and data will be held forever +.Example +PS C:\> Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection +#> +function Stop-AzDataProtectionBackupInstanceProtection { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Stop = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_Stop'; + StopViaIdentity = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_StopViaIdentity'; + } + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +This operation will stop backups for backup instance +.Description +This operation will stop backups for backup instance +.Example +PS C:\> Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES -RESTORETARGETINFO : Gets or sets the restore target information. - ObjectType : Type of Datasource object, used to initialize the right inherited type - [RestoreLocation ]: Target Restore region +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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. .Link -https://docs.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore +https://docs.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup #> -function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] -[CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Suspend-AzDataProtectionBackupInstanceBackup { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Suspend', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Suspend', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='SuspendViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Suspend = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_Suspend'; + SuspendViaIdentity = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_SuspendViaIdentity'; + } + if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state +.Description +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state +.Example +PS C:\> Sync-AzDataProtectionBackupInstance -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/sync-azdataprotectionbackupinstance +#> +function Sync-AzDataProtectionBackupInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='SyncExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('BackupInstanceName')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${Name}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] @@ -2043,32 +3563,13 @@ param( # The subscription Id. ${SubscriptionId}, - [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest] - # Azure backup restore request - # To construct, see NOTES section for PARAMETER properties and create a hash table. - ${Parameter}, - - [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [System.String] - # . - ${ObjectType}, - - [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase] - # Gets or sets the restore target information. - # To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. - ${RestoreTargetInfo}, - - [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType])] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType])] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType] - # Gets or sets the type of the source data store. - ${SourceDataStoreType}, + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType] + # Field indicating sync type e.g. + # to sync only in case of failure or in all cases + ${SyncType}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2110,6 +3611,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] [System.Uri] @@ -2137,11 +3644,28 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - Trigger = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_Trigger'; - TriggerExpanded = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_TriggerExpanded'; + SyncExpanded = 'Az.DataProtection.private\Sync-AzDataProtectionBackupInstance_SyncExpanded'; } - if (('Trigger', 'TriggerExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('SyncExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] @@ -2151,6 +3675,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2159,17 +3684,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2180,17 +3722,19 @@ For example, updating tags for a resource. Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. .Example -PS C:\> $tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} -PS C:\> Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +$tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} +Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +.Example +PS C:\> Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Name Location Type IdentityType +---- -------- ---- ------------ +vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -2213,7 +3757,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -2242,6 +3786,14 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -2250,7 +3802,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -2322,6 +3874,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateViaIdentityExpanded'; @@ -2336,6 +3906,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2344,17 +3915,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2363,22 +3951,14 @@ Adds or removes Retention Rule to existing Policy .Description Adds or removes Retention Rule to existing Policy .Example -PS C:\> $pol = Get-AzDataProtectionPolicyTemplate -PS C:\> $lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$pol = Get-AzDataProtectionPolicyTemplate +$lifecycle = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 5 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -LifeCycles $lifecycle -IsDefault $false .Example -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2418,12 +3998,12 @@ POLICY : Backup Policy Object https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2448,7 +4028,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[]] # Life cycles associated with the retention rule. # To construct, see NOTES section for LIFECYCLES properties and create a hash table. ${LifeCycles} @@ -2461,6 +4041,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RemoveRetention = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyRetentionRuleClientObject'; AddRetention = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyRetentionRuleClientObject'; @@ -2472,6 +4070,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2480,17 +4079,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2499,21 +4115,13 @@ Adds or removes schedule tag in an existing backup policy. .Description Adds or removes schedule tag in an existing backup policy. .Example -PS C:\> $criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$criteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfWeek +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $criteria .Example -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2554,12 +4162,12 @@ POLICY : Backup Policy Object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2578,7 +4186,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria[]] # Criterias to be associated with the schedule tag. # To construct, see NOTES section for CRITERIA properties and create a hash table. ${Criteria} @@ -2591,6 +4199,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RemoveTag = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTagClientObject'; updateTag = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTagClientObject'; @@ -2602,6 +4228,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2610,17 +4237,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2629,15 +4273,11 @@ Updates Backup schedule of an existing backup policy. .Description Updates Backup schedule of an existing backup policy. .Example -PS C:\> $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (get-date) -IntervalType Daily -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +$schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (Get-Date) -IntervalType Daily -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -2667,12 +4307,12 @@ POLICY : Backup Policy object. https://docs.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Backup Policy object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -2691,6 +4331,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Edit-AzDataProtectionPolicyTriggerClientObject'; } @@ -2701,6 +4359,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2709,17 +4368,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2728,19 +4404,15 @@ Gets default policy template for a selected datasource type. .Description Gets default policy template for a selected datasource type. .Example -PS C:\> Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk - -DatasourceType ObjectType --------------- ---------- -{Microsoft.Compute/disks} BackupPolicy +Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2757,6 +4429,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Get-AzDataProtectionPolicyTemplate'; } @@ -2767,6 +4457,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2775,17 +4466,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2794,23 +4502,19 @@ Initializes Backup instance Request object for configuring backup .Description Initializes Backup instance Request object for configuring backup .Example -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" -PS C:\> $instance - -Name Type BackupInstanceName ----- ---- ------------------ - sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405 +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +$AzureDiskId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{diskname}" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation westus -DatasourceId $AzureDiskId -PolicyId $policy[0].Id +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{snapshotResourceGroup}" +$instance .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2859,6 +4563,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Initialize-AzDataProtectionBackupInstance'; } @@ -2869,6 +4591,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2877,17 +4600,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2896,54 +4636,34 @@ Initializes Restore Request object for triggering restore on a protected backup .Description Initializes Restore Request object for triggering restore on a protected backup instance. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointI - d ----------- --------------------------- ------------------------------- -------------------------------- ------------------- -------------- -AzureBackupRecoveryPointBasedRestoreRequest RestoreTargetInfo FailIfExists westus OperationalStore 892e5c5014dc4a96807d22924f5745c9 +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint "892e5c5014dc4a96807d22924f5745c9" +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest restoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-24T13:32:41.7018481Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instance[0] -PointInTime (Get-Date -Date $pointInTimeRange.RestorableTimeRange.EndTime) +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -ContainersList "containerName1","containerName2" +$restoreRequest .Example -PS C:\> $startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" -PS C:\> $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" -PS C:\> $restoreRequest - -ObjectType RestoreTargetInfoObjectType RestoreTargetInfoRecoveryOption RestoreTargetInfoRestoreLocation SourceDataStoreType RecoveryPointTime ----------- --------------------------- ------------------------------- -------------------------------- ------------------- ----------------- -AzureBackupRecoveryTimeBasedRestoreRequest itemLevelRestoreTargetInfo FailIfExists eastus2euap OperationalStore 2021-04-23T02:47:02.9500000Z - +$startTime = (Get-Date).AddDays(-30).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$endTime = (Get-Date).AddDays(0).ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "rgName" -VaultName "vaultName" +$pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $instance[0].BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "subscriptionId" -VaultName "vaultName" -SourceDataStoreType OperationalStore -StartTime $startTime -EndTime $endTime +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore OperationalStore -RestoreLocation $vault.Location -RestoreType OriginalLocation -BackupInstance $instances[0] -PointInTime (Get-Date).AddDays(-1) -ItemLevelRecovery -FromPrefixPattern "container1/aaa","container1/ccc", "container2/aab", "container3" -ToPrefixPattern "container1/bbb","container1/ddd", "container2/abc", "container3-0" +$restoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest .Notes COMPLEX PARAMETER PROPERTIES @@ -2977,11 +4697,12 @@ BACKUPINSTANCE : Backup Instance object to trigger origi [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest])] [CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3056,7 +4777,7 @@ param( [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource] # Backup Instance object to trigger original localtion restore. # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -3107,6 +4828,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ RestoreAsFiles = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest'; @@ -3120,6 +4859,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3128,17 +4868,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3147,30 +4904,20 @@ Configures Backup for supported azure resources .Description Configures Backup for supported azure resources .Example -PS C:\> $sub = "xxxx-xxx-xx" -PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance - - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +$sub = "xxxx-xxx-xx" +$DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance .Example -PS C:\> $sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> $dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance - -Name Type BackupInstanceName ----- ---- ------------------ -xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 Microsoft.DataProtection/backupVaults/backupInstances xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 - +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Notes COMPLEX PARAMETER PROPERTIES @@ -3205,6 +4952,7 @@ BACKUPINSTANCE : Backup instance request object which w [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> @@ -3225,7 +4973,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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}, @@ -3294,6 +5042,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupInstance'; } @@ -3304,6 +5070,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3312,17 +5079,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3331,18 +5115,14 @@ Creates a new backup policy in a given backup vault .Description Creates a new backup policy in a given backup vault .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true -PS C:\> $schDates = @( +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true +$schDates = @( ( (Get-Date -Year 2021 -Month 08 -Day 18 -Hour 10 -Minute 0 -Second 0) ), @@ -3350,22 +5130,17 @@ PS C:\> $schDates = @( (Get-Date -Year 2021 -Month 08 -Day 22 -Hour 10 -Minute 0 -Second 0) )) -PS C:\> $trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false -PS C:\> $tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol - - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false +$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth +Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -3395,7 +5170,7 @@ POLICY : Policy Request Object https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3418,7 +5193,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy] # Policy Request Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -3477,6 +5252,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupPolicy'; } @@ -3487,6 +5280,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3495,17 +5289,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3514,13 +5325,9 @@ Creates or updates a BackupVault resource belonging to a resource group. .Description Creates or updates a BackupVault resource belonging to a resource group. .Example -PS C:\> $sub = "xxxx-xxxx-xxxxx" -PS C:\> $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant -PS C:\> New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - westus MyVault Microsoft.DataProtection/backupVaults +$sub = "xxxx-xxxx-xxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus .Outputs System.Management.Automation.PSObject @@ -3559,7 +5366,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -3583,6 +5390,13 @@ param( # The identityType which can be either SystemAssigned or None. ${IdentityType}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.Collections.Hashtable] @@ -3647,6 +5461,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupVault'; } @@ -3657,6 +5489,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3665,17 +5498,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3684,11 +5534,7 @@ Get Backup Vault storage setting object .Description Get Backup Vault storage setting object .Example -PS C:\> New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore - -DatastoreType Type -------------- ---- -VaultStore GeoRedundant +New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant -DataStoreType VaultStore .Outputs System.Management.Automation.PSObject @@ -3719,6 +5565,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionBackupVaultStorageSettingObject'; } @@ -3729,6 +5593,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3737,17 +5602,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3756,25 +5638,17 @@ Creates a new criteria object .Description Creates a new criteria object .Example -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay - -ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ----------- ----------------- ------------- ------------ ------------ --------------- -ScheduleBasedBackupCriteria {FirstOfDay} +New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay .Example -PS C:\> New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") - -ObjectType AbsoluteCriterion DaysOfTheWeek MonthsOfYear ScheduleTime WeeksOfTheMonth ----------- ----------------- ------------- ------------ ------------ --------------- -ScheduleBasedBackupCriteria {Sunday, Monday} +New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] @@ -3824,6 +5698,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ AbsoluteCriteria = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTagCriteriaClientObject'; ScheduleCriteria = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTagCriteriaClientObject'; @@ -3836,6 +5728,121 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates new Schedule object +.Description +Creates new Schedule object +.Example +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 +.Example +$date = Get-Date +New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 + +.Outputs +System.String[] +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytriggerscheduleclientobject +#> +function New-AzDataProtectionPolicyTriggerScheduleClientObject { +[OutputType([System.String[]])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.DateTime[]] + # Days with which backup will be scheduled. + ${ScheduleDays}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.BackupFrequency] + # Freuquency of the backup. + ${IntervalType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Int32] + # Frequency of the backup. + ${IntervalCount} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTriggerScheduleClientObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3844,61 +5851,134 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } +} } -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} +<# +.Synopsis +Creates a resource guard under a resource group +.Description +Creates a resource guard under a resource group +.Example +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard +#> +function New-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Resource Group name of the resource guard + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Name of the resource guard + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Location of the resource guard + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Subscription Id of the resource guard + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Optional ETag + ${ETag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # The IdentityType to be added to the resource guard, example: SystemAssigned, None + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Collections.Hashtable] + # Resource tags + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, -<# -.Synopsis -Creates new Schedule object -.Description -Creates new Schedule object -.Example -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Daily -IntervalCount 1 + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Break}, -R/2021-03-03T12:49:55+05:30/P1D -.Example -PS C:\> $date = get-date -PS C:\> New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $date -IntervalType Hourly -IntervalCount 4 + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, -R/2021-03-03T12:49:55+05:30/PT4H + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, -.Outputs -System.String[] -.Link -https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytriggerscheduleclientobject -#> -function New-AzDataProtectionPolicyTriggerScheduleClientObject { -[OutputType([System.String[]])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter(Mandatory)] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [System.DateTime[]] - # Days with which backup will be scheduled. - ${ScheduleDays}, + [System.Uri] + ${Proxy}, - [Parameter(Mandatory)] + [Parameter(DontShow)] + [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.BackupFrequency] - # Freuquency of the backup. - ${IntervalType}, + [System.Management.Automation.PSCredential] + ${ProxyCredential}, - [Parameter(Mandatory)] + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [System.Int32] - # Frequency of the backup. - ${IntervalCount} + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} ) begin { @@ -3908,8 +5988,26 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionPolicyTriggerScheduleClientObject'; + CreateResourceGuard = 'Az.DataProtection.custom\New-AzDataProtectionResourceGuard'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3918,6 +6016,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3926,17 +6025,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3945,29 +6061,17 @@ Creates new Lifecycle object .Description Creates new Lifecycle object .Example -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 - -DeleteAfterDuration : P30D -DeleteAfterObjectType : AbsoluteDeleteOption -SourceDataStoreObjectType : DataStoreInfoBase -SourceDataStoreType : OperationalStore -TargetDataStoreCopySetting : +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 30 .Example -PS C:\> New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 - -DeleteAfterDuration : P20W -DeleteAfterObjectType : AbsoluteDeleteOption -SourceDataStoreObjectType : DataStoreInfoBase -SourceDataStoreType : OperationalStore -TargetDataStoreCopySetting : +New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4008,6 +6112,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\New-AzDataProtectionRetentionLifeCycleClientObject'; } @@ -4018,6 +6140,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4026,17 +6149,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4045,34 +6185,11 @@ Searches for Backup instances in Azure Resource Graph and retrieves the expected .Description Searches for Backup instances in Azure Resource Graph and retrieves the expected entries .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk - -Name Type ----- ---- -ContosoDemoVM_DataDisk_0-ContosoDemoVM_DataDisk_0-5f7b2a1f-f1ab-4abe-aadf-e7dc48238157 microsoft.dataprotection/backupvaults/backupinstance -ContosoDemoVM_OsDisk_1_84b542ec38a447cea-ContosoDemoVM_OsDisk_1_84b542ec38a447cea-9bdcbd90-3555-4651-93b8-8265e1b5c07a microsoft.dataprotection/backupvaults/backupinstance -DataDisk1-DataDisk1-0c71e6bf-9289-483c-8e27-aa6c0df60078 microsoft.dataprotection/backupvaults/backupinstance -rraj-StandardHDD-rraj-StandardHDD-85d0a3f4-7fa8-46c7-bf83-0dee27eac08e microsoft.dataprotection/backupvaults/backupinstance -sakaarhotfixtest_disk1_86d713f7b80e493b9-sakaarhotfixtest_disk1_86d713f7b80e493b9-be214c89-c07d-41f0-8362-b78d58d5506f microsoft.dataprotection/backupvaults/backupinstance -pracdisk-pracdisk-643fac7d-0816-4056-8908-d0ef8b63b047 microsoft.dataprotection/backupvaults/backupinstance -test1-test1-59f95871-de81-4051-95e7-ee6c4e5b30e0 microsoft.dataprotection/backupvaults/backupinstance -anubhwus-test-anubhwus-test-5fe6ce14-fbd2-4641-80d0-f8f8b254601d microsoft.dataprotection/backupvaults/backupinstance +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") - -Name Type BackupInstanceName ----- ---- ------------------ -sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 microsoft.dataprotection/backupvaults/backupinstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e59 -sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6bad4305a microsoft.dataprotection/backupvaults/backupinstances sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6b +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured - -Name Type BackupInstanceName ----- ---- ------------------ -sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 microsoft.dataprotection/backupvaults/backupinstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e59 -sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6bad4305a microsoft.dataprotection/backupvaults/backupinstances sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6b +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured .Outputs System.Management.Automation.PSObject @@ -4121,6 +6238,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Search-AzDataProtectionBackupInstanceInAzGraph'; } @@ -4131,6 +6266,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4139,17 +6275,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4158,23 +6311,11 @@ Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entr .Description Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entries .Example -PS C:\> $endtime = get-date -PS C:\> $starttime = $endtime.AddHours(-5) -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime - -Name Type ----- ---- -1c1d56c2-b21a-4038-ba46-3c1a0089e66a microsoft.dataprotection/backupvaults/backupjobs -79f2804d-a39d-487e-91b5-f2eceffcbb7a microsoft.dataprotection/backupvaults/backupjobs -96238abd-6ff3-48e0-8c07-0eabd6928a17 microsoft.dataprotection/backupvaults/backupjobs +$endtime = Get-Date +$starttime = $endtime.AddHours(-5) +Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime .Example -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup - -Name Type ----- ---- -11bc277d-9448-446a-9e79-4721858524d6 microsoft.dataprotection/backupvaults/backupjobs -16d7b56a-e169-41d1-aa10-cafcc19c8e12 microsoft.dataprotection/backupvaults/backupjobs -1b0b17e3-398f-4265-9d03-ffc1e21fa73a microsoft.dataprotection/backupvaults/backupjobs +Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup .Outputs System.Management.Automation.PSObject @@ -4241,6 +6382,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Search-AzDataProtectionJobInAzGraph'; } @@ -4251,6 +6410,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4259,17 +6419,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -4278,22 +6455,18 @@ Updates associated policy for a given backup instance .Description Updates associated policy for a given backup instance .Example -PS C:\> $sub = "xxxx-xxxx-xxxx" -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66d404f Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66 +$sub = "xxxx-xxxx-xxxx" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +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.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -4384,6 +6557,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Update-AzDataProtectionBackupInstanceAssociatedPolicy'; } @@ -4394,6 +6585,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -4402,15 +6594,210 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Updates a resource guard belonging to a resource group +.Description +Updates a resource guard belonging to a resource group +.Example +PS C:\> $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name "resGuardName" +PS C:\> $criticalOperations = $resourceGuard.ResourceGuardOperation.VaultCriticalOperation +PS C:\> $operationsToBeExcluded = $criticalOperations | where { $_ -match "backupSecurityPIN/action" -or $_ -match "backupInstances/delete" } +PS C:\> Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard +#> +function Update-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Resource Group name of the resource guard + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Name of the resource guard + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Subscription Id of the resource guard + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Optional ETag + ${ETag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # The identityType to be updated in resource guard, example: SystemAssigned, None + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Collections.Hashtable] + # Resource tags + ${Tag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # List of critical operations which are not protected by this resourceGuard. + # Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin + ${CriticalOperationExclusionList}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateResourceGuardOperations = 'Az.DataProtection.custom\Update-AzDataProtectionResourceGuard'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + } +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} } diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 index d16dad7e4f34..7132936d43c4 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 @@ -20,8 +20,8 @@ Delete a backupInstances .Description Delete a backupInstances .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name $instance[0].name .Inputs @@ -159,6 +159,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_Delete'; DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_DeleteViaIdentity'; @@ -173,6 +191,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -181,15 +200,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 index 38db0336083b..c0c340460384 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 @@ -20,8 +20,8 @@ Deletes a backup policy belonging to a backup vault .Description Deletes a backup policy belonging to a backup vault .Example -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -PS C:\> Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupPolicy -Name $policy[0].name -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Inputs @@ -147,6 +147,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_Delete'; DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_DeleteViaIdentity'; @@ -161,6 +179,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -169,15 +188,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 index 8c146757905e..b5e6a8aa7ff9 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 @@ -20,7 +20,7 @@ Deletes a BackupVault resource from the resource group. .Description Deletes a BackupVault resource from the resource group. .Example -PS C:\> Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +Remove-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" .Inputs @@ -139,6 +139,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_Delete'; DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_DeleteViaIdentity'; @@ -153,6 +171,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -161,15 +180,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..79dbcaae6b1a --- /dev/null +++ b/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,210 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a ResourceGuard resource from the resource group. +.Description +Deletes a ResourceGuard resource from the resource group. +.Example +PS C:\> Remove-AzDataProtectionResourceGuard -Name "ResourceGuardName" -ResourceGroupName "ResourceGroupName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionresourceguard +#> +function Remove-AzDataProtectionResourceGuard { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of ResourceGuard + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_Delete'; + DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 new file mode 100644 index 000000000000..3e8d2444dae0 --- /dev/null +++ b/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 @@ -0,0 +1,228 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +This operation will resume protection for a stopped backup instance +.Description +This operation will resume protection for a stopped backup instance +.Example +PS C:\> Resume-AzDataProtectionBackupInstanceProtection -BackupInstanceName $backupInstance.BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/resume-azdataprotectionbackupinstanceprotection +#> +function Resume-AzDataProtectionBackupInstanceProtection { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Resume', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Resume', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Resume', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='ResumeViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Resume = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_Resume'; + ResumeViaIdentity = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_ResumeViaIdentity'; + } + if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 b/src/DataProtection/exports/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 index 0c474458aaa0..0684aa81df51 100644 --- a/src/DataProtection/exports/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 +++ b/src/DataProtection/exports/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 @@ -20,34 +20,11 @@ Searches for Backup instances in Azure Resource Graph and retrieves the expected .Description Searches for Backup instances in Azure Resource Graph and retrieves the expected entries .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk - -Name Type ----- ---- -ContosoDemoVM_DataDisk_0-ContosoDemoVM_DataDisk_0-5f7b2a1f-f1ab-4abe-aadf-e7dc48238157 microsoft.dataprotection/backupvaults/backupinstance -ContosoDemoVM_OsDisk_1_84b542ec38a447cea-ContosoDemoVM_OsDisk_1_84b542ec38a447cea-9bdcbd90-3555-4651-93b8-8265e1b5c07a microsoft.dataprotection/backupvaults/backupinstance -DataDisk1-DataDisk1-0c71e6bf-9289-483c-8e27-aa6c0df60078 microsoft.dataprotection/backupvaults/backupinstance -rraj-StandardHDD-rraj-StandardHDD-85d0a3f4-7fa8-46c7-bf83-0dee27eac08e microsoft.dataprotection/backupvaults/backupinstance -sakaarhotfixtest_disk1_86d713f7b80e493b9-sakaarhotfixtest_disk1_86d713f7b80e493b9-be214c89-c07d-41f0-8362-b78d58d5506f microsoft.dataprotection/backupvaults/backupinstance -pracdisk-pracdisk-643fac7d-0816-4056-8908-d0ef8b63b047 microsoft.dataprotection/backupvaults/backupinstance -test1-test1-59f95871-de81-4051-95e7-ee6c4e5b30e0 microsoft.dataprotection/backupvaults/backupinstance -anubhwus-test-anubhwus-test-5fe6ce14-fbd2-4641-80d0-f8f8b254601d microsoft.dataprotection/backupvaults/backupinstance +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") - -Name Type BackupInstanceName ----- ---- ------------------ -sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 microsoft.dataprotection/backupvaults/backupinstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e59 -sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6bad4305a microsoft.dataprotection/backupvaults/backupinstances sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6b +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") .Example -PS C:\> Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured - -Name Type BackupInstanceName ----- ---- ------------------ -sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea74df26d4a8 microsoft.dataprotection/backupvaults/backupinstances sarath-disk3-sarath-disk3-dbb8c2d0-bdbf-448c-9664-ea7 -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 microsoft.dataprotection/backupvaults/backupinstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e59 -sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6bad4305a microsoft.dataprotection/backupvaults/backupinstances sarathdisk2-sarathdisk2-b0bf31ab-c9c5-407f-98a2-3ad6b +Search-AzDataProtectionBackupInstanceInAzGraph -Subscription "xxxx-xxx-xxx" -DatasourceType AzureDisk -ResourceGroup @("sarath-rg", "sarath-rg2") -ProtectionStatus ProtectionConfigured .Outputs System.Management.Automation.PSObject @@ -96,6 +73,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Search-AzDataProtectionBackupInstanceInAzGraph'; } @@ -106,6 +101,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -114,15 +110,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Search-AzDataProtectionJobInAzGraph.ps1 b/src/DataProtection/exports/Search-AzDataProtectionJobInAzGraph.ps1 index 2f85b9205ba9..287390274865 100644 --- a/src/DataProtection/exports/Search-AzDataProtectionJobInAzGraph.ps1 +++ b/src/DataProtection/exports/Search-AzDataProtectionJobInAzGraph.ps1 @@ -20,23 +20,11 @@ Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entr .Description Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entries .Example -PS C:\> $endtime = get-date -PS C:\> $starttime = $endtime.AddHours(-5) -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime - -Name Type ----- ---- -1c1d56c2-b21a-4038-ba46-3c1a0089e66a microsoft.dataprotection/backupvaults/backupjobs -79f2804d-a39d-487e-91b5-f2eceffcbb7a microsoft.dataprotection/backupvaults/backupjobs -96238abd-6ff3-48e0-8c07-0eabd6928a17 microsoft.dataprotection/backupvaults/backupjobs +$endtime = Get-Date +$starttime = $endtime.AddHours(-5) +Search-AzDataProtectionJobInAzGraph -Subscription "xxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -StartTime $starttime -EndTime $endtime .Example -PS C:\> Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup - -Name Type ----- ---- -11bc277d-9448-446a-9e79-4721858524d6 microsoft.dataprotection/backupvaults/backupjobs -16d7b56a-e169-41d1-aa10-cafcc19c8e12 microsoft.dataprotection/backupvaults/backupjobs -1b0b17e3-398f-4265-9d03-ffc1e21fa73a microsoft.dataprotection/backupvaults/backupjobs +Search-AzDataProtectionJobInAzGraph -Subscription "xxxx-xxx-xxx" -ResourceGroup sarath-rg -Vault sarath-vault -DatasourceType AzureDisk -Operation OnDemandBackup .Outputs System.Management.Automation.PSObject @@ -103,6 +91,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Search-AzDataProtectionJobInAzGraph'; } @@ -113,6 +119,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -121,15 +128,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 index 456c0448f162..b15473c5193f 100644 --- a/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 @@ -20,21 +20,21 @@ Triggers restore for a BackupInstance .Description Triggers restore for a BackupInstance .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name -PS C:\> Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName "sarath-rg" -VaultName "sarath-vault" -BackupInstanceName $instance.Name +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDisk -SourceDataStore OperationalStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{DiskName}" -RecoveryPoint $rp[0].name +Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName sarath-rg -VaultName sarath-vault -SubscriptionId "xxx-xxx-xxx" -Parameter $restorerequest .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/serverName/databases/targetDbName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType AlternateLocation -TargetResourceId $targetResourceId -RecoveryPoint $rp[0].Property.RecoveryPointId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") { Start-Sleep -Seconds 10 $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" @@ -42,15 +42,15 @@ PS C:\> while($jobstatus -ne "Completed") } .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -PS C:\> $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name -PS C:\> $targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" -PS C:\> $fileNamePrefix = "restore_as_files_12345" -PS C:\> $restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix -PS C:\> $restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest -PS C:\> $jobid = $restoreJob.JobId.Split("/")[-1] -PS C:\> $jobstatus = "InProgress" -PS C:\> while($jobstatus -ne "Completed") +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" +$rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name +$targetContainerURI = ""https://targetStorageAccount.blob.core.windows.net/targetContainerName"" +$fileNamePrefix = "restore_as_files_12345" +$restoreRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation "westus" -RestoreType RestoreAsFiles -RecoveryPoint $rp[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix +$restoreJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.BackupInstanceName -ResourceGroupName resourceGroupName -VaultName vaultName -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Parameter $restorerequest +$jobid = $restoreJob.JobId.Split("/")[-1] +$jobstatus = "InProgress" +while($jobstatus -ne "Completed") { Start-Sleep -Seconds 10 $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" @@ -59,9 +59,9 @@ PS C:\> while($jobstatus -ne "Completed") .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -73,6 +73,7 @@ PARAMETER : Azure backup restore request ObjectType : Type of Datasource object, used to initialize the right inherited type [RestoreLocation ]: Target Restore region SourceDataStoreType : Gets or sets the type of the source data store. + [SourceResourceId ]: Fully qualified Azure Resource Manager ID of the datasource which is being recovered. RESTORETARGETINFO : Gets or sets the restore target information. ObjectType : Type of Datasource object, used to initialize the right inherited type @@ -81,7 +82,7 @@ RESTORETARGETINFO : Gets or sets the restore target info https://docs.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore #> function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -111,7 +112,7 @@ param( [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest] # Azure backup restore request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -124,7 +125,7 @@ param( [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase] # Gets or sets the restore target information. # To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ${RestoreTargetInfo}, @@ -136,6 +137,12 @@ param( # Gets or sets the type of the source data store. ${SourceDataStoreType}, + [Parameter(ParameterSetName='TriggerExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + ${SourceResourceId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -203,6 +210,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Trigger = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_Trigger'; TriggerExpanded = 'Az.DataProtection.private\Start-AzDataProtectionBackupInstanceRestore_TriggerExpanded'; @@ -217,6 +242,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -225,15 +251,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 new file mode 100644 index 000000000000..69ef13d8efd2 --- /dev/null +++ b/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 @@ -0,0 +1,228 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +This operation will stop protection of a backup instance and data will be held forever +.Description +This operation will stop protection of a backup instance and data will be held forever +.Example +PS C:\> Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection +#> +function Stop-AzDataProtectionBackupInstanceProtection { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Stop', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Stop = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_Stop'; + StopViaIdentity = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_StopViaIdentity'; + } + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 b/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 new file mode 100644 index 000000000000..0c414eb14caa --- /dev/null +++ b/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 @@ -0,0 +1,228 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +This operation will stop backups for backup instance +.Description +This operation will stop backups for backup instance +.Example +PS C:\> Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +System.Boolean +.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [VaultName ]: The name of the backup vault. +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup +#> +function Suspend-AzDataProtectionBackupInstanceBackup { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Suspend', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Suspend', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${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. + ${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. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Suspend', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter(ParameterSetName='SuspendViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Suspend = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_Suspend'; + SuspendViaIdentity = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_SuspendViaIdentity'; + } + if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 new file mode 100644 index 000000000000..ce002a099257 --- /dev/null +++ b/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 @@ -0,0 +1,209 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state +.Description +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state +.Example +PS C:\> Sync-AzDataProtectionBackupInstance -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName + +.Outputs +System.Boolean +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/sync-azdataprotectionbackupinstance +#> +function Sync-AzDataProtectionBackupInstance { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='SyncExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('BackupInstanceName')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # . + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the resource group where the backup vault is present. + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of the backup vault. + ${VaultName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType] + # Field indicating sync type e.g. + # to sync only in case of failure or in all cases + ${SyncType}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + SyncExpanded = 'Az.DataProtection.private\Sync-AzDataProtectionBackupInstance_SyncExpanded'; + } + if (('SyncExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index 7951b34280db..17e1a083ec14 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 @@ -20,22 +20,18 @@ Updates associated policy for a given backup instance .Description Updates associated policy for a given backup instance .Example -PS C:\> $sub = "xxxx-xxxx-xxxx" -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66d404f Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-2ba3c708-3648-45e2-809d-9f75e66 +$sub = "xxxx-xxxx-xxxx" +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault +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.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -126,6 +122,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.DataProtection.custom\Update-AzDataProtectionBackupInstanceAssociatedPolicy'; } @@ -136,6 +150,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -144,15 +159,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 index 8d16079ca9b2..5e1ef2cb329b 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 @@ -22,17 +22,19 @@ For example, updating tags for a resource. Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. .Example -PS C:\> $tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} -PS C:\> Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +$tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} +Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag +.Example +PS C:\> Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults +Name Location Type IdentityType +---- -------- ---- ------------ +vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -55,7 +57,7 @@ INPUTOBJECT : Identity Parameter https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -84,6 +86,14 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -92,7 +102,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -164,6 +174,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateViaIdentityExpanded'; @@ -178,6 +206,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -186,15 +215,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..8fb6c3ee9603 --- /dev/null +++ b/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,193 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a resource guard belonging to a resource group +.Description +Updates a resource guard belonging to a resource group +.Example +PS C:\> $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name "resGuardName" +PS C:\> $criticalOperations = $resourceGuard.ResourceGuardOperation.VaultCriticalOperation +PS C:\> $operationsToBeExcluded = $criticalOperations | where { $_ -match "backupSecurityPIN/action" -or $_ -match "backupInstances/delete" } +PS C:\> Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Link +https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard +#> +function Update-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Resource Group name of the resource guard + ${ResourceGroupName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Name of the resource guard + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Subscription Id of the resource guard + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # Optional ETag + ${ETag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # The identityType to be updated in resource guard, example: SystemAssigned, None + ${IdentityType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Collections.Hashtable] + # Resource tags + ${Tag}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # List of critical operations which are not protected by this resourceGuard. + # Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin + ${CriticalOperationExclusionList}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSObject] + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Uri] + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.PSCredential] + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Management.Automation.SwitchParameter] + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateResourceGuardOperations = 'Az.DataProtection.custom\Update-AzDataProtectionResourceGuard'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DataProtection/generate-info.json b/src/DataProtection/generate-info.json index d4858e25ce45..fad830ea437f 100644 --- a/src/DataProtection/generate-info.json +++ b/src/DataProtection/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "14b3b50008f77d12b7b2e238753c52b8f857cb63", - "autorest_modelerfour": "4.15.414", - "autorest_core": "3.7.3", + "swagger_commit": "9a6b5748f6ba9eeb2684497551226036c9d1da6b", "autorest": "`-- (empty)", - "node": "v14.15.5", - "autorest_powershell": "3.0.469" + "autorest_core": "3.8.4", + "autorest_modelerfour": "4.15.414", + "autorest_powershell": "3.0.490", + "node": "v14.15.5" } diff --git a/src/DataProtection/generated/Module.cs b/src/DataProtection/generated/Module.cs index 7d6bad60e220..76aac8e1b6e3 100644 --- a/src/DataProtection/generated/Module.cs +++ b/src/DataProtection/generated/Module.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection using GetParameterDelegate = global::System.Func; using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using ArgumentCompleterDelegate = global::System.Func; + using GetTelemetryIdDelegate = global::System.Func; + using TelemetryDelegate = global::System.Action; using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; @@ -30,6 +32,8 @@ public partial class Module /// the ISendAsync pipeline instance (when proxy is enabled) private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline _pipelineWithProxy; + public bool _useProxy = false; + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); /// Gets completion data for azure specific fields @@ -44,6 +48,9 @@ public partial class Module /// The delegate to call to get parameter data from a common module. public GetParameterDelegate GetParameterValue { get; set; } + /// The delegate to get the telemetry Id. + public GetTelemetryIdDelegate GetTelemetryId { get; set; } + /// Backing field for property. private static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module _instance; @@ -65,6 +72,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.DataProtection"; + /// The delegate for creating a telemetry. + public TelemetryDelegate Telemetry { get; set; } + /// The from the cmdlet /// The HttpPipeline for the request @@ -88,7 +98,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Cr { Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline pipeline = null; BeforeCreatePipeline(invocationInfo, ref pipeline); - pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone(); AfterCreatePipeline(invocationInfo, ref pipeline); pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); @@ -115,7 +125,7 @@ public void Init() /// Creates the module instance. private Module() { - /// constructor + // constructor ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection(); _handler.Proxy = _webProxy; _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); @@ -127,12 +137,24 @@ private Module() /// True if the proxy should use default credentials public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) { + _useProxy = proxy != null; + if (proxy == null) + { + return; + } // set the proxy configuration _webProxy.Address = proxy; _webProxy.BypassProxyOnLocal = false; - _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); - _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; - _handler.UseProxy = proxy != null; + if (proxyUseDefaultCredentials) + { + _webProxy.Credentials = null; + _webProxy.UseDefaultCredentials = true; + } + else + { + _webProxy.UseDefaultCredentials = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + } } /// Called to dispatch events to the common module listener diff --git a/src/DataProtection/generated/api/DataProtection.cs b/src/DataProtection/generated/api/DataProtection.cs index d580d8775b64..91ee589bff73 100644 --- a/src/DataProtection/generated/api/DataProtection.cs +++ b/src/DataProtection/generated/api/DataProtection.cs @@ -14,9 +14,9 @@ public partial class DataProtection { /// Trigger adhoc backup - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -27,9 +27,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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.Api20210701.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.Api20220401.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -91,9 +91,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -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 ) { @@ -244,6 +244,7 @@ public partial class DataProtection // 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; } } @@ -254,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -279,22 +280,22 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesAdhocBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -302,9 +303,9 @@ public partial class DataProtection } /// Create or update a backup instance in a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -315,9 +316,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -363,9 +364,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.Api20210701.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.Api20220401.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -378,9 +379,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -423,7 +424,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 ) { @@ -529,6 +530,7 @@ public partial class DataProtection // 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; } } @@ -539,13 +541,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -564,22 +566,22 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -587,9 +589,9 @@ public partial class DataProtection } /// Delete a backupInstances - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 204 (NoContent). @@ -600,9 +602,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesDelete(string 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -644,9 +646,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -659,9 +661,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -701,7 +703,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 ) { @@ -808,6 +810,7 @@ public partial class DataProtection // 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; } } @@ -830,7 +833,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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -849,29 +852,29 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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. /// - internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } /// Gets a backup instance with name in a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 @@ -881,9 +884,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesGet(string 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -914,9 +917,60 @@ public partial class DataProtection } } - /// Gets a backup instance with name in a backup vault + /// Get result of backup instance creation operation + /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). + /// 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 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-04-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) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/operationResults/" + + global::System.Uri.EscapeDataString(operationId) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // 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.BackupInstancesGetBackupInstanceOperationResult_Call(request,onOk,onAccepted,onDefault,eventListener,sender); + } + } + + /// Get result of backup instance creation operation /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -924,25 +978,26 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupInstances/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/operationResults/(?[^/]+)$", 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}/backupInstances/{backupInstanceName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; var backupInstanceName = _match.Groups["backupInstanceName"].Value; + var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -953,6 +1008,8 @@ public partial class DataProtection + vaultName + "/backupInstances/" + backupInstanceName + + "/operationResults/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -966,13 +1023,16 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesGet_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesGetBackupInstanceOperationResult_Call(request,onOk,onAccepted,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -980,7 +1040,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 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 ) { @@ -998,13 +1058,19 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Accepted: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onAccepted(_response); 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1020,73 +1086,31 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// The name of the backup instance + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesGet_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + await eventListener.AssertNotNull(nameof(operationId),operationId); } } - /// Gets a backup instances belonging to a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. - /// 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 BackupInstancesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) - { - var apiVersion = @"2021-07-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) - + "/backupInstances" - + "?" - + "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.BackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Gets a backup instances belonging to a backup vault + /// Gets a 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 @@ -1096,24 +1120,25 @@ 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 BackupInstancesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupInstances$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)$", 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}/backupInstances'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -1122,7 +1147,8 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupInstances" + + "/backupInstances/" + + backupInstanceName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1136,11 +1162,11 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1150,7 +1176,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 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 ) { @@ -1168,13 +1194,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1190,33 +1216,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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. /// - internal async global::System.Threading.Tasks.Task BackupInstancesList_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } - /// rehydrate recovery point for restore for a BackupInstance - /// The name of the resource group where the backup vault is present. + /// 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 name of the backup vault. - /// - /// 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 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. @@ -1224,9 +1250,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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1238,9 +1264,7 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/backupInstances/" - + global::System.Uri.EscapeDataString(backupInstanceName) - + "/rehydrate" + + "/backupInstances" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1249,23 +1273,18 @@ public partial class DataProtection // 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); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesTriggerRehydrate_Call(request,onNoContent,onDefault,eventListener,sender); + await this.BackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); } } - /// rehydrate recovery point for restore for a BackupInstance + /// Gets a backup instances belonging to a backup vault /// - /// 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 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. @@ -1273,25 +1292,24 @@ 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.Api20210701.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 BackupInstancesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupInstances/(?[^/]+)/rehydrate$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances$", 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}/backupInstances/{backupInstanceName}/rehydrate'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -1300,9 +1318,7 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupInstances/" - + backupInstanceName - + "/rehydrate" + + "/backupInstances" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1311,22 +1327,18 @@ public partial class DataProtection // 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); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesTriggerRehydrate_Call(request,onNoContent,onDefault,eventListener,sender); + await this.BackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -1334,7 +1346,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 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 ) { @@ -1345,119 +1357,20 @@ public partial class DataProtection 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); - break; - } - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.NoContent: + case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1473,37 +1386,31 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. /// 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 BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Triggers restore for a BackupInstance - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. + /// This operation will resume backups for backup instance /// The subscription Id. - /// The name of the backup instance - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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). @@ -1512,9 +1419,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1528,7 +1435,7 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(vaultName) + "/backupInstances/" + global::System.Uri.EscapeDataString(backupInstanceName) - + "/restore" + + "/resumeBackups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1541,18 +1448,13 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesTriggerRestore_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesResumeBackups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Triggers restore for a BackupInstance + /// This operation will resume backups for 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 /// elsewhere). @@ -1561,24 +1463,24 @@ 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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupInstances/(?[^/]+)/restore$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/resumeBackups$", 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}/backupInstances/{backupInstanceName}/restore'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -1590,7 +1492,7 @@ public partial class DataProtection + vaultName + "/backupInstances/" + backupInstanceName - + "/restore" + + "/resumeBackups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1603,16 +1505,12 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesTriggerRestore_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesResumeBackups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1622,7 +1520,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 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 ) { @@ -1729,6 +1627,7 @@ public partial class DataProtection // 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; } } @@ -1739,13 +1638,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.Api20210701.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1761,36 +1660,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// The name of the backup instance - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesTriggerRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesResumeBackups_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Validate whether adhoc backup will be successful or not - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. + /// This operation will resume protection for a stopped backup instance /// The subscription Id. - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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). @@ -1799,9 +1695,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1813,7 +1709,9 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/validateForBackup" + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/resumeProtection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1826,18 +1724,13 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesValidateForBackup_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesResumeProtection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Validate whether adhoc backup will be successful or not + /// This operation will resume protection for a stopped 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 /// elsewhere). @@ -1846,24 +1739,25 @@ 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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/validateForBackup$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/resumeProtection$", 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}/validateForBackup'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -1872,7 +1766,9 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/validateForBackup" + + "/backupInstances/" + + backupInstanceName + + "/resumeProtection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1885,16 +1781,12 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesValidateForBackup_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesResumeProtection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1904,7 +1796,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 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 ) { @@ -2011,6 +1903,7 @@ public partial class DataProtection // 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; } } @@ -2021,13 +1914,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.Api20210701.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2043,35 +1936,35 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesValidateForBackup_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesResumeProtection_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } - /// Validates if Restore can be triggered for a DataSource - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. + /// + /// This operation will stop protection of a backup instance and data will be held forever + /// /// The subscription Id. - /// The name of the backup instance - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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). @@ -2080,9 +1973,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 vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2096,7 +1989,7 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(vaultName) + "/backupInstances/" + global::System.Uri.EscapeDataString(backupInstanceName) - + "/validateRestore" + + "/stopProtection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2109,18 +2002,15 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesValidateForRestore_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesStopProtection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Validates if Restore can be triggered for a DataSource + /// + /// This operation will stop protection of a backup instance and data will be held forever + /// /// - /// 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 /// elsewhere). @@ -2129,24 +2019,24 @@ 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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupInstances/(?[^/]+)/validateRestore$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/stopProtection$", 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}/backupInstances/{backupInstanceName}/validateRestore'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -2158,7 +2048,7 @@ public partial class DataProtection + vaultName + "/backupInstances/" + backupInstanceName - + "/validateRestore" + + "/stopProtection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2171,16 +2061,12 @@ public partial class DataProtection 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupInstancesValidateForRestore_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesStopProtection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2190,7 +2076,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 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 ) { @@ -2297,6 +2183,7 @@ public partial class DataProtection // 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; } } @@ -2307,13 +2194,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.Api20210701.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2329,37 +2216,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// The name of the backup instance - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesValidateForRestore_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesStopProtection_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Creates or Updates a backup policy belonging to a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. + /// This operation will stop backups for backup instance /// The subscription Id. - /// Name of the policy - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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). @@ -2368,9 +2251,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2382,8 +2265,9 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/backupPolicies/" - + global::System.Uri.EscapeDataString(backupPolicyName) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/suspendBackups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2392,22 +2276,17 @@ public partial class DataProtection // 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.Put, _url); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesSuspendBackups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or Updates a backup policy belonging to a backup vault + /// This operation will stop backups for 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 /// elsewhere). @@ -2416,25 +2295,25 @@ 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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/suspendBackups$", 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}/backupPolicies/{backupPolicyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; - var backupPolicyName = _match.Groups["backupPolicyName"].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/" @@ -2443,8 +2322,9 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupPolicies/" - + backupPolicyName + + "/backupInstances/" + + backupInstanceName + + "/suspendBackups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2453,20 +2333,16 @@ public partial class DataProtection // 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.Put, _url); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupInstancesSuspendBackups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2476,7 +2352,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 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 ) { @@ -2487,6 +2363,106 @@ public partial class DataProtection 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 ) @@ -2494,13 +2470,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.Api20210701.BaseBackupPolicyResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2516,38 +2492,38 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// Name of the policy - /// Request body for operation + /// The name of the resource group where the backup vault is present. + /// 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 BackupPoliciesCreateOrUpdate_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } - /// Deletes a backup policy belonging to a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. + /// + /// 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 name of the backup vault. + /// + /// 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 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2555,9 +2531,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesDelete(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2569,8 +2545,9 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/backupPolicies/" - + global::System.Uri.EscapeDataString(backupPolicyName) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2579,19 +2556,26 @@ public partial class DataProtection // 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.Delete, _url); + 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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.BackupInstancesSyncBackupInstance_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes a backup policy belonging to a backup vault + /// + /// Sync backup instance again in case of failure + /// This action will retry last failed operation and will bring backup instance to valid state + /// /// + /// 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 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2599,25 +2583,25 @@ 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 BackupInstancesSyncBackupInstanceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupInstances/(?[^/]+)/sync$", 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}/backupPolicies/{backupPolicyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; - var backupPolicyName = _match.Groups["backupPolicyName"].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/" @@ -2626,8 +2610,9 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupPolicies/" - + backupPolicyName + + "/backupInstances/" + + backupInstanceName + + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2636,19 +2621,22 @@ public partial class DataProtection // 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.Delete, _url); + 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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.BackupInstancesSyncBackupInstance_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2656,7 +2644,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 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 ) { @@ -2667,67 +2655,1682 @@ public partial class DataProtection 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 ) + // 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 ) { - 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; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; + + // 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"); } - 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.Api20210701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } + 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.Api20220401.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 subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesSyncBackupInstance_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// 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 backup vault. + /// + /// 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 + /// 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 BackupInstancesTriggerRehydrate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/rehydrate" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesTriggerRehydrate_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// rehydrate recovery point for restore for a BackupInstance + /// + /// 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 + /// 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 BackupInstancesTriggerRehydrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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/(?[^/]+)/backupInstances/(?[^/]+)/rehydrate$", 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}/backupInstances/{backupInstanceName}/rehydrate'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].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 + + "/backupInstances/" + + backupInstanceName + + "/rehydrate" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesTriggerRehydrate_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 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 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 ) + { + 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.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_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.Api20220401.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 name of the resource group where the backup vault is present. + /// The subscription Id. + /// 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 BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Triggers restore for a BackupInstance + /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 + /// 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 BackupInstancesTriggerRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/restore" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesTriggerRestore_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Triggers restore for a BackupInstance + /// + /// 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 + /// 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 BackupInstancesTriggerRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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/(?[^/]+)/backupInstances/(?[^/]+)/restore$", 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}/backupInstances/{backupInstanceName}/restore'"); + } + + // 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 + + "/backupInstances/" + + backupInstanceName + + "/restore" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesTriggerRestore_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 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 ) + { + 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,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.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 subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesTriggerRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// 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 name of the backup vault. + /// 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 + /// 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 BackupInstancesValidateForBackup(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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) + + "/validateForBackup" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesValidateForBackup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Validate whether adhoc backup will be successful or not + /// + /// 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 + /// 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 BackupInstancesValidateForBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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/(?[^/]+)/validateForBackup$", 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}/validateForBackup'"); + } + + // 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 + + "/validateForBackup" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesValidateForBackup_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 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 ) + { + 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,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.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 subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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.Api20220401.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// 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 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 + /// 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 BackupInstancesValidateForRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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) + + "/backupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/validateRestore" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesValidateForRestore_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Validates if Restore can be triggered for a DataSource + /// + /// 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 + /// 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 BackupInstancesValidateForRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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/(?[^/]+)/backupInstances/(?[^/]+)/validateRestore$", 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}/backupInstances/{backupInstanceName}/validateRestore'"); + } + + // 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 + + "/backupInstances/" + + backupInstanceName + + "/validateRestore" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupInstancesValidateForRestore_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 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 ) + { + 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,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.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 subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupInstancesValidateForRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// 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 name of the backup vault. + /// Name of the policy + /// 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 + /// 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 BackupPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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) + + "/backupPolicies/" + + global::System.Uri.EscapeDataString(backupPolicyName) + + "?" + + "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.Put, _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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or Updates a backup policy belonging to a backup vault + /// + /// 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 + /// 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 BackupPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-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/(?[^/]+)/backupPolicies/(?[^/]+)$", 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}/backupPolicies/{backupPolicyName}'"); + } + + // 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 backupPolicyName = _match.Groups["backupPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/backupPolicies/" + + backupPolicyName + + "?" + + "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.Put, _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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.BackupPoliciesCreateOrUpdate_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 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 ) + { + 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.Api20220401.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.Api20220401.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. + /// 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 name of the backup vault. + /// Name of the policy + /// 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 BackupPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// 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 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 204 (NoContent). + /// 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 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-04-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) + + "/backupPolicies/" + + global::System.Uri.EscapeDataString(backupPolicyName) + + "?" + + "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.Delete, _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.BackupPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a backup policy 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 204 (NoContent). + /// 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 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-04-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/(?[^/]+)/backupPolicies/(?[^/]+)$", 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}/backupPolicies/{backupPolicyName}'"); + } + + // 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 backupPolicyName = _match.Groups["backupPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/backupPolicies/" + + backupPolicyName + + "?" + + "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.Delete, _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.BackupPoliciesDelete_Call(request,onOk,onNoContent,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 204 (NoContent). + /// 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 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 ) + { + 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); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_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.Api20220401.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 subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupPoliciesDelete_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupPoliciesDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); } } /// Gets a backup policy belonging to a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 @@ -2737,9 +4340,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesGet(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesGet(string 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2780,9 +4383,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2795,9 +4398,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; var backupPolicyName = _match.Groups["backupPolicyName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -2836,7 +4439,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 ) { @@ -2854,13 +4457,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2879,29 +4482,29 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupPoliciesGet_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupPoliciesGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); } } /// Returns list of backup policies belonging to a backup vault - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -2910,9 +4513,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesList(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2952,9 +4555,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2967,9 +4570,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -3006,7 +4609,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 ) { @@ -3024,13 +4627,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3049,26 +4652,26 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupPoliciesList_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupPoliciesList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -3079,9 +4682,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 vaultName, string resourceGroupName, string subscriptionId, 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3122,9 +4725,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3137,9 +4740,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -3179,7 +4782,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 ) { @@ -3197,19 +4800,19 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\VssAdministrator\.autorest\@autorest_powershell@3.0.469\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\VssAdministrator\.autorest\@autorest_powershell@3.0.490\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3228,21 +4831,21 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupVaultOperationResultsGet_Validate(string vaultName, string resourceGroupName, string subscriptionId, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultOperationResultsGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(operationId),operationId); } } @@ -3260,9 +4863,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.Api20210701.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.Api20220401.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3307,9 +4910,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.Api20210701.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.Api20220401.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3365,7 +4968,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 ) { @@ -3383,13 +4986,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3416,7 +5019,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_Validate(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3429,9 +5032,9 @@ public partial class DataProtection } /// Creates or updates a BackupVault resource belonging to a resource group. - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. /// 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 @@ -3441,9 +5044,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3487,9 +5090,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.Api20210701.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.Api20220401.IBackupVaultResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3502,9 +5105,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -3544,7 +5147,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 ) { @@ -3650,6 +5253,7 @@ public partial class DataProtection // 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; } } @@ -3660,13 +5264,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3685,30 +5289,30 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IBackupVaultResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } /// Deletes a BackupVault resource from the resource group. - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -3719,9 +5323,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsDelete(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsDelete(string 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3762,9 +5366,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onAccepted, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3777,9 +5381,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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/" @@ -3817,7 +5421,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 ) { @@ -3853,7 +5457,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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3872,27 +5476,27 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupVaultsDelete_Validate(string vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsDelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } /// Returns a resource belonging to a resource group. - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -3901,9 +5505,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGet(string vaultName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task BackupVaultsGet(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3928,13 +5532,210 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupVaultsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Returns resource collection belonging to a resource group. + /// The name of the resource group where the backup vault is present. + /// The subscription Id. + /// 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 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-04-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" + + "?" + + "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.BackupVaultsGetInResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Returns resource collection belonging to a resource group. + /// + /// 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 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-04-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$", 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'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults" + + "?" + + "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.BackupVaultsGetInResourceGroup_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 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 ) + { + 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.Api20220401.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.Api20220401.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 name of the resource group where the backup vault is present. + /// The subscription Id. + /// 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 BackupVaultsGetInResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Returns resource collection belonging to a subscription. + /// The subscription Id. + /// 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 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-04-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DataProtection/backupVaults" + + "?" + + "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.BackupVaultsGetInSubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Returns resource collection belonging to a resource group. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// Returns resource collection belonging to a subscription. + /// /// 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). @@ -3943,18 +5744,26 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) + + subscriptionId + "/providers/Microsoft.DataProtection/backupVaults" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -3969,11 +5778,77 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGetInResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupVaultsGetInSubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Returns resource collection belonging to a resource group. + /// 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 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 ) + { + 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.Api20220401.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.Api20220401.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 subscription Id. + /// 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 BackupVaultsGetInSubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Returns a resource belonging to a resource group. /// /// 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 @@ -3983,30 +5858,32 @@ 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 BackupVaultsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)$", 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'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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" + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4020,11 +5897,11 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGetInResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupVaultsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4034,7 +5911,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 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 ) { @@ -4052,13 +5929,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4074,26 +5951,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupVaultsGetInResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } - /// Returns resource collection belonging to a subscription. + /// + /// 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 name of the backup vault. + /// 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 /// elsewhere). @@ -4102,9 +5986,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 BackupVaultsUpdate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4112,7 +5996,10 @@ public partial class DataProtection var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DataProtection/backupVaults" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4121,17 +6008,24 @@ public partial class DataProtection // 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); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Patch, _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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGetInSubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupVaultsUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Returns resource collection belonging to a subscription. + /// + /// Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. + /// /// + /// 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 /// elsewhere). @@ -4140,27 +6034,32 @@ 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 BackupVaultsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}'"); } // 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 - + "/providers/Microsoft.DataProtection/backupVaults" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4169,16 +6068,20 @@ public partial class DataProtection // 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); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Patch, _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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGetInSubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.BackupVaultsUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4188,7 +6091,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 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 ) { @@ -4199,6 +6102,105 @@ public partial class DataProtection 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 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(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), 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 ) @@ -4206,13 +6208,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4228,24 +6230,78 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 BackupVaultsGetInSubscription_Validate(string subscriptionId, 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.Api20220401.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Returns a resource belonging to a resource group. + /// Validates if a feature is supported + /// The subscription Id. + /// + /// Feature support request object + /// 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 DataProtectionCheckFeatureSupport(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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-04-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DataProtection/locations/" + + global::System.Uri.EscapeDataString(location) + + "/checkFeatureSupport" + + "?" + + "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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DataProtectionCheckFeatureSupport_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Validates if a feature is supported /// + /// Feature support request object /// 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). @@ -4254,32 +6310,30 @@ 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 DataProtectionCheckFeatureSupportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/checkFeatureSupport$", 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}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var location = _match.Groups["location"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataProtection/backupVaults/" - + vaultName + + "/providers/Microsoft.DataProtection/locations/" + + location + + "/checkFeatureSupport" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4288,16 +6342,20 @@ public partial class DataProtection // 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); + 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; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DataProtectionCheckFeatureSupport_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4307,7 +6365,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 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 ) { @@ -4325,13 +6383,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4347,33 +6405,28 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// + /// 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 BackupVaultsGet_Validate(string vaultName, string resourceGroupName, string subscriptionId, 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.Api20220401.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// - /// Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. - /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. - /// Request body for operation + /// Returns the list of available operations. /// 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). @@ -4382,20 +6435,15 @@ 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 vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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) + "/providers/Microsoft.DataProtection/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4404,24 +6452,17 @@ public partial class DataProtection // 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.Patch, _url); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DataProtectionOperationsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. - /// + /// Returns the list of available operations. /// - /// 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 /// elsewhere). @@ -4430,32 +6471,24 @@ 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.Api20210701.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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.DataProtection/operations$", 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}'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.DataProtection/operations'"); } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataProtection/backupVaults/" - + vaultName + "/providers/Microsoft.DataProtection/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4464,20 +6497,16 @@ public partial class DataProtection // 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.Patch, _url); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.BackupVaultsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DataProtectionOperationsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4487,115 +6516,17 @@ 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 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 ) { - 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 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(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - break; - } - } + 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 ) @@ -4603,13 +6534,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4625,34 +6556,31 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. - /// 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 vaultName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DataProtectionOperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + } } - /// Validates if a feature is supported + /// + /// 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. - /// - /// Feature support request object + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. + /// OperationID which represents the export job. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4660,9 +6588,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.Api20210701.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 ExportJobsOperationResultGet(string subscriptionId, string resourceGroupName, string vaultName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4670,9 +6598,12 @@ public partial class DataProtection var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DataProtection/locations/" - + global::System.Uri.EscapeDataString(location) - + "/checkFeatureSupport" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + + "/backupJobs/operations/" + + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4681,23 +6612,22 @@ public partial class DataProtection // 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); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DataProtectionCheckFeatureSupport_Call(request,onOk,onDefault,eventListener,sender); + await this.ExportJobsOperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); } } - /// Validates if a feature is supported + /// + /// 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. + /// /// - /// Feature support request object /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4705,30 +6635,35 @@ 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.Api20210701.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 ExportJobsOperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/checkFeatureSupport$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupJobs/operations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var location = _match.Groups["location"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; + var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.DataProtection/locations/" - + location - + "/checkFeatureSupport" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/backupJobs/operations/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4737,22 +6672,19 @@ public partial class DataProtection // 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); + 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; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DataProtectionCheckFeatureSupport_Call(request,onOk,onDefault,eventListener,sender); + await this.ExportJobsOperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4760,7 +6692,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 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 ) { @@ -4778,13 +6710,19 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ExportJobsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Accepted: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onAccepted(_response); 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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4800,29 +6738,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The subscription Id. - /// - /// Feature support request object + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. + /// OperationID which represents the export job. /// 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.Api20210701.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ExportJobsOperationResultGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(location),location); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(operationId),operationId); } } - /// Returns the list of available operations. - /// a delegate that is called when the remote service returns 200 (OK). + /// 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 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 /// elsewhere). /// an instance that will receive events. @@ -4830,15 +6772,21 @@ 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 ExportJobsTrigger(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.DataProtection/operations" + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + + "/exportBackupJobs" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4847,18 +6795,18 @@ public partial class DataProtection // 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); + 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.DataProtectionOperationsList_Call(request,onOk,onDefault,eventListener,sender); + await this.ExportJobsTrigger_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Returns the list of available operations. + /// Triggers export of jobs and returns an OperationID to track. /// - /// 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 /// elsewhere). /// an instance that will receive events. @@ -4866,76 +6814,182 @@ 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 ExportJobsTriggerViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.DataProtection/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/exportBackupJobs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.DataProtection/operations'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs'"); } // 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( - "/providers/Microsoft.DataProtection/operations" + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/exportBackupJobs" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // 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; } + // 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.ExportJobsTrigger_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 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 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 ) + { + 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: location + 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? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DataProtectionOperationsList_Call(request,onOk,onDefault,eventListener,sender); - } - } + // drop the old response + _response?.Dispose(); - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.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 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 ) - { - 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; } + // 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: + case global::System.Net.HttpStatusCode.NoContent: { 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.Api20210701.ClientDiscoveryResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onNoContent(_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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4951,31 +7005,32 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// + /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 DataProtectionOperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ExportJobsTrigger_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.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } - /// - /// 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. - /// + /// 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 name of the backup vault. - /// OperationID which represents the export job. + /// 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). - /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4983,9 +7038,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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4997,8 +7052,8 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/backupJobs/operations/" - + global::System.Uri.EscapeDataString(operationId) + + "/backupJobs/" + + global::System.Uri.EscapeDataString(jobId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5012,17 +7067,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ExportJobsOperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); + await this.JobsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// 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. - /// + /// Gets a job with id 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 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5030,25 +7081,25 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupJobs/operations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupJobs/(?[^/]+)$", 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}/backupJobs/operations/{operationId}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}'"); } // 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 operationId = _match.Groups["operationId"].Value; + var jobId = _match.Groups["jobId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -5057,8 +7108,8 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupJobs/operations/" - + operationId + + "/backupJobs/" + + jobId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5072,14 +7123,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.ExportJobsOperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); + await this.JobsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5087,7 +7137,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 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 ) { @@ -5105,19 +7155,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.Api20210701.ExportJobsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - case global::System.Net.HttpStatusCode.Accepted: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5133,33 +7177,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. /// /// The subscription Id. /// The name of the resource group where the backup vault is present. /// The name of the backup vault. - /// OperationID which represents the export job. + /// The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// 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 ExportJobsOperationResultGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string jobId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertNotNull(nameof(jobId),jobId); } } - /// Triggers export of jobs and returns an OperationID to track. + /// 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 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 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. @@ -5167,9 +7211,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 JobsList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5181,7 +7225,7 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/exportBackupJobs" + + "/backupJobs" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5190,18 +7234,18 @@ public partial class DataProtection // 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); + 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.ExportJobsTrigger_Call(request,onNoContent,onDefault,eventListener,sender); + await this.JobsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Triggers export of jobs and returns an OperationID to track. + /// Returns list of jobs belonging to a backup vault /// - /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5209,18 +7253,18 @@ 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 JobsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/exportBackupJobs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/backupJobs$", 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}/exportBackupJobs'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs'"); } // replace URI parameters with values from identity @@ -5235,155 +7279,59 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/exportBackupJobs" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // 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.ExportJobsTrigger_Call(request,onNoContent,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns 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 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 ) - { - 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: location - 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? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get); + + "/backupJobs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - // drop the old response - _response?.Dispose(); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the final call - _response = await sender.SendAsync(request, eventListener); - break; - } + // 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.JobsList_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 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 ) + { + 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.NoContent: + case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5399,8 +7347,8 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. /// /// The subscription Id. /// The name of the resource group where the backup vault is present. @@ -5409,7 +7357,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_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5419,12 +7367,12 @@ public partial class DataProtection } } - /// Gets a job with id in a backup vault + /// Gets the operation result for a resource /// The subscription Id. - /// The name of the resource group where the backup vault is present. - /// 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). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5432,9 +7380,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 OperationResultGet(string subscriptionId, string operationId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5442,12 +7390,10 @@ public partial class DataProtection 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) - + "/backupJobs/" - + global::System.Uri.EscapeDataString(jobId) + + "/providers/Microsoft.DataProtection/locations/" + + global::System.Uri.EscapeDataString(location) + + "/operationResults/" + + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5461,13 +7407,14 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.JobsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); } } - /// Gets a job with id in a backup vault + /// Gets the operation result for a resource /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5475,35 +7422,32 @@ 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 OperationResultGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupJobs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/operationResults/(?[^/]+)$", 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}/backupJobs/{jobId}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}'"); } // 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 jobId = _match.Groups["jobId"].Value; + var operationId = _match.Groups["operationId"].Value; + var location = _match.Groups["location"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DataProtection/backupVaults/" - + vaultName - + "/backupJobs/" - + jobId + + "/providers/Microsoft.DataProtection/locations/" + + location + + "/operationResults/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5517,13 +7461,14 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.JobsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5531,7 +7476,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 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 ) { @@ -5549,13 +7494,19 @@ public partial class DataProtection case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.Accepted: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\VssAdministrator\.autorest\@autorest_powershell@3.0.490\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5571,32 +7522,31 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The subscription Id. - /// The name of the resource group where the backup vault is present. - /// 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. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string jobId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationResultGet_Validate(string subscriptionId, string operationId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(jobId),jobId); + await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertNotNull(nameof(location),location); } } - /// Returns list of jobs belonging to a backup vault + /// 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 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). @@ -5605,9 +7555,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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5619,7 +7569,8 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DataProtection/backupVaults/" + global::System.Uri.EscapeDataString(vaultName) - + "/backupJobs" + + "/operationStatus/" + + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5633,11 +7584,11 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.JobsList_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationStatusBackupVaultContextGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Returns list of jobs belonging to a backup vault + /// Gets the operation status for an operation over a BackupVault's context. /// /// 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 @@ -5647,24 +7598,25 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-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/(?[^/]+)/backupJobs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/operationStatus/(?[^/]+)$", 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}/backupJobs'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}'"); } // 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 operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -5673,7 +7625,8 @@ public partial class DataProtection + resourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + vaultName - + "/backupJobs" + + "/operationStatus/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5687,11 +7640,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.JobsList_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationStatusBackupVaultContextGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5701,7 +7656,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 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 ) { @@ -5719,13 +7674,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5741,32 +7696,33 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The subscription Id. /// The name of the resource group where the backup vault is present. /// 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 JobsList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationStatusBackupVaultContextGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(operationId),operationId); } } - /// Gets the operation result for a resource + /// Gets the operation status for a resource. /// The subscription Id. - /// /// + /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5774,9 +7730,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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5786,7 +7742,7 @@ public partial class DataProtection + global::System.Uri.EscapeDataString(subscriptionId) + "/providers/Microsoft.DataProtection/locations/" + global::System.Uri.EscapeDataString(location) - + "/operationResults/" + + "/operationStatus/" + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5801,14 +7757,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); + await this.OperationStatusGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets the operation result for a resource + /// Gets the operation status for a resource. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5816,31 +7771,31 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/operationResults/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/operationStatus/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var operationId = _match.Groups["operationId"].Value; var location = _match.Groups["location"].Value; + var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/providers/Microsoft.DataProtection/locations/" + location - + "/operationResults/" + + "/operationStatus/" + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5855,14 +7810,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationResultGet_Call(request,onOk,onAccepted,onDefault,eventListener,sender); + await this.OperationStatusGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 202 (Accepted). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5870,7 +7824,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 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 ) { @@ -5888,19 +7842,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.Api20210701.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - case global::System.Net.HttpStatusCode.Accepted: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\VssAdministrator\.autorest\@autorest_powershell@3.0.469\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5916,29 +7864,29 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The subscription Id. - /// /// + /// /// 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 OperationResultGet_Validate(string subscriptionId, string operationId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationStatusGet_Validate(string subscriptionId, string location, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(operationId),operationId); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertNotNull(nameof(operationId),operationId); } } - /// Gets the operation status for a resource. + /// 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. - /// /// /// 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 @@ -5948,9 +7896,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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5958,9 +7906,9 @@ public partial class DataProtection var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DataProtection/locations/" - + global::System.Uri.EscapeDataString(location) - + "/operationStatus/" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/operationStatus/" + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -5975,11 +7923,11 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationStatusGet_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationStatusResourceGroupContextGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets the operation status for a resource. + /// Gets the operation status for an operation over a ResourceGroup's context. /// /// 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 @@ -5989,31 +7937,31 @@ 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 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DataProtection/locations/(?[^/]+)/operationStatus/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/operationStatus/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operationStatus/{operationId}'"); } // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; - var location = _match.Groups["location"].Value; var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.DataProtection/locations/" - + location - + "/operationStatus/" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/operationStatus/" + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -6028,11 +7976,13 @@ public partial class DataProtection await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationStatusGet_Call(request,onOk,onDefault,eventListener,sender); + await this.OperationStatusResourceGroupContextGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -6042,7 +7992,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 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 ) { @@ -6060,13 +8010,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6082,30 +8032,30 @@ public partial class DataProtection } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// + /// The name of the resource group where the backup vault is present. /// The subscription Id. - /// /// /// 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 OperationStatusGet_Validate(string subscriptionId, string location, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OperationStatusResourceGroupContextGet_Validate(string resourceGroupName, string subscriptionId, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(location),location); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// Gets a Recovery Point using recoveryPointId for a Datasource. - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. /// The name of the backup instance /// /// a delegate that is called when the remote service returns 200 (OK). @@ -6116,9 +8066,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 vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string recoveryPointId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6161,9 +8111,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6176,9 +8126,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; var backupInstanceName = _match.Groups["backupInstanceName"].Value; var recoveryPointId = _match.Groups["recoveryPointId"].Value; // construct URL @@ -6220,7 +8170,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 ) { @@ -6238,13 +8188,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6263,31 +8213,31 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsGet_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string recoveryPointId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task RecoveryPointsGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string recoveryPointId, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(recoveryPointId),recoveryPointId); } } /// Returns a list of Recovery Points for a DataSource in a vault. - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. /// The name of the backup instance /// OData filter options. /// skipToken Filter. @@ -6299,9 +8249,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 vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task 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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6349,9 +8299,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6364,9 +8314,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -6410,7 +8360,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 ) { @@ -6428,13 +8378,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6453,9 +8403,9 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// The name of the backup vault. /// The name of the backup instance /// OData filter options. /// skipToken Filter. @@ -6463,13 +8413,13 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsList_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, string Filter, string SkipToken, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task RecoveryPointsList_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string Filter, string SkipToken, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(Filter),Filter); await eventListener.AssertNotNull(nameof(SkipToken),SkipToken); @@ -6489,9 +8439,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6531,9 +8481,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6585,7 +8535,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 ) { @@ -6615,7 +8565,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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6663,9 +8613,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6708,9 +8658,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6752,9 +8702,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6808,7 +8758,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 ) { @@ -6826,13 +8776,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6883,9 +8833,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6928,9 +8878,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6986,7 +8936,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 ) { @@ -7004,13 +8954,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7063,9 +9013,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7108,9 +9058,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7166,7 +9116,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 ) { @@ -7184,13 +9134,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7243,9 +9193,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7288,9 +9238,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7346,7 +9296,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 ) { @@ -7364,13 +9314,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7423,9 +9373,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7468,9 +9418,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7526,7 +9476,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 ) { @@ -7544,13 +9494,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7603,9 +9553,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7648,9 +9598,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7706,7 +9656,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 ) { @@ -7724,13 +9674,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7783,9 +9733,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7828,9 +9778,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7886,7 +9836,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 ) { @@ -7904,13 +9854,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7962,9 +9912,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8006,9 +9956,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8062,7 +10012,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 ) { @@ -8080,13 +10030,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8136,9 +10086,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8180,9 +10130,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8236,7 +10186,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 ) { @@ -8254,13 +10204,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8310,9 +10260,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8354,9 +10304,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8410,7 +10360,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 ) { @@ -8428,13 +10378,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8481,9 +10431,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8521,9 +10471,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8574,7 +10524,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 ) { @@ -8592,13 +10542,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8642,9 +10592,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8680,9 +10630,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8730,7 +10680,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 ) { @@ -8748,13 +10698,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8800,9 +10750,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8844,9 +10794,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8900,7 +10850,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 ) { @@ -8918,13 +10868,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8974,9 +10924,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9018,9 +10968,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9074,7 +11024,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 ) { @@ -9092,13 +11042,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9144,9 +11094,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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9197,7 +11147,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 ) { @@ -9215,13 +11165,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9272,9 +11222,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.Api20210701.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.Api20220401.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9320,9 +11270,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.Api20210701.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.Api20220401.IPatchResourceRequestInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9377,7 +11327,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 ) { @@ -9395,13 +11345,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9428,7 +11378,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_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -9453,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 ResourceGuardsPut(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9499,9 +11449,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.Api20210701.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.Api20220401.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 = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9556,7 +11506,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 ) { @@ -9574,13 +11524,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9607,7 +11557,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_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IResourceGuardResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -9619,9 +11569,9 @@ public partial class DataProtection } } - /// The name of the backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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). @@ -9632,9 +11582,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 vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9680,9 +11630,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.Api20210701.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.Api20220401.IAzureBackupFindRestorableTimeRangesRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender) { - var apiVersion = @"2021-07-01"; + var apiVersion = @"2022-04-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9695,9 +11645,9 @@ public partial class DataProtection } // replace URI parameters with values from identity - var vaultName = _match.Groups["vaultName"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; 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( @@ -9741,7 +11691,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 ) { @@ -9759,13 +11709,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.Api20210701.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.Api20220401.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.Api20210701.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.Api20220401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9784,22 +11734,22 @@ 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 backup vault. - /// The name of the resource group where the backup vault is present. /// The subscription Id. + /// The name of the resource group where the backup vault is present. + /// 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 RestorableTimeRangesFind_Validate(string vaultName, string resourceGroupName, string subscriptionId, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupFindRestorableTimeRangesRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(vaultName),vaultName); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); diff --git a/src/DataProtection/generated/api/Models/Any.PowerShell.cs b/src/DataProtection/generated/api/Models/Any.PowerShell.cs index 6ed54734018b..132c4a93de74 100644 --- a/src/DataProtection/generated/api/Models/Any.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Any.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Any /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Any /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny Dese /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny 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/Any.TypeConverter.cs b/src/DataProtection/generated/api/Models/Any.TypeConverter.cs index 52042c0d0541..6b5519d4a2d4 100644 --- a/src/DataProtection/generated/api/Models/Any.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Any.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class AnyTypeConverter : global::System.Management.Automation.PST { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DataProtection/generated/api/Models/Any.json.cs b/src/DataProtection/generated/api/Models/Any.json.cs index f0c3cbb235f0..660b6c77c705 100644 --- a/src/DataProtection/generated/api/Models/Any.json.cs +++ b/src/DataProtection/generated/api/Models/Any.json.cs @@ -20,7 +20,7 @@ public partial class Any partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class Any /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class Any /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.PowerShell.cs index c02809e7cff0..bbc14880c40a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AbsoluteDeleteOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AbsoluteDeleteOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal AbsoluteDeleteOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal AbsoluteDeleteOption(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAbsoluteDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AbsoluteDeleteOption(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAbsoluteDeleteOption 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.Api20220401.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/Api20210701/AbsoluteDeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.TypeConverter.cs index b8b40beec1da..18203a8d6ae4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AbsoluteDeleteOptionTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.cs b/src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.cs index a95a3b0e9b21..7ab0c6852165 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete option with duration public partial class AbsoluteDeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)__deleteOption).Duration = value ; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } /// Creates an new instance. public AbsoluteDeleteOption() @@ -37,7 +37,7 @@ public AbsoluteDeleteOption() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption { } /// Delete option with duration internal partial interface IAbsoluteDeleteOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AbsoluteDeleteOption.json.cs index 208a534e8125..5d04fb44edd9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AbsoluteDeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AbsoluteDeleteOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AbsoluteDeleteOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AbsoluteDeleteOption /// /// 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. + /// 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. @@ -63,18 +65,18 @@ internal AbsoluteDeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. { return; } - __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption(json); + __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAbsoluteDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAbsoluteDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AdHocBackupRuleOptions.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.PowerShell.cs index 2f1411801af1..54434a4a1a78 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AdHocBackupRuleOptions /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AdHocBackupRuleOptions /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal AdHocBackupRuleOptions(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("RuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal AdHocBackupRuleOptions(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("TriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("RuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdHocBackupRuleOptions(content); } @@ -142,8 +144,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAdHocBackupRuleOptions 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.Api20220401.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/Api20210701/AdHocBackupRuleOptions.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.TypeConverter.cs index 98c1fd124619..f82cae841921 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AdHocBackupRuleOptionsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.cs b/src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.cs index 6574b7c9e7b8..92bfa1d31195 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup rules public partial class AdHocBackupRuleOptions : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal { /// Internal Acessors for TriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOption()); set { {_triggerOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOption _triggerOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOption()); set => this._triggerOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOption TriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption TriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdHocBackupRuleOptions.json.cs index 5c5eb3ab5f84..5fa495d0d10d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdHocBackupRuleOptions.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AdHocBackupRuleOptions partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AdHocBackupRuleOptions /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AdHocBackupRuleOptions /// /// 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. + /// 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. @@ -63,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.Api20210701.AdhocBackupTriggerOption.FromJson(__jsonTriggerOption) : TriggerOption;} + {_triggerOption = If( json?.PropertyT("triggerOption"), out var __jsonTriggerOption) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptions. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AdhocBackupTriggerOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.PowerShell.cs index a7d8b2e8b2df..baa984efd51c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AdhocBackupTriggerOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AdhocBackupTriggerOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal AdhocBackupTriggerOption(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("RetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,35 +91,35 @@ internal AdhocBackupTriggerOption(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("RetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBackupTriggerOption(content); } @@ -126,8 +128,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAdhocBackupTriggerOption 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.Api20220401.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/Api20210701/AdhocBackupTriggerOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.TypeConverter.cs index f0baac41d45a..5c10170c056d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AdhocBackupTriggerOptionTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.cs index fd16a966d7cf..675b5ae0f52a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup trigger option public partial class AdhocBackupTriggerOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBackupTriggerOption.json.cs index 83d585e88f02..1b9b060ccae2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBackupTriggerOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AdhocBackupTriggerOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AdhocBackupTriggerOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AdhocBackupTriggerOption /// /// 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. + /// 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. @@ -68,13 +70,13 @@ internal AdhocBackupTriggerOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AdhocBasedTaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.PowerShell.cs index 45afe32126b5..26d1079ad2be 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AdhocBasedTaggingCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AdhocBasedTaggingCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,25 +70,25 @@ internal AdhocBasedTaggingCriteria(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -101,47 +103,47 @@ internal AdhocBasedTaggingCriteria(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTaggingCriteria(content); } @@ -150,8 +152,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAdhocBasedTaggingCriteria 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.Api20220401.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/Api20210701/AdhocBasedTaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.TypeConverter.cs index 4583d9babf38..c7442e059d50 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AdhocBasedTaggingCriteriaTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.cs index b6d753fb79c0..418444c27074 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup tagging criteria public partial class AdhocBasedTaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal { /// Internal Acessors for TagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).TagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTaggingCriteria.json.cs index 6b7865a91b03..eebb98ddf09a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AdhocBasedTaggingCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AdhocBasedTaggingCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AdhocBasedTaggingCriteria /// /// 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. + /// 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. @@ -63,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.Api20210701.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AdhocBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.PowerShell.cs index 06d2c5bd2657..c0e0c7c1bcef 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AdhocBasedTriggerContext /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AdhocBasedTriggerContext /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,33 +70,33 @@ internal AdhocBasedTriggerContext(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("TaggingCriterionTagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -109,55 +111,55 @@ internal AdhocBasedTriggerContext(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("TaggingCriterionTagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTriggerContext(content); } @@ -166,8 +168,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAdhocBasedTriggerContext 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.Api20220401.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/Api20210701/AdhocBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.TypeConverter.cs index f056517e3937..324da2a987df 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AdhocBasedTriggerContextTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.cs index b3e93a2199df..0dd6a2b3ff2e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc trigger context public partial class AdhocBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext(); /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } /// Internal Acessors for TaggingCriterion - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } /// Internal Acessors for TaggingCriterionTagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTaggingCriteria _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } /// Creates an new instance. public AdhocBasedTriggerContext() @@ -64,7 +64,7 @@ public AdhocBasedTriggerContext() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag TaggingCriterionTagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag TaggingCriterionTagInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AdhocBasedTriggerContext.json.cs index 007e94fa8593..44ce533be699 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AdhocBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AdhocBasedTriggerContext partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AdhocBasedTriggerContext /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AdhocBasedTriggerContext /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AdhocBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext(json); - {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext(json); + {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AuthCredentials.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.PowerShell.cs index a1b0ba004c39..2941b24ffe6c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AuthCredentials /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AuthCredentials /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal AuthCredentials(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,33 +91,33 @@ internal AuthCredentials(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AuthCredentials(content); } @@ -124,8 +126,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAuthCredentials 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.Api20220401.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/Api20210701/AuthCredentials.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.TypeConverter.cs index 28eb3e74e675..b291fd64e2b6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AuthCredentialsTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAuthCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.cs b/src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.cs rename to src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.cs index 656c10ecd84f..c44ecbf036c6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IAuthCredentials, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AuthCredentials.json.cs index 6553d094df34..d18da11529a1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AuthCredentials.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AuthCredentials partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AuthCredentials /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AuthCredentials /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal AuthCredentials(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupDiscreteRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.PowerShell.cs index e4df8b75eed2..f34b27c68cf8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupDiscreteRecoveryPoint /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupDiscreteRecoveryPoint /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,49 +70,49 @@ internal AzureBackupDiscreteRecoveryPoint(global::System.Collections.IDictionary // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("RecoveryPointDataStoresDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); } if (content.Contains("RetentionTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); } if (content.Contains("RetentionTagVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -125,71 +127,71 @@ internal AzureBackupDiscreteRecoveryPoint(global::System.Management.Automation.P // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("RecoveryPointDataStoresDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); } if (content.Contains("RetentionTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); } if (content.Contains("RetentionTagVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupDiscreteRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupDiscreteRecoveryPoint(content); } @@ -198,8 +200,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupDiscreteRecoveryPoint 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.Api20220401.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/Api20210701/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs index 3e35163b01f8..046b5ae1b681 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupDiscreteRecoveryPointTypeConverter : global::Sys { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.cs index 9ad60c0f9b61..1635a1e2a5bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup discrete RecoveryPoint public partial class AzureBackupDiscreteRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPointInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPoint(); /// Backing field for property. private string _friendlyName; @@ -26,7 +26,7 @@ public partial class AzureBackupDiscreteRecoveryPoint : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } /// Backing field for property. private string _policyName; @@ -41,10 +41,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.Api20210701.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } /// Backing field for property. private string _recoveryPointId; @@ -86,7 +86,7 @@ public AzureBackupDiscreteRecoveryPoint() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -97,7 +97,7 @@ public AzureBackupDiscreteRecoveryPoint() /// Azure backup discrete RecoveryPoint public partial interface IAzureBackupDiscreteRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -128,8 +128,8 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : ReadOnly = false, Description = @"", SerializedName = @"recoveryPointDataStoresDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -174,7 +174,7 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : } /// Azure backup discrete RecoveryPoint internal partial interface IAzureBackupDiscreteRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal { string FriendlyName { get; set; } @@ -182,7 +182,7 @@ internal partial interface IAzureBackupDiscreteRecoveryPointInternal : string PolicyVersion { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupDiscreteRecoveryPoint.json.cs index 0e4efdc3ef27..7db530253705 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupDiscreteRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupDiscreteRecoveryPoint partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupDiscreteRecoveryPoint /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupDiscreteRecoveryPoint /// /// 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. + /// 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. @@ -63,9 +65,9 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint(json); + __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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;} @@ -77,13 +79,13 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupDiscreteRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupDiscreteRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureBackupDiscreteRecoveryPoint(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs index f8f89b999b28..f9a22af32e18 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Collections.I // actually deserialize if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Management.Au // actually deserialize if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesRequest(content); } @@ -143,8 +145,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IAzureBackupFindRestorableTimeRangesRequest 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.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs index a49e280acfaa..ccfa34602606 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupFindRestorableTimeRangesRequestTypeConverter : g { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.cs index dc00ab6d85ae..6d4c0da072d0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequest.json.cs index 15ee5764e62c..9cc0710504ea 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupFindRestorableTimeRangesRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequest /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal AzureBackupFindRestorableTimeRangesRequest(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs index b6f52b514932..683aa4f806eb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,53 +70,53 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Colle // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } if (content.Contains("ContentSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("ContentStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); } if (content.Contains("ContentEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -129,75 +131,75 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Manag // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } if (content.Contains("ContentSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("ContentStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); } if (content.Contains("ContentEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesRequestResource(content); } @@ -207,8 +209,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// from a 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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource 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.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs index 00cacc28d0b0..82fc3975af39 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResourceTypeConve { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . @@ -111,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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.cs index ae00a2855f4a..1f521e2e650c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequestResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequest(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest _content; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest _content; /// AzureBackupFindRestorableTimeRangesRequestResource content [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest()); set => this._content = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime = value ?? null; } + public string ContentEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime = value ?? null; } + public string ContentStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo = value ?? null; } + public string CultureInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Header = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } + public string HttpMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } /// Internal Acessors for Content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest()); set { {_content = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion = value ?? null /* arrayOf */; } + public string[] SupportedGroupVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } /// /// Creates an new instance. @@ -78,7 +78,7 @@ public AzureBackupFindRestorableTimeRangesRequestResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal { /// AzureBackupFindRestorableTimeRangesRequestResource content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest Content { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesRequestResource.json.cs index d6f3309dbd0e..a705735d6a6b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesRequestResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource /// /// 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. + /// 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. @@ -64,19 +66,19 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(Microsoft.Azure.Powe { return; } - __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequest(json); - {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} + __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequest(json); + {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesRequestResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequestResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs index be69339be9bb..678af9f5a73b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponse /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponse /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Collections. // actually deserialize if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Management.A // actually deserialize if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponse(content); } @@ -135,8 +137,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IAzureBackupFindRestorableTimeRangesResponse 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.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs index 8db6dc31f0ab..533be08f7e2b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupFindRestorableTimeRangesResponseTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.cs index d347a209a2de..1f9a16d8d555 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange[] _restorableTimeRange; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get => this._restorableTimeRange; set => this._restorableTimeRange = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponse.json.cs index d8597df12ecd..742b9cceb69d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupFindRestorableTimeRangesResponse partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponse /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponse /// /// 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. + /// 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. @@ -63,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.Api20210701.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs index f5403cd9128c..eda7bb7edb87 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,37 +70,37 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Coll // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -113,59 +115,59 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Mana // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponseResource(content); } @@ -175,8 +177,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// from a 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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource 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.Api20220401.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/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs index 4596d9658721..f6e843a629e8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResourceTypeConv { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . @@ -111,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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.cs index a0fe936bfc0b..ceca6ddce5ad 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponseResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse _property; /// AzureBackupFindRestorableTimeRangesResponseResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponse()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; } /// /// Creates an new instance. @@ -78,7 +78,7 @@ public AzureBackupFindRestorableTimeRangesResponseResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[] RestorableTimeRange { get; set; } } /// List Restore Ranges Response internal partial interface IAzureBackupFindRestorableTimeRangesResponseResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupFindRestorableTimeRangesResponseResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } /// Returns the Restore Ranges available on the Backup Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupFindRestorableTimeRangesResponseResource.json.cs index 44f45dd9a87d..4849aa66bd00 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupFindRestorableTimeRangesResponseResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupFindRestorableTimeRangesResponseResource /// /// 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. + /// 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. @@ -64,19 +66,19 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(Microsoft.Azure.Pow { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupJob.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.PowerShell.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.PowerShell.cs index c4c55af2d92e..418d5c5b524c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupJob /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupJob /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,173 +70,173 @@ internal AzureBackupJob(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -249,193 +251,193 @@ internal AzureBackupJob(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJob DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJob(content); } @@ -444,8 +446,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupJob 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.Api20220401.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/Api20210701/AzureBackupJob.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.TypeConverter.cs index eedddf8b7d48..4d09dac09993 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupJobTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupJob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.cs index c5a75eef5e1c..ebf88a22bd9d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Class public partial class AzureBackupJob : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] ErrorDetail { get => this._errorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfo _extendedInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfo()); set { {_extendedInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfo()); set { {_extendedInfo = value;} } } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal.RestoreType { get => this._restoreType; set { {_restoreType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupJob.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJob.json.cs index 8753ad83bc83..5345e7ca1054 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJob.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupJob partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupJob /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupJob /// /// 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. + /// 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. @@ -63,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.Api20210701.JobExtendedInfo.FromJson(__jsonExtendedInfo) : ExtendedInfo;} + {_extendedInfo = If( json?.PropertyT("extendedInfo"), out var __jsonExtendedInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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;} @@ -74,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.Api20210701.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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;} @@ -97,13 +99,13 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupJobResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.PowerShell.cs similarity index 71% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.PowerShell.cs index a848447b8de7..a74deeea664d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupJobResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupJobResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,193 +70,193 @@ internal AzureBackupJobResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -269,215 +271,215 @@ internal AzureBackupJobResource(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJobResource(content); } @@ -486,8 +488,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupJobResource 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.Api20220401.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/Api20210701/AzureBackupJobResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.TypeConverter.cs index f2af9f8ba4e1..83a6d7b22077 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupJobResourceTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.cs index 6978bff355c4..a8cfc8206257 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Resource Class public partial class AzureBackupJobResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ActivityId = value ?? null; } + public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName = value ?? null; } + public string BackupInstanceFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).BackupInstanceId; } + public string BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DataSourceId = value ?? null; } + public string DataSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DataSourceLocation = value ?? null; } + public string DataSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DataSourceName = value ?? null; } + public string DataSourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DataSourceSetName = value ?? null; } + public string DataSourceSetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DataSourceType = value ?? null; } + public string DataSourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).DestinationDataStoreName = value ?? null; } + public string DestinationDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).Duration = value ?? null; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).EndTime; } + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ErrorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).Etag = value ?? null; } + public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } + public bool? IsUserTriggered { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } /// Internal Acessors for BackupInstanceId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).BackupInstanceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).BackupInstanceId = value; } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).EndTime = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ErrorDetail = value; } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfo = value; } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).PolicyId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).PolicyId = value; } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).PolicyName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).PolicyName = value; } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ProgressUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ProgressUrl = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJob()); set { {_property = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).RestoreType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).RestoreType = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).Operation = value ?? null; } + public string Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).OperationCategory = value ?? null; } + public string OperationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).PolicyId; } + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).PolicyName; } + public string PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).ProgressEnabled = value ?? default(bool); } + public bool? ProgressEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).ProgressUrl; } + public string ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).ProgressUrl; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob _property; /// AzureBackupJobResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).RestoreType; } + public string RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SourceDataStoreName = value ?? null; } + public string SourceDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SourceResourceGroup = value ?? null; } + public string SourceResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SourceSubscriptionId = value ?? null; } + public string SourceSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).StartTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).Status = value ?? null; } + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).SupportedAction = value ?? null /* arrayOf */; } + public string[] SupportedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobInternal)Property).VaultName = value ?? null; } + public string VaultName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobInternal)Property).VaultName = value ?? null; } /// Creates an new instance. public AzureBackupJobResource() @@ -260,7 +260,7 @@ public AzureBackupJobResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJob Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupJobResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResource.json.cs index 2aafdfd02c7a..670c0e779fe6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupJobResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupJobResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupJobResource /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupJobResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJob.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJob.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupJobResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.PowerShell.cs index c15f805bdeff..aefe0de7e9e6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupJobResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupJobResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal AzureBackupJobResourceList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal AzureBackupJobResourceList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJobResourceList(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupJobResourceList 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.Api20220401.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/Api20210701/AzureBackupJobResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.TypeConverter.cs index 18df95c152c6..da2f577be4e6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupJobResourceListTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.cs index 7dc2c66e5fb6..26d57830cd31 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of AzureBackup Job resources public partial class AzureBackupJobResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupJobResourceList() @@ -42,7 +42,7 @@ public AzureBackupJobResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupJobResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource[] Value { get; set; } } /// List of AzureBackup Job resources internal partial interface IAzureBackupJobResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupJobResourceList.json.cs index 13ac0f317a29..d8552864d0e2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupJobResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupJobResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupJobResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupJobResourceList /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupJobResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupParams.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.PowerShell.cs index be9d83c9c31a..6fad8ef81e55 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupParams /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupParams /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal AzureBackupParams(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal AzureBackupParams(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupParams DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupParams(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupParams 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.Api20220401.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/Api20210701/AzureBackupParams.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.TypeConverter.cs index 334f0bb09525..6e9c1e881557 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupParamsTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupParams ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParams).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.cs index bcece2909da0..a616fccc717a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup parameters public partial class AzureBackupParams : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParams, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParamsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParamsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)__backupParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)__backupParameters).ObjectType = value ; } /// Creates an new instance. public AzureBackupParams() @@ -40,7 +40,7 @@ public AzureBackupParams() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IBackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal { /// BackupType ; Full/Incremental etc string BackupType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupParams.json.cs index 6131cf9fc3d7..060e92bf3dba 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupParams.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupParams partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupParams /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupParams /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupParams(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters(json); + __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupParams. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParams. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupParams. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.PowerShell.cs index 6fbff8a01864..6aa7d9fe9db0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRecoveryPoint /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRecoveryPoint /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal AzureBackupRecoveryPoint(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,35 +91,35 @@ internal AzureBackupRecoveryPoint(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPoint(content); } @@ -126,8 +128,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRecoveryPoint 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.Api20220401.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/Api20210701/AzureBackupRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.TypeConverter.cs index c4584ef73a9a..d8bb7e04584f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupRecoveryPointTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.cs index 84b4a5062ae6..b198ae187a77 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint public partial class AzureBackupRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPoint.json.cs index eac2794a16e3..2ccab623c367 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRecoveryPoint partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRecoveryPoint /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRecoveryPoint /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal AzureBackupRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs index 3dce2241ac6f..6e625118898d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,25 +70,29 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Collections. // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -101,47 +107,51 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Management.A // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointBasedRestoreRequest(content); } @@ -151,8 +161,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest 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.Api20220401.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/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs index 6caa3bb1db25..648773384d58 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequestTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.cs index c8367c2b7a20..dbdb4b10566f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -30,11 +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.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -48,7 +54,7 @@ public AzureBackupRecoveryPointBasedRestoreRequest() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -59,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.Api20210701.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -72,7 +78,7 @@ public partial interface IAzureBackupRecoveryPointBasedRestoreRequest : } /// Azure backup recoveryPoint based restore request internal partial interface IAzureBackupRecoveryPointBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal { string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointBasedRestoreRequest.json.cs index b78479d5bc0f..7a13e1ac198c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRecoveryPointBasedRestoreRequest /// /// 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. + /// 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. @@ -63,22 +65,22 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(Microsoft.Azure.PowerShell. { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryPointResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.PowerShell.cs index 6ff44f4aa937..647ef028fc48 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRecoveryPointResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRecoveryPointResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,33 +70,33 @@ internal AzureBackupRecoveryPointResource(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -109,55 +111,55 @@ internal AzureBackupRecoveryPointResource(global::System.Management.Automation.P // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResource(content); } @@ -166,8 +168,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRecoveryPointResource 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.Api20220401.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/Api20210701/AzureBackupRecoveryPointResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.TypeConverter.cs index 26c7273c91dd..0569275b7d00 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupRecoveryPointResourceTypeConverter : global::Sys { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.cs index 85c8bc18d903..8095f9237c26 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource public partial class AzureBackupRecoveryPointResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPoint()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint _property; /// AzureBackupRecoveryPointResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public AzureBackupRecoveryPointResource() @@ -72,7 +72,7 @@ public AzureBackupRecoveryPointResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupRecoveryPointResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPoint Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPoint Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResource.json.cs index 226ffc62089d..b00345ec04dd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRecoveryPointResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRecoveryPointResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRecoveryPointResource /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupRecoveryPointResource(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryPointResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.PowerShell.cs index c53d102d419f..89d9cf7bdb37 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRecoveryPointResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRecoveryPointResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal AzureBackupRecoveryPointResourceList(global::System.Collections.IDictio // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal AzureBackupRecoveryPointResourceList(global::System.Management.Automati // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResourceList(content); } @@ -134,8 +136,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRecoveryPointResourceList 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.Api20220401.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/Api20210701/AzureBackupRecoveryPointResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.TypeConverter.cs index a4452b255248..03a7be5c9ede 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupRecoveryPointResourceListTypeConverter : global: { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,21 +102,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.cs index feb179032d20..d40bce9765b8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource list public partial class AzureBackupRecoveryPointResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupRecoveryPointResourceList() @@ -42,7 +42,7 @@ public AzureBackupRecoveryPointResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource[] Value { get; set; } } /// Azure backup recoveryPoint resource list internal partial interface IAzureBackupRecoveryPointResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryPointResourceList.json.cs index 77626ba210c4..2a9163ab3014 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryPointResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRecoveryPointResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRecoveryPointResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRecoveryPointResourceList /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupRecoveryPointResourceList(Microsoft.Azure.PowerShell.Cmdlets { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs index c197c036b317..928d171c5830 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,25 +70,29 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Collections.I // actually deserialize if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -101,47 +107,51 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Management.Au // actually deserialize if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryTimeBasedRestoreRequest(content); } @@ -151,8 +161,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest 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.Api20220401.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/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs index 216244593c67..3dc7fc77bd68 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequestTypeConverter : g { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.cs index 6f4d26718d3d..589bf06b3e2f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup RecoveryPointTime Based Restore Request public partial class AzureBackupRecoveryTimeBasedRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointTime; @@ -31,11 +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.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -49,7 +55,7 @@ public AzureBackupRecoveryTimeBasedRestoreRequest() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -60,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.Api20210701.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest { /// The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -74,7 +80,7 @@ public partial interface IAzureBackupRecoveryTimeBasedRestoreRequest : } /// AzureBackup RecoveryPointTime Based Restore Request internal partial interface IAzureBackupRecoveryTimeBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs index 2622586d70b1..6e07328dee26 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRecoveryTimeBasedRestoreRequest /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(Microsoft.Azure.PowerShell.C { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryTimeBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryTimeBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.PowerShell.cs index ee12599f7826..6faa9f487b22 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRehydrationRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRehydrationRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal AzureBackupRehydrationRequest(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal AzureBackupRehydrationRequest(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRehydrationRequest(content); } @@ -142,8 +144,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRehydrationRequest 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.Api20220401.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/Api20210701/AzureBackupRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.TypeConverter.cs index a0e738da93ee..025d4e658b03 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupRehydrationRequestTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.cs index aaf8ec6e69f9..a239ba80e3d0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure Backup Rehydrate Request public partial class AzureBackupRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRehydrationRequest.json.cs index bf6e817c3498..4553b7ff86a7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRehydrationRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRehydrationRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRehydrationRequest /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal AzureBackupRehydrationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.PowerShell.cs index 62f53a033e7f..5c908011be2f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRestoreRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRestoreRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,25 @@ internal AzureBackupRestoreRequest(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +103,47 @@ internal AzureBackupRestoreRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRestoreRequest(content); } @@ -142,8 +152,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRestoreRequest 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.Api20220401.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/Api20210701/AzureBackupRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.TypeConverter.cs index 2478e16f3025..03b4df37f04c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupRestoreRequestTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.cs index f8bd7098cd73..ebf82a517f77 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup restore request public partial class AzureBackupRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBase _restoreTargetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType _sourceDataStoreType; @@ -33,6 +33,15 @@ public partial class AzureBackupRestoreRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => this._sourceDataStoreType; set => this._sourceDataStoreType = value; } + /// Backing field for property. + private string _sourceResourceId; + + /// + /// 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.Owned)] + public string SourceResourceId { get => this._sourceResourceId; set => this._sourceResourceId = value; } + /// Creates an new instance. public AzureBackupRestoreRequest() { @@ -56,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.Api20210701.IRestoreTargetInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -66,6 +75,16 @@ public partial interface IAzureBackupRestoreRequest : SerializedName = @"sourceDataStoreType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get; set; } + /// + /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Fully qualified Azure Resource Manager ID of the datasource which is being recovered.", + SerializedName = @"sourceResourceId", + PossibleTypes = new [] { typeof(string) })] + string SourceResourceId { get; set; } } /// Azure backup restore request @@ -74,9 +93,13 @@ internal partial interface IAzureBackupRestoreRequestInternal { string ObjectType { get; set; } /// Gets or sets the restore target information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get; set; } + /// + /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + /// + string SourceResourceId { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.json.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreRequest.json.cs index 2dfc03556ecd..ece3af663e8c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRestoreRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRestoreRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRestoreRequest /// /// 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. + /// 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. @@ -64,21 +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.Api20210701.RestoreTargetInfoBase.FromJson(__jsonRestoreTargetInfo) : RestoreTargetInfo;} + {_restoreTargetInfo = If( json?.PropertyT("restoreTargetInfo"), out var __jsonRestoreTargetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { @@ -126,6 +129,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T AddIf( null != (((object)this._objectType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._objectType.ToString()) : null, "objectType" ,container.Add ); AddIf( null != this._restoreTargetInfo ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._restoreTargetInfo.ToJson(null,serializationMode) : null, "restoreTargetInfo" ,container.Add ); AddIf( null != (((object)this._sourceDataStoreType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._sourceDataStoreType.ToString()) : null, "sourceDataStoreType" ,container.Add ); + AddIf( null != (((object)this._sourceResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._sourceResourceId.ToString()) : null, "sourceResourceId" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs index c6ff6b961e86..40959f491c32 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRestoreWithRehydrationRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRestoreWithRehydrationRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,33 +70,37 @@ internal AzureBackupRestoreWithRehydrationRequest(global::System.Collections.IDi // actually deserialize if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -109,55 +115,59 @@ internal AzureBackupRestoreWithRehydrationRequest(global::System.Management.Auto // actually deserialize if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("SourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreWithRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRestoreWithRehydrationRequest(content); } @@ -167,8 +177,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IAzureBackupRestoreWithRehydrationRequest 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.Api20220401.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/Api20210701/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs index 9872c412b522..d109868a5d66 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class AzureBackupRestoreWithRehydrationRequestTypeConverter : glo { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.cs index 81a422bee4aa..03acd57a5fe3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Restore with Rehydration Request public partial class AzureBackupRestoreWithRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointBasedRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRecoveryPointBasedRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } + public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority _rehydrationPriority; @@ -41,11 +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.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -59,7 +65,7 @@ public AzureBackupRestoreWithRehydrationRequest() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -70,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.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointBasedRestoreRequest { /// Priority to be used for rehydration. Values High or Standard [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -92,7 +98,7 @@ public partial interface IAzureBackupRestoreWithRehydrationRequest : } /// AzureBackup Restore with Rehydration Request internal partial interface IAzureBackupRestoreWithRehydrationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointBasedRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRestoreWithRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRestoreWithRehydrationRequest.json.cs index 784165bcb0b9..7b72e4c13b83 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRestoreWithRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRestoreWithRehydrationRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRestoreWithRehydrationRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRestoreWithRehydrationRequest /// /// 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. + /// 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. @@ -63,20 +65,20 @@ internal AzureBackupRestoreWithRehydrationRequest(Microsoft.Azure.PowerShell.Cmd { return; } - __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRecoveryPointBasedRestoreRequest(json); + __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreWithRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreWithRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreWithRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureBackupRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.PowerShell.cs index 8b8e34035441..0a32d8a3a969 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureBackupRule /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureBackupRule /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,45 +70,45 @@ internal AzureBackupRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParametersTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("Trigger")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContextTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("BackupParameterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); } if (content.Contains("TriggerObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -121,65 +123,65 @@ internal AzureBackupRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("BackupParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParametersTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("Trigger")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContextTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("BackupParameterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); } if (content.Contains("TriggerObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRule(content); } @@ -188,8 +190,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureBackupRule 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.Api20220401.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/Api20210701/AzureBackupRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.TypeConverter.cs index 98c102463b55..fcf6e646d5d7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureBackupRuleTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureBackupRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.cs index e6b4b0a800af..c2928aaa69db 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup rule public partial class AzureBackupRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRule(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters _backupParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters _backupParameter; /// BackupParameters base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters()); set => this._backupParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } + public string BackupParameterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase _dataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for BackupParameter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters()); set { {_backupParameter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParameters()); set { {_backupParameter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase()); set { {_dataStore = value;} } } /// Internal Acessors for Trigger - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext()); set { {_trigger = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext _trigger; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext _trigger; /// Trigger context [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext()); set => this._trigger = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)Trigger).ObjectType = value ; } + public string TriggerObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)Trigger).ObjectType = value ; } /// Creates an new instance. public AzureBackupRule() @@ -81,7 +81,7 @@ public AzureBackupRule() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal { /// BackupParameters base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters BackupParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters BackupParameter { get; set; } /// Type of the specific object - used for deserializing string BackupParameterObjectType { get; set; } /// DataStoreInfo base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContext Trigger { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext Trigger { get; set; } /// Type of the specific object - used for deserializing string TriggerObjectType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureBackupRule.json.cs index a0f154ba655c..d3a3932a2a07 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureBackupRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureBackupRule partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureBackupRule /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBackupRule /// /// 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. + /// 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. @@ -63,21 +65,21 @@ internal AzureBackupRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule(json); - {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} - {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext.FromJson(__jsonTrigger) : Trigger;} + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRule(json); + {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext.FromJson(__jsonTrigger) : Trigger;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20220401/AzureMonitorAlertSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.PowerShell.cs new file mode 100644 index 000000000000..10cfc38d26d3 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Settings for Azure Monitor based alerts + [System.ComponentModel.TypeConverter(typeof(AzureMonitorAlertSettingsTypeConverter))] + public partial class AzureMonitorAlertSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 AzureMonitorAlertSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, 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 AzureMonitorAlertSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, 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.Api20220401.IAzureMonitorAlertSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureMonitorAlertSettings(content); + } + + /// + /// Deserializes a 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.Api20220401.IAzureMonitorAlertSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureMonitorAlertSettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20220401.IAzureMonitorAlertSettings 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(); + } + /// Settings for Azure Monitor based alerts + [System.ComponentModel.TypeConverter(typeof(AzureMonitorAlertSettingsTypeConverter))] + public partial interface IAzureMonitorAlertSettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.TypeConverter.cs new file mode 100644 index 000000000000..b82f90a8c4f5 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AzureMonitorAlertSettingsTypeConverter : 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.Api20220401.IAzureMonitorAlertSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AzureMonitorAlertSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AzureMonitorAlertSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AzureMonitorAlertSettings.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/Api20220401/AzureMonitorAlertSettings.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.cs new file mode 100644 index 000000000000..6c7f26664d8c --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + 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.Api20220401.IAzureMonitorAlertSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? _alertsForAllJobFailure; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AlertsForAllJobFailure { get => this._alertsForAllJobFailure; set => this._alertsForAllJobFailure = value; } + + /// Creates an new instance. + public AzureMonitorAlertSettings() + { + + } + } + /// Settings for Azure Monitor based alerts + public partial interface IAzureMonitorAlertSettings : + 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? AlertsForAllJobFailure { get; set; } + + } + /// Settings for Azure Monitor based alerts + internal partial interface IAzureMonitorAlertSettingsInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AlertsForAllJobFailure { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.json.cs new file mode 100644 index 000000000000..55919a9145dd --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/AzureMonitorAlertSettings.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Settings for Azure Monitor based alerts + public partial class AzureMonitorAlertSettings + { + + /// + /// 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 AzureMonitorAlertSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_alertsForAllJobFailure = If( json?.PropertyT("alertsForAllJobFailures"), out var __jsonAlertsForAllJobFailures) ? (string)__jsonAlertsForAllJobFailures : (string)AlertsForAllJobFailure;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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._alertsForAllJobFailure)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._alertsForAllJobFailure.ToString()) : null, "alertsForAllJobFailures" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.PowerShell.cs index 00604d88914b..9441fedb0e1a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureOperationalStoreParameters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureOperationalStoreParameters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal AzureOperationalStoreParameters(global::System.Collections.IDictionary // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal AzureOperationalStoreParameters(global::System.Management.Automation.PS // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureOperationalStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureOperationalStoreParameters(content); } @@ -142,8 +144,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureOperationalStoreParameters 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.Api20220401.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/Api20210701/AzureOperationalStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.TypeConverter.cs index 33ede17fe529..0c802267f36d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureOperationalStoreParametersTypeConverter : global::Syst { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.cs index 1591cecd4d92..3b31bea9c79a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for Operational-Tier DataStore public partial class AzureOperationalStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParametersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParametersInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } /// Backing field for property. private string _resourceGroupId; @@ -44,7 +44,7 @@ public AzureOperationalStoreParameters() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal { /// Gets or sets the Snapshot Resource Group Uri. string ResourceGroupId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureOperationalStoreParameters.json.cs index e65920c0e0c2..29127e2fd829 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureOperationalStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureOperationalStoreParameters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureOperationalStoreParameters /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureOperationalStoreParameters /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal AzureOperationalStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParameters(json); + __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureOperationalStoreParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureOperationalStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureOperationalStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/AzureRetentionRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.PowerShell.cs index 2d6e914a22bd..b11ed86bf95b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureRetentionRule /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureRetentionRule /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,25 +70,25 @@ internal AzureRetentionRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Lifecycle")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SourceLifeCycleTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -101,45 +103,45 @@ internal AzureRetentionRule(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Lifecycle")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SourceLifeCycleTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureRetentionRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureRetentionRule(content); } @@ -148,8 +150,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IAzureRetentionRule 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.Api20220401.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/Api20210701/AzureRetentionRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.TypeConverter.cs index aa9b5ac069be..a272a07185ba 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureRetentionRuleTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IAzureRetentionRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.cs index e9d4b302c614..af7c872a115b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure retention rule public partial class AzureRetentionRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISourceLifeCycle[] _lifecycle; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[] _lifecycle; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[] Lifecycle { get => this._lifecycle; set => this._lifecycle = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Creates an new instance. public AzureRetentionRule() @@ -47,7 +47,7 @@ public AzureRetentionRule() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISourceLifeCycle) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[] Lifecycle { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[] Lifecycle { get; set; } } /// Azure retention rule internal partial interface IAzureRetentionRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal { bool? IsDefault { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle[] Lifecycle { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle[] Lifecycle { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.json.cs b/src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/AzureRetentionRule.json.cs index d62a97a79e78..ad4bc7025a87 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/AzureRetentionRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class AzureRetentionRule partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class AzureRetentionRule /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureRetentionRule /// /// 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. + /// 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. @@ -63,20 +65,20 @@ internal AzureRetentionRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule(json); + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SourceLifeCycle.FromJson(__u) )) ))() : null : Lifecycle;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.PowerShell.cs index 6af701d80409..5f1747b93851 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal BackupCriteria(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,33 +91,33 @@ internal BackupCriteria(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupCriteria(content); } @@ -124,8 +126,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupCriteria 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.Api20220401.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/Api20210701/BackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.TypeConverter.cs index 33d96ce2a160..f8f5532cc868 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupCriteriaTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.cs index 2c3180d825be..909cb6f842bf 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupCriteria base class public partial class BackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupCriteria.json.cs index 93e536dba123..5412e4f51193 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupCriteria /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal BackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupInstance.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstance.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstance.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstance.PowerShell.cs index 1d1e2ee5f3f9..6c70484f46fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstance.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupInstance /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupInstance /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,49 +70,53 @@ internal BackupInstance(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("DataSourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DataSourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("PolicyInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfoTypeConverter.ConvertFrom); } if (content.Contains("ProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetailsTypeConverter.ConvertFrom); } if (content.Contains("CurrentProtectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); } if (content.Contains("ProtectionErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -125,69 +131,73 @@ internal BackupInstance(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("DataSourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DataSourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("PolicyInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfoTypeConverter.ConvertFrom); } if (content.Contains("ProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetailsTypeConverter.ConvertFrom); } if (content.Contains("CurrentProtectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); } if (content.Contains("ProtectionErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstance(content); } @@ -196,8 +206,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupInstance 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.Api20220401.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/Api20210701/BackupInstance.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstance.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstance.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstance.TypeConverter.cs index 8db96bdb1a6b..5428419971d7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstance.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupInstanceTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupInstance ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstance.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstance.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstance.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstance.cs index 7f25f1446108..37262804e24f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstance.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Instance public partial class BackupInstance : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource _dataSourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource()); set => this._dataSourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource()); set => this._dataSourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet _dataSourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet()); set => this._dataSourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet()); set => this._dataSourceSetInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } /// Internal Acessors for ProtectionErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError()); set { {_protectionErrorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingError()); set { {_protectionErrorDetail = value;} } } /// Internal Acessors for ProtectionStatus - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyInfo _policyInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfo()); set => this._policyInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfo()); set => this._policyInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError _protectionErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingError()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails _protectionStatus; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ProtectionStatusDetails()); } /// Backing field for property. private string _provisioningState; @@ -96,6 +96,15 @@ public partial class BackupInstance : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? _validationType; + + /// + /// 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.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? ValidationType { get => this._validationType; set => this._validationType = value; } + /// Creates an new instance. public BackupInstance() { @@ -120,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.Api20210701.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource DataSourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DataSourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Gets or sets the Backup Instance friendly name. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -160,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.Api20210701.IPolicyInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo PolicyInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError ProtectionErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IProtectionStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails ProtectionStatus { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails ProtectionStatus { get; } /// /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed /// @@ -188,6 +197,16 @@ public partial interface IBackupInstance : 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; } } /// Backup Instance @@ -197,25 +216,29 @@ 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.Api20210701.IDatasource DataSourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DataSourceInfo { get; set; } /// Gets or sets the data source set information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DataSourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DataSourceSetInfo { get; set; } /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyInfo PolicyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo PolicyInfo { get; set; } /// Specifies the protection error of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError ProtectionErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError ProtectionErrorDetail { get; set; } /// Specifies the protection status of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails ProtectionStatus { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupInstance.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstance.json.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstance.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstance.json.cs index a55161177420..590542751cb0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstance.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupInstance partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupInstance /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupInstance /// /// 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. + /// 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. @@ -64,26 +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.Api20210701.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} - {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} - {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} - {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ProtectionStatusDetails.FromJson(__jsonProtectionStatus) : ProtectionStatus;} + {_dataSourceInfo = If( json?.PropertyT("dataSourceInfo"), out var __jsonDataSourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} + {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} + {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} + {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.UserFacingError.FromJson(__jsonProtectionErrorDetails) : ProtectionErrorDetail;} + {_protectionErrorDetail = If( json?.PropertyT("protectionErrorDetails"), out var __jsonProtectionErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -128,6 +131,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T 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 ); } AddIf( null != this._datasourceAuthCredentials ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._datasourceAuthCredentials.ToJson(null,serializationMode) : null, "datasourceAuthCredentials" ,container.Add ); + AddIf( null != (((object)this._validationType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._validationType.ToString()) : null, "validationType" ,container.Add ); AddIf( null != (((object)this._objectType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._objectType.ToString()) : null, "objectType" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.PowerShell.cs index 5c96c71f1171..da0022d82a6c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupInstanceResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupInstanceResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,29 +70,29 @@ internal BackupInstanceResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -105,51 +107,51 @@ internal BackupInstanceResource(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResource(content); } @@ -158,8 +160,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupInstanceResource 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.Api20220401.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/Api20210701/BackupInstanceResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.TypeConverter.cs index 538c2ffe136f..7bb13e25301d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupInstanceResourceTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupInstanceResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.cs index b2888a809d4b..d632827f0b1b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.cs @@ -3,58 +3,58 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource public partial class BackupInstanceResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance _property; /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public BackupInstanceResource() @@ -66,7 +66,7 @@ public BackupInstanceResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -77,7 +77,7 @@ public BackupInstanceResource() /// BackupInstance Resource public partial interface IBackupInstanceResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource { /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -85,16 +85,16 @@ public partial interface IBackupInstanceResource : ReadOnly = false, Description = @"BackupInstanceResource properties", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance Property { get; set; } } /// BackupInstance Resource internal partial interface IBackupInstanceResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal { /// BackupInstanceResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResource.json.cs index d98d7786e2c5..9699af013de2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupInstanceResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupInstanceResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupInstanceResource /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BackupInstanceResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstance.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupInstanceResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.PowerShell.cs index a7e513a7a0e7..80bb6ea316a4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupInstanceResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupInstanceResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BackupInstanceResourceList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal BackupInstanceResourceList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResourceList(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupInstanceResourceList 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.Api20220401.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/Api20210701/BackupInstanceResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.TypeConverter.cs index 3f72d364e1fc..c5badfc5d7bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupInstanceResourceListTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.cs index b1f83b94f916..54a06128afd1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource list response public partial class BackupInstanceResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupInstanceResourceList() @@ -42,7 +42,7 @@ public BackupInstanceResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource[] Value { get; set; } } /// BackupInstance Resource list response internal partial interface IBackupInstanceResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupInstanceResourceList.json.cs index 6bee7f4bc7dc..867c907c9596 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupInstanceResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupInstanceResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupInstanceResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupInstanceResourceList /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BackupInstanceResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupParameters.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/BackupParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupParameters.PowerShell.cs index 52cbf0373a57..f7a236cbe469 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupParameters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupParameters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal BackupParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,33 +91,33 @@ internal BackupParameters(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupParameters(content); } @@ -124,8 +126,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupParameters 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.Api20220401.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/Api20210701/BackupParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupParameters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupParameters.TypeConverter.cs index 881b01220236..7bb51cf8c8f3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupParametersTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupParameters.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/BackupParameters.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupParameters.cs index d6c0241ee9e0..6adaefce9fea 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupParameters base public partial class BackupParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupParameters.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/BackupParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupParameters.json.cs index 8f350b399a53..df6cb5227dc6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupParameters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupParameters /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupParameters /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal BackupParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.PowerShell.cs index 13acf3ebdf67..1e77876eb3e3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupPolicy /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupPolicy /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal BackupPolicy(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PolicyRule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRuleTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,41 +99,41 @@ internal BackupPolicy(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("PolicyRule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRuleTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupPolicy(content); } @@ -140,8 +142,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupPolicy 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.Api20220401.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/Api20210701/BackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.TypeConverter.cs index cd582f73acc6..190279f0fe55 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupPolicyTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.cs index ab6a15c848ef..df3fd5c6be65 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Rule based backup policy public partial class BackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicyInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType = value ; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule[] _policyRule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } /// Creates an new instance. public BackupPolicy() @@ -45,7 +45,7 @@ public BackupPolicy() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IBaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureRetentionRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule[] PolicyRule { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureRetentionRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule[] PolicyRule { get; set; } } /// Rule based backup policy internal partial interface IBackupPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal { /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule[] PolicyRule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule[] PolicyRule { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupPolicy.json.cs index 138b313dc0e5..355621f1e49e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupPolicy partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupPolicy /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupPolicy /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. { return; } - __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} + __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupSchedule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.PowerShell.cs index 0ed29b659971..8414f8918fd9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupSchedule /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupSchedule /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BackupSchedule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("RepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal BackupSchedule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("RepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupSchedule(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupSchedule 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.Api20220401.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/Api20210701/BackupSchedule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.TypeConverter.cs index 6a0b687070d0..3663a9afa3e9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupScheduleTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupSchedule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.cs index b17125228637..f870aa2c6819 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule for backup public partial class BackupSchedule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupSchedule.json.cs index 87fc2f56b68d..181058daa09d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupSchedule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupSchedule partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupSchedule /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupSchedule /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal BackupSchedule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupVault.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.PowerShell.cs similarity index 64% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVault.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVault.PowerShell.cs index ccd9e2541a9a..c002a652d5b8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupVault /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupVault /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class BackupVault partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -66,47 +68,59 @@ internal BackupVault(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); + } if (content.Contains("ResourceMoveDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetailsTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceMoveState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); } if (content.Contains("StorageSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSettingTypeConverter.ConvertFrom)); } if (content.Contains("ResourceMoveDetailOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveDetailStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailSourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailTargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)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. @@ -119,67 +133,79 @@ internal BackupVault(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); + } if (content.Contains("ResourceMoveDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetailsTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceMoveState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); } if (content.Contains("StorageSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSettingTypeConverter.ConvertFrom)); } if (content.Contains("ResourceMoveDetailOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveDetailStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailSourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailTargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure, 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 . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupVault(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVault(content); } @@ -188,8 +214,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupVault 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.Api20220401.IBackupVault FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVault.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVault.TypeConverter.cs index ee022a2ad7b1..65cc9572752a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupVaultTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupVault ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.cs similarity index 69% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVault.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVault.cs index 3a6193af06fa..414ce189467d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.cs @@ -3,24 +3,40 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Vault public partial class BackupVault : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettings()); set { {_monitoringSetting = value;} } } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } + /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceMoveDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal.ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetails()); set { {_resourceMoveDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal.ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetails()); set { {_resourceMoveDetail = value;} } } /// Internal Acessors for ResourceMoveState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal.ResourceMoveState { get => this._resourceMoveState; set { {_resourceMoveState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal.ResourceMoveState { get => this._resourceMoveState; set { {_resourceMoveState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings _monitoringSetting; + + /// Monitoring Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettings()); set => this._monitoringSetting = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; @@ -30,33 +46,33 @@ public partial class BackupVault : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails _resourceMoveDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetails ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc = value ?? null; } + public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId = value ?? null; } + public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath = value ?? null; } + public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc = value ?? null; } + public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath = value ?? null; } + public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? _resourceMoveState; @@ -66,11 +82,11 @@ public partial class BackupVault : public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get => this._resourceMoveState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] _storageSetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] _storageSetting; /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } /// Creates an new instance. public BackupVault() @@ -82,6 +98,13 @@ public BackupVault() 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, @@ -146,18 +169,23 @@ public partial interface IBackupVault : ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetails ResourceMoveDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails ResourceMoveDetail { get; set; } /// /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. /// @@ -173,7 +201,7 @@ internal partial interface IBackupVaultInternal /// Resource move state for backup vault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; set; } /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVault.json.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVault.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVault.json.cs index 380908de8673..d257d913da8e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVault.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupVault partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupVault /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupVault /// /// 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. + /// 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. @@ -63,21 +65,22 @@ internal BackupVault(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.J { return; } - {_resourceMoveDetail = If( json?.PropertyT("resourceMoveDetails"), out var __jsonResourceMoveDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetails.FromJson(__jsonResourceMoveDetails) : ResourceMoveDetail;} + {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} + {_resourceMoveDetail = If( json?.PropertyT("resourceMoveDetails"), out var __jsonResourceMoveDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetails.FromJson(__jsonResourceMoveDetails) : ResourceMoveDetail;} {_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.Api20210701.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSetting.FromJson(__u) )) ))() : null : StorageSetting;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -101,6 +104,7 @@ 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 ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != this._resourceMoveDetail ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._resourceMoveDetail.ToJson(null,serializationMode) : null, "resourceMoveDetails" ,container.Add ); diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.PowerShell.cs similarity index 63% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.PowerShell.cs index 1d207ada547a..05b913b9a72e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupVaultResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupVaultResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class BackupVaultResource 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. @@ -68,93 +70,105 @@ internal BackupVaultResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceMoveDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetailsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); } if (content.Contains("StorageSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSettingTypeConverter.ConvertFrom)); } if (content.Contains("ResourceMoveDetailOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveDetailStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailSourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailTargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)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. @@ -169,113 +183,125 @@ internal BackupVaultResource(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceMoveDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceMoveDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceMoveDetailsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); } if (content.Contains("StorageSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.StorageSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.StorageSettingTypeConverter.ConvertFrom)); } if (content.Contains("ResourceMoveDetailOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("ResourceMoveDetailStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailSourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); } if (content.Contains("ResourceMoveDetailTargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure, 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 . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupVaultResource(content); } /// - /// 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.Api20210701.IBackupVaultResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVaultResource(content); } @@ -284,8 +310,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupVaultResource 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.Api20220401.IBackupVaultResource 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/Api20210701/BackupVaultResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.TypeConverter.cs index 855139eb4f2e..d1f3779ac52e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupVaultResourceTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupVaultResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.cs similarity index 70% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.cs index 27302605b538..132bbab3fbb1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.cs @@ -3,36 +3,40 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Vault Resource public partial class BackupVaultResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } /// 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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Id; } /// Input Managed Identity Details [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -40,126 +44,132 @@ 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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } /// Resource location. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 1)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).MonitoringSetting = value; } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVault()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVault()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceMoveDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal.ResourceMoveDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.ResourceMoveDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetail = value; } /// Internal Acessors for ResourceMoveState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceInternal.ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceInternal.ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } /// Resource name associated with the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVault()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc = value ?? null; } + public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailOperationId = value ?? null; } + public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetailOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath = value ?? null; } + public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc = value ?? null; } + public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath = value ?? null; } + public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultInternal)Property).ResourceMoveState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).ResourceMoveState; } /// 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.Api20210701.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultInternal)Property).StorageSetting = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.FormatTable(Index = 2)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type; } /// Creates an new instance. public BackupVaultResource() @@ -171,7 +181,7 @@ public BackupVaultResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -182,8 +192,15 @@ public BackupVaultResource() /// Backup Vault Resource public partial interface IBackupVaultResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource { + [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, @@ -248,20 +265,25 @@ public partial interface IBackupVaultResource : ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get; set; } } /// Backup Vault Resource internal partial interface IBackupVaultResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// Monitoring Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } /// BackupVaultResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVault Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetails ResourceMoveDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails ResourceMoveDetail { get; set; } /// /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. /// @@ -277,7 +299,7 @@ internal partial interface IBackupVaultResourceInternal : /// Resource move state for backup vault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; set; } /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResource.json.cs index 147a2d1fb4b6..0b30bfefb8ce 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupVaultResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupVaultResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupVaultResource /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BackupVaultResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVault.FromJson(__jsonProperties) : Property;} + __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVault.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BackupVaultResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.PowerShell.cs index 598d09feeb77..72073abfd733 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BackupVaultResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BackupVaultResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BackupVaultResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal BackupVaultResourceList(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVaultResourceList(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBackupVaultResourceList 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.Api20220401.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/Api20210701/BackupVaultResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.TypeConverter.cs index 3fa9ce106e92..f31349133eb2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BackupVaultResourceListTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.cs index 2e2162934459..bb12fc8423a2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BackupVault resources public partial class BackupVaultResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupVaultResourceList() @@ -42,7 +42,7 @@ public BackupVaultResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource[] Value { get; set; } } /// List of BackupVault resources internal partial interface IBackupVaultResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BackupVaultResourceList.json.cs index b7e97fd438cd..ee78c553af11 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BackupVaultResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BackupVaultResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BackupVaultResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupVaultResourceList /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BackupVaultResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BaseBackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.PowerShell.cs index 7ced4f28fde5..5d0980b19105 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BaseBackupPolicy /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BaseBackupPolicy /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BaseBackupPolicy(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal BaseBackupPolicy(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicy(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBaseBackupPolicy 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.Api20220401.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/Api20210701/BaseBackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.TypeConverter.cs index fb35f122e150..e427240f19b1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BaseBackupPolicyTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.cs index a15b31aa665a..28150d033884 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupPolicy base public partial class BaseBackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicy.json.cs index 9b28ba347bea..14e326207213 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BaseBackupPolicy partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BaseBackupPolicy /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BaseBackupPolicy /// /// 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. + /// 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. @@ -69,15 +71,15 @@ internal BaseBackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BaseBackupPolicyResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.PowerShell.cs index cb5e4c62357c..c260d43c8f91 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BaseBackupPolicyResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BaseBackupPolicyResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,37 +70,37 @@ internal BaseBackupPolicyResource(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -113,59 +115,59 @@ internal BaseBackupPolicyResource(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResource(content); } @@ -174,8 +176,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBaseBackupPolicyResource 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.Api20220401.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/Api20210701/BaseBackupPolicyResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.TypeConverter.cs index 381ed6e1c151..09afe8b69dbf 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BaseBackupPolicyResourceTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.cs index 4af9450acd6f..1439974ff07b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BaseBackupPolicy resource public partial class BaseBackupPolicyResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)Property).DatasourceType = value ?? null /* arrayOf */; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicy()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy _property; /// BaseBackupPolicyResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public BaseBackupPolicyResource() @@ -76,7 +76,7 @@ public BaseBackupPolicyResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal { /// Type of datasource for the backup management string[] DatasourceType { get; set; } string ObjectType { get; set; } /// BaseBackupPolicyResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicy Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicy Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResource.json.cs index a40f54bb6bc7..11185a407181 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BaseBackupPolicyResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BaseBackupPolicyResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BaseBackupPolicyResource /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BaseBackupPolicyResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BaseBackupPolicyResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.PowerShell.cs index f040b2b15703..3dc90c565f96 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BaseBackupPolicyResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BaseBackupPolicyResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BaseBackupPolicyResourceList(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal BaseBackupPolicyResourceList(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResourceList(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBaseBackupPolicyResourceList 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.Api20220401.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/Api20210701/BaseBackupPolicyResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.TypeConverter.cs index 9b9060cedfea..663260a18088 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BaseBackupPolicyResourceListTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.cs index 0eb7d623c1c8..2813f5308282 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BaseBackupPolicy resources public partial class BaseBackupPolicyResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BaseBackupPolicyResourceList() @@ -42,7 +42,7 @@ public BaseBackupPolicyResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource[] Value { get; set; } } /// List of BaseBackupPolicy resources internal partial interface IBaseBackupPolicyResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BaseBackupPolicyResourceList.json.cs index e61be5055ece..25df869334e4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BaseBackupPolicyResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BaseBackupPolicyResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BaseBackupPolicyResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BaseBackupPolicyResourceList /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal BaseBackupPolicyResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/BasePolicyRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.PowerShell.cs index 08775aa680b6..214dddcd1c8c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class BasePolicyRule /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BasePolicyRule /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal BasePolicyRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal BasePolicyRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BasePolicyRule(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IBasePolicyRule 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.Api20220401.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/Api20210701/BasePolicyRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.TypeConverter.cs index cb2839f7054c..22d5673217d7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class BasePolicyRuleTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IBasePolicyRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.cs b/src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.cs rename to src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.cs index 68c59bb91b47..f3221476d75a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BasePolicy Rule public partial class BasePolicyRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRuleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.json.cs b/src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/BasePolicyRule.json.cs index dc042d147ec9..39b35a846cae 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/BasePolicyRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class BasePolicyRule partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class BasePolicyRule /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BasePolicyRule /// /// 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. + /// 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. @@ -69,15 +71,15 @@ internal BasePolicyRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBasePolicyRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBasePolicyRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBasePolicyRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CheckNameAvailabilityRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.PowerShell.cs index cb5b002c57c5..253116461f48 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CheckNameAvailabilityRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CheckNameAvailabilityRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal CheckNameAvailabilityRequest(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal CheckNameAvailabilityRequest(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICheckNameAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityRequest(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICheckNameAvailabilityRequest 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.Api20220401.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/Api20210701/CheckNameAvailabilityRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.TypeConverter.cs index 115798a6074e..9f5393f9d5c0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class CheckNameAvailabilityRequestTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.cs index b766f1006f60..e49d5a583dce 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Request public partial class CheckNameAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityRequest.json.cs index d4810ae71393..6ecd1857c98c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CheckNameAvailabilityRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CheckNameAvailabilityRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CheckNameAvailabilityRequest /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal CheckNameAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CheckNameAvailabilityResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.PowerShell.cs index 4f366104851a..2a3a91cce648 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CheckNameAvailabilityResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CheckNameAvailabilityResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal CheckNameAvailabilityResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("NameAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal CheckNameAvailabilityResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("NameAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICheckNameAvailabilityResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityResult(content); } @@ -142,8 +144,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICheckNameAvailabilityResult 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.Api20220401.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/Api20210701/CheckNameAvailabilityResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.TypeConverter.cs index f0982437452c..6954473bec49 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class CheckNameAvailabilityResultTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.cs index c5fb257d24af..b9dba0786e03 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Result public partial class CheckNameAvailabilityResult : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResultInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CheckNameAvailabilityResult.json.cs index 8e3e5c1223af..6167772fc196 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CheckNameAvailabilityResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CheckNameAvailabilityResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CheckNameAvailabilityResult /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CheckNameAvailabilityResult /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal CheckNameAvailabilityResult(Microsoft.Azure.PowerShell.Cmdlets.DataProt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryDisplay.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.PowerShell.cs index 4ff787490628..c61da7545e8f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryDisplay /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryDisplay /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,25 +70,25 @@ internal ClientDiscoveryDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -101,47 +103,47 @@ internal ClientDiscoveryDisplay(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryDisplay(content); } @@ -150,8 +152,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IClientDiscoveryDisplay 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.Api20220401.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/Api20210701/ClientDiscoveryDisplay.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.TypeConverter.cs index 4d7ca9ce31dd..d52aad158c7f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ClientDiscoveryDisplayTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.cs index 973a55b2aad9..ae6bbc7b03f0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IClientDiscoveryDisplay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryDisplay.json.cs index 29e748294f09..f85378e747bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryDisplay.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryDisplay partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryDisplay /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryDisplay /// /// 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. + /// 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. @@ -71,13 +73,13 @@ internal ClientDiscoveryDisplay(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryForLogSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.PowerShell.cs index dc906a1200a8..599a0b4468c7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryForLogSpecification /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryForLogSpecification /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,21 +70,21 @@ internal ClientDiscoveryForLogSpecification(global::System.Collections.IDictiona // actually deserialize if (content.Contains("BlobDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -97,43 +99,43 @@ internal ClientDiscoveryForLogSpecification(global::System.Management.Automation // actually deserialize if (content.Contains("BlobDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForLogSpecification(content); } @@ -142,8 +144,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IClientDiscoveryForLogSpecification 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.Api20220401.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/Api20210701/ClientDiscoveryForLogSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.TypeConverter.cs index f4b2210d507d..29351682aafa 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ClientDiscoveryForLogSpecificationTypeConverter : global::S { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -76,19 +76,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -100,21 +101,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.cs index 9c51355b45a9..fe4d86cf1a9e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IClientDiscoveryForLogSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecificationInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForLogSpecification.json.cs index 7433ddd8b93d..e4e24953cd57 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForLogSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryForLogSpecification partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryForLogSpecification /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryForLogSpecification /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal ClientDiscoveryForLogSpecification(Microsoft.Azure.PowerShell.Cmdlets.D } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryForProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.PowerShell.cs index 80adeeadf3ad..a06443553d2a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryForProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryForProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal ClientDiscoveryForProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal ClientDiscoveryForProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForProperties(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IClientDiscoveryForProperties 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.Api20220401.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/Api20210701/ClientDiscoveryForProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.TypeConverter.cs index ba2d1fc8244c..2700139d6af5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ClientDiscoveryForPropertiesTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.cs index 3c2ba8dea348..3a4dfd9a162c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IClientDiscoveryForProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal { /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification _serviceSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification _serviceSpecification; /// Operation properties. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecification()); set => this._serviceSpecification = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForProperties.json.cs index de991f0f3033..eed316307091 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryForProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryForProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryForProperties /// /// 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. + /// 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. @@ -63,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.Api20210701.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} + {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryForServiceSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.PowerShell.cs index 2b1b10f8de7a..ff359895167f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryForServiceSpecification /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryForServiceSpecification /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal ClientDiscoveryForServiceSpecification(global::System.Collections.IDict // actually deserialize if (content.Contains("LogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,35 +91,35 @@ internal ClientDiscoveryForServiceSpecification(global::System.Management.Automa // actually deserialize if (content.Contains("LogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForServiceSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForServiceSpecification(content); } @@ -127,8 +129,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// 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.Api20210701.IClientDiscoveryForServiceSpecification 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.Api20220401.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/Api20210701/ClientDiscoveryForServiceSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.TypeConverter.cs index a1634f7fc2bc..6183e1751797 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -15,20 +15,20 @@ public partial class ClientDiscoveryForServiceSpecificationTypeConverter : globa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,22 +102,22 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.cs index 25bc834b387e..d0ea4d8e4d67 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IClientDiscoveryForServiceSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecificationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] _logSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification[] LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryForServiceSpecification.json.cs index 6d4aaf956b02..2da84dee3401 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryForServiceSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryForServiceSpecification partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryForServiceSpecification /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryForServiceSpecification /// /// 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. + /// 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. @@ -63,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.Api20210701.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForLogSpecification.FromJson(__u) )) ))() : null : LogSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.PowerShell.cs index 9bd395b6181f..7242a3929a52 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryResponse /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryResponse /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal ClientDiscoveryResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,39 +95,39 @@ internal ClientDiscoveryResponse(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryResponse(content); } @@ -134,8 +136,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IClientDiscoveryResponse 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.Api20220401.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/Api20210701/ClientDiscoveryResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.TypeConverter.cs index 82c928ae0bcd..55d6c8e63d5d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ClientDiscoveryResponseTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.cs index 30e4debf650a..8caf8fb606a3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IClientDiscoveryResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryResponse.json.cs index b94227f280ec..3d212b2e3853 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryResponse partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryResponse /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryResponse /// /// 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. + /// 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. @@ -64,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.Api20210701.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryValueForSingleApi.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ClientDiscoveryValueForSingleApi.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.PowerShell.cs index ab82cebf6dc8..0326c491713e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ClientDiscoveryValueForSingleApi /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ClientDiscoveryValueForSingleApi /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,53 +70,53 @@ internal ClientDiscoveryValueForSingleApi(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplayTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -129,75 +131,75 @@ internal ClientDiscoveryValueForSingleApi(global::System.Management.Automation.P // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplayTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryValueForSingleApi(content); } @@ -206,8 +208,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IClientDiscoveryValueForSingleApi 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.Api20220401.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/Api20210701/ClientDiscoveryValueForSingleApi.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.TypeConverter.cs index 29171c615bf7..8557882fdb02 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ClientDiscoveryValueForSingleApiTypeConverter : global::Sys { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.cs index befef6968f16..2d8e917fe7c1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Available operation details. public partial class ClientDiscoveryValueForSingleApi : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplay()); set { {_display = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryForProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IClientDiscoveryForProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForProperties Property { get; set; } /// Operation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ClientDiscoveryValueForSingleApi.json.cs index 0bad06be3f36..0a99865c78a8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ClientDiscoveryValueForSingleApi.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ClientDiscoveryValueForSingleApi partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ClientDiscoveryValueForSingleApi /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ClientDiscoveryValueForSingleApi /// /// 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. + /// 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. @@ -63,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.Api20210701.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ClientDiscoveryForProperties.FromJson(__jsonProperties) : Property;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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;} @@ -72,13 +74,13 @@ internal ClientDiscoveryValueForSingleApi(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IClientDiscoveryValueForSingleApi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CloudError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CloudError.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/CloudError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CloudError.PowerShell.cs index cebf0325bc09..e8280697a528 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CloudError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CloudError /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CloudError /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,33 +70,33 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -109,53 +111,53 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -164,8 +166,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICloudError 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.Api20220401.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/Api20210701/CloudError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CloudError.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CloudError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CloudError.TypeConverter.cs index d9e0e6a389da..f37f31691d78 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CloudError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class CloudErrorTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CloudError.cs b/src/DataProtection/generated/api/Models/Api20220401/CloudError.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20210701/CloudError.cs rename to src/DataProtection/generated/api/Models/Api20220401/CloudError.cs index eefae0577283..432efa7d0bf1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CloudError.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Detail { get; set; } /// The resource management error response. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20210701/CloudError.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CloudError.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/CloudError.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CloudError.json.cs index 5cacbf946913..2da7640d6c03 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CloudError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CloudError partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CloudError /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CloudError /// /// 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. + /// 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. @@ -63,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.Api20210701.Error.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CopyOnExpiryOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.PowerShell.cs index b61b0e07f8df..3462d904f64b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CopyOnExpiryOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CopyOnExpiryOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal CopyOnExpiryOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,33 +91,33 @@ internal CopyOnExpiryOption(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOnExpiryOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOnExpiryOption(content); } @@ -124,8 +126,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICopyOnExpiryOption 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.Api20220401.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/Api20210701/CopyOnExpiryOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.TypeConverter.cs index a9b837b21d81..96491bd5d4cd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class CopyOnExpiryOptionTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.cs index 9549d0219e2c..2e2c2a1635d3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Copy on Expiry Option public partial class CopyOnExpiryOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CopyOnExpiryOption() @@ -33,7 +33,7 @@ public CopyOnExpiryOption() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption { } /// Copy on Expiry Option internal partial interface ICopyOnExpiryOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOnExpiryOption.json.cs index e631a6968494..3a43e87691a8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOnExpiryOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CopyOnExpiryOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CopyOnExpiryOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CopyOnExpiryOption /// /// 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. + /// 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. @@ -63,18 +65,18 @@ internal CopyOnExpiryOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOnExpiryOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOnExpiryOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOption.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOption.PowerShell.cs index 0369cccdea6f..3eadbd0f3267 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CopyOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CopyOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,13 +70,13 @@ internal CopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -89,33 +91,33 @@ internal CopyOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOption(content); } @@ -124,8 +126,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICopyOption 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.Api20220401.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/Api20210701/CopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOption.TypeConverter.cs index 1cf14621cb93..f6a905637c43 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class CopyOptionTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOption.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOption.cs index d2d35720a819..e2089c216bc9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Options to copy public partial class CopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CopyOption.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/CopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CopyOption.json.cs index 6463824e2a1c..885f073dc2c4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CopyOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CopyOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CopyOption /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal CopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/CustomCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.PowerShell.cs index 565d5dd92eb3..2feeeda2fbbe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class CustomCopyOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CustomCopyOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal CustomCopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal CustomCopyOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICustomCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CustomCopyOption(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ICustomCopyOption 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.Api20220401.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/Api20210701/CustomCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.TypeConverter.cs index b797bafd7592..a33096de2550 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class CustomCopyOptionTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ICustomCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.cs b/src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.cs index 51bfaca7d721..0e62593e5430 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.ICustomCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CustomCopyOption() @@ -40,7 +40,7 @@ public CustomCopyOption() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal { /// Data copied after given timespan string Duration { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/CustomCopyOption.json.cs index 6be7cd9ff80a..bbf5c31c5e10 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/CustomCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class CustomCopyOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class CustomCopyOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CustomCopyOption /// /// 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. + /// 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. @@ -63,19 +65,19 @@ internal CustomCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICustomCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICustomCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICustomCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DataStoreInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.PowerShell.cs index 9c407f7d5057..25adc4847483 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DataStoreInfoBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DataStoreInfoBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal DataStoreInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal DataStoreInfoBase(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreInfoBase(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDataStoreInfoBase 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.Api20220401.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/Api20210701/DataStoreInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.TypeConverter.cs index aca1db94290e..1cc5c3af04e0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DataStoreInfoBaseTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.cs index 089cfbbf5cd3..d56a648d5330 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// DataStoreInfo base public partial class DataStoreInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreInfoBase.json.cs index bdfd430144d8..cf36f6ec92bc 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DataStoreInfoBase partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DataStoreInfoBase /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DataStoreInfoBase /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal DataStoreInfoBase(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DataStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.PowerShell.cs index bb9259540fe5..8ed47861bf3a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DataStoreParameters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DataStoreParameters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal DataStoreParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal DataStoreParameters(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreParameters(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDataStoreParameters 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.Api20220401.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/Api20210701/DataStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.TypeConverter.cs index 5bcd27e1ef9b..e23a48e21ab9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DataStoreParametersTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDataStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.cs index 04e39db070ee..5b7a24b34488 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for DataStore public partial class DataStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DataStoreParameters.json.cs index 61919ccf7844..b671be3f2933 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DataStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DataStoreParameters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DataStoreParameters /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DataStoreParameters /// /// 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. + /// 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. @@ -69,15 +71,15 @@ internal DataStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/Datasource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/Datasource.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/Datasource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/Datasource.PowerShell.cs index 03f9282d467b..4b2486192830 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Datasource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class Datasource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Datasource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,37 +70,37 @@ internal Datasource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -113,57 +115,57 @@ internal Datasource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Datasource(content); } @@ -172,8 +174,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDatasource 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.Api20220401.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/Api20210701/Datasource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/Datasource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/Datasource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/Datasource.TypeConverter.cs index 857e1f558ba0..5b4d08da101d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Datasource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class DatasourceTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDatasource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/Datasource.cs b/src/DataProtection/generated/api/Models/Api20220401/Datasource.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20210701/Datasource.cs rename to src/DataProtection/generated/api/Models/Api20220401/Datasource.cs index 3c79f184731a..91afba7be8f9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Datasource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Datasource to be backed up public partial class Datasource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/Datasource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/Datasource.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/Datasource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/Datasource.json.cs index 6ef77edc61ae..ccad33758aad 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Datasource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class Datasource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class Datasource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class Datasource /// /// 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. + /// 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. @@ -74,13 +76,13 @@ internal Datasource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DatasourceSet.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.PowerShell.cs index ea2a25bed9ea..949501a98e82 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DatasourceSet /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DatasourceSet /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,37 +70,37 @@ internal DatasourceSet(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -113,57 +115,57 @@ internal DatasourceSet(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatasourceSet(content); } @@ -172,8 +174,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDatasourceSet 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.Api20220401.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/Api20210701/DatasourceSet.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.TypeConverter.cs index 0717172a495d..c84b0a3c51af 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DatasourceSetTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDatasourceSet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.cs b/src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.cs rename to src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.cs index c1aca3bb6c01..57090a3cbf9b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IDatasourceSet, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSetInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSetInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DatasourceSet.json.cs index bd2b2c1ab187..6a213eebee74 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DatasourceSet.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DatasourceSet partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DatasourceSet /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatasourceSet /// /// 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. + /// 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. @@ -74,13 +76,13 @@ internal DatasourceSet(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/Day.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/Day.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/Day.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/Day.PowerShell.cs index 4f1cb8813a27..2d32076516f3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Day.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class Day /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Day /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal Day(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Date")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IsLast")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal Day(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Date")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IsLast")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Day(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDay 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.Api20220401.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/Api20210701/Day.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/Day.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/Day.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/Day.TypeConverter.cs index 5f87a451b28b..372294733c5e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Day.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class DayTypeConverter : global::System.Management.Automation.PST { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/Day.cs b/src/DataProtection/generated/api/Models/Api20220401/Day.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/Day.cs rename to src/DataProtection/generated/api/Models/Api20220401/Day.cs index 46281e468cfe..e9a0da9b4eaa 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Day.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Day of the week public partial class Day : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/Day.json.cs b/src/DataProtection/generated/api/Models/Api20220401/Day.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/Day.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/Day.json.cs index c94cbd5b0e02..a6a8f2966ada 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Day.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class Day partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class Day /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class Day /// /// 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. + /// 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. @@ -69,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.Api20210701.IDay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DeleteOption.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/DeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DeleteOption.PowerShell.cs index 7794d74ad75f..c199efa00159 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DeleteOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DeleteOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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. @@ -68,17 +70,17 @@ internal DeleteOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal DeleteOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeleteOption(content); } @@ -132,8 +134,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDeleteOption 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.Api20220401.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/Api20210701/DeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DeleteOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DeleteOption.TypeConverter.cs index ccd1d6f047aa..fa80dd4a2929 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DeleteOptionTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.cs b/src/DataProtection/generated/api/Models/Api20220401/DeleteOption.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/DeleteOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/DeleteOption.cs index 2a66afb27a3a..253054df08ec 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete Option public partial class DeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DeleteOption.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DeleteOption.json.cs index 7d0f69b13b41..6a5b88336788 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DeleteOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DeleteOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DeleteOption /// /// 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. + /// 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. @@ -69,15 +71,15 @@ internal DeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppBaseResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.PowerShell.cs index ec5245016e7e..7bb26f5b94fd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppBaseResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppBaseResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppBaseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,21 +96,21 @@ internal DppBaseResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -123,15 +125,15 @@ internal DppBaseResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -140,8 +142,8 @@ internal DppBaseResource(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppBaseResource 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.Api20220401.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/Api20210701/DppBaseResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.TypeConverter.cs index 3e53982e692a..e773f17723ed 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppBaseResourceTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppBaseResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.cs index 2e8320e0b083..8eb2972cf703 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IDppBaseResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResource.json.cs index 2527c1da19fe..7583a291da16 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppBaseResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppBaseResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppBaseResource /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal DppBaseResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppBaseResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.PowerShell.cs index 74bfdc961b7d..3a1daf2e308b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppBaseResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppBaseResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppBaseResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,17 +96,17 @@ internal DppBaseResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -119,11 +121,11 @@ internal DppBaseResourceList(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppBaseResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppBaseResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,8 +134,8 @@ internal DppBaseResourceList(global::System.Management.Automation.PSObject conte /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppBaseResourceList 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.Api20220401.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/Api20210701/DppBaseResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.TypeConverter.cs index 319dabcb7eba..0449000d744f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppBaseResourceListTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppBaseResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.cs index 25cce797fabd..496b0fac223a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IDppBaseResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppBaseResourceList.json.cs index 4c35b14e987f..b0244710a6ae 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppBaseResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppBaseResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppBaseResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppBaseResourceList /// /// 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. + /// 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. @@ -63,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.Api20210701.IDppBaseResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IDppBaseResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppBaseResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppBaseResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppBaseResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppIdentityDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.PowerShell.cs index 7532581cbd1a..4041d994480f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppIdentityDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppIdentityDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppIdentityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,21 +96,21 @@ internal DppIdentityDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -123,15 +125,15 @@ internal DppIdentityDetails(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -140,8 +142,8 @@ internal DppIdentityDetails(global::System.Management.Automation.PSObject conten /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppIdentityDetails 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.Api20220401.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/Api20210701/DppIdentityDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.TypeConverter.cs index 44172038302d..db854075a5be 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppIdentityDetailsTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppIdentityDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.cs index b591ace54fea..a3ae899d9b48 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Identity details public partial class DppIdentityDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppIdentityDetails.json.cs index abe970ff141a..7d7773ea0824 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppIdentityDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppIdentityDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppIdentityDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppIdentityDetails /// /// 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. + /// 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. @@ -70,13 +72,13 @@ internal DppIdentityDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResource.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/DppResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResource.PowerShell.cs index f4135e72c0bf..8a9717911e0e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,25 +96,25 @@ internal DppResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -127,19 +129,19 @@ internal DppResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -148,8 +150,8 @@ internal DppResource(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppResource 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.Api20220401.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/Api20210701/DppResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResource.TypeConverter.cs index 390771bbd604..afaaeca40891 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppResourceTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppResource.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResource.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/DppResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResource.cs index a005041ae9ec..f9518d57900c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource class public partial class DppResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResource.json.cs index 1fdced9c7811..79b2e8dff2a4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppResource /// /// 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. + /// 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. @@ -66,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.Api20210701.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResourceList.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/DppResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResourceList.PowerShell.cs index 7a152b9b5742..3da9f4a504e5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,13 +96,13 @@ internal DppResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -115,7 +117,7 @@ internal DppResourceList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -124,8 +126,8 @@ internal DppResourceList(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppResourceList 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.Api20220401.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/Api20210701/DppResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResourceList.TypeConverter.cs index d68f430d0d9e..c1461e3f1b9d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppResourceListTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResourceList.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/DppResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResourceList.cs index 6b913ac99162..9606bffd9b54 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// ListResource public partial class DppResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppResourceList.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppResourceList.json.cs index e1f7fb890f46..74b0ea59e64e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppResourceList /// /// 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. + /// 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. @@ -68,13 +70,13 @@ internal DppResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppTrackedResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.PowerShell.cs index 257c6186aa16..4861513783a4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class DppTrackedResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class DppTrackedResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IDppTrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,53 +95,53 @@ internal DppTrackedResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -154,47 +156,47 @@ internal DppTrackedResource(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -203,8 +205,8 @@ internal DppTrackedResource(global::System.Management.Automation.PSObject conten /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppTrackedResource 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.Api20220401.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/Api20210701/DppTrackedResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.TypeConverter.cs index 16603a954642..f1ec57fed954 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppTrackedResourceTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppTrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.cs index cc45a2b14b23..849765025f20 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal { /// Backing field for property. @@ -27,28 +27,28 @@ public partial class DppTrackedResource : public string Id { get => this._id; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } /// Backing field for property. private string _location; @@ -58,25 +58,25 @@ public partial class DppTrackedResource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetails()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).TenantId = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -86,18 +86,18 @@ public partial class DppTrackedResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -184,16 +184,16 @@ public partial interface IDppTrackedResource : ReadOnly = true, Description = @"Metadata pertaining to creation and last modification of the resource.", SerializedName = @"systemData", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// @@ -214,7 +214,7 @@ internal partial interface IDppTrackedResourceInternal /// Resource Id represents the complete path to the resource. string Id { get; set; } /// Input Managed Identity Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -231,9 +231,9 @@ internal partial interface IDppTrackedResourceInternal /// Resource name associated with the resource. string Name { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.json.cs index 31cd0f29a5fe..106486b6e8f0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class DppTrackedResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class DppTrackedResource /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class DppTrackedResource /// /// 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. + /// 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. @@ -62,25 +64,25 @@ internal DppTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.DppTrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTags.FromJson(__jsonTags) : Tag;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppTrackedResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.PowerShell.cs index 196fc90dc95a..2dd9fbbe2451 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class DppTrackedResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class DppTrackedResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IDppTrackedResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -95,13 +97,13 @@ internal DppTrackedResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -116,7 +118,7 @@ internal DppTrackedResourceList(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -125,8 +127,8 @@ internal DppTrackedResourceList(global::System.Management.Automation.PSObject co /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppTrackedResourceList 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.Api20220401.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/Api20210701/DppTrackedResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.TypeConverter.cs index 1343a48b1271..87c9d0a684bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppTrackedResourceListTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.cs index be96a0627b4a..296b57cd770e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceList.json.cs index 1c23871e5698..4013db4794f0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class DppTrackedResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class DppTrackedResourceList /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class DppTrackedResourceList /// /// 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. + /// 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. @@ -67,13 +69,13 @@ internal DppTrackedResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppTrackedResourceTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.PowerShell.cs index 8e9f5ab0f460..ad78a5551248 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppTrackedResourceTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppTrackedResourceTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,35 +55,35 @@ public partial class DppTrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppTrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppTrackedResourceTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,7 +102,7 @@ internal DppTrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,8 +124,8 @@ internal DppTrackedResourceTags(global::System.Management.Automation.PSObject co /// Creates a new instance of , deserializing the content from a 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.Api20210701.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.Api20220401.IDppTrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.TypeConverter.cs index 25f36cd7a1a0..dc29895a2cd2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppTrackedResourceTagsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppTrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.cs index 715834cae1e7..7d6682487450 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. public partial class DppTrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.dictionary.cs index 67195c3e5620..208659e33c1e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.DppTrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.json.cs index 2512b594ee1d..4c2f6ed8bce0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppTrackedResourceTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/DppTrackedResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppTrackedResourceTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppTrackedResourceTags /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppTrackedResourceTags /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal DppTrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppTrackedResourceTags(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.PowerShell.cs index 6571bd563405..a797cedc673b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class DppWorkerRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class DppWorkerRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IDppWorkerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -93,37 +95,37 @@ internal DppWorkerRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -138,31 +140,31 @@ internal DppWorkerRequest(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -171,8 +173,8 @@ internal DppWorkerRequest(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppWorkerRequest 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.Api20220401.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/Api20210701/DppWorkerRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.TypeConverter.cs index 73b763f0921d..d01d6656d783 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppWorkerRequestTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppWorkerRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.cs index 33b4f2922a6d..6bf19eeb7998 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppWorkerRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestHeaders _header; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders _header; /// /// Dictionary of /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestHeaders()); set => this._header = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestParameters _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters _parameter; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppWorkerRequestParameters()); set => this._parameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestHeaders) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders Header { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters Parameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestHeaders Header { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders Header { get; set; } string HttpMethod { get; set; } /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters Parameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters Parameter { get; set; } string SubscriptionId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequest.json.cs index 5b1dac73e90a..971142fb696d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class DppWorkerRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class DppWorkerRequest /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class DppWorkerRequest /// /// 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. + /// 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. @@ -64,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.Api20210701.DppWorkerRequestHeaders.FromJson(__jsonHeaders) : Header;} + {_header = If( json?.PropertyT("headers"), out var __jsonHeaders) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.DppWorkerRequestParameters.FromJson(__jsonParameters) : Parameter;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppWorkerRequestHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.PowerShell.cs index d99d9be22f6d..73e31efb0f33 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class DppWorkerRequestHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class DppWorkerRequestHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,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.Api20210701.IDppWorkerRequestHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -102,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. @@ -124,8 +126,8 @@ internal DppWorkerRequestHeaders(global::System.Management.Automation.PSObject c /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppWorkerRequestHeaders 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.Api20220401.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/Api20210701/DppWorkerRequestHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.TypeConverter.cs index 9c63acb43cc0..3a7a13a9cbf0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppWorkerRequestHeadersTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.cs index dfe01d2e816e..719bca4df3a0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 /// Dictionary of components·ikn5y4·schemas·dppworkerrequest·properties·headers·additionalproperties /// public partial class DppWorkerRequestHeaders : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeadersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeadersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.dictionary.cs index 3ca05a9a2dab..f93a0ead135f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.DppWorkerRequestHeaders source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestHeaders source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestHeaders.json.cs index ef1f06746288..d9e75851cf70 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class DppWorkerRequestHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -32,7 +32,8 @@ public partial class DppWorkerRequestHeaders /// /// 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. + /// If you wish 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. @@ -44,7 +45,8 @@ public partial class DppWorkerRequestHeaders /// /// 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. + /// 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. @@ -71,13 +73,13 @@ internal DppWorkerRequestHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestHeaders. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/DppWorkerRequestParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.PowerShell.cs index 3e53824feb21..4647d9b99607 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class DppWorkerRequestParameters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DppWorkerRequestParameters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IDppWorkerRequestParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppWorkerRequestParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -100,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. @@ -122,8 +124,8 @@ internal DppWorkerRequestParameters(global::System.Management.Automation.PSObjec /// Creates a new instance of , deserializing the content from a 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.Api20210701.IDppWorkerRequestParameters 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.Api20220401.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/Api20210701/DppWorkerRequestParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.TypeConverter.cs index 803b4c0dde87..f6528ebdc2c3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class DppWorkerRequestParametersTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.cs index fef42c144eb8..a71502694e73 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Dictionary of public partial class DppWorkerRequestParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParametersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.dictionary.cs index 73addc3284b2..aa6e63fbe2d1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.DppWorkerRequestParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppWorkerRequestParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/DppWorkerRequestParameters.json.cs index 31f3f93e45f7..06dd6eb48cbe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/DppWorkerRequestParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class DppWorkerRequestParameters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class DppWorkerRequestParameters /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DppWorkerRequestParameters /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal DppWorkerRequestParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProte } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppWorkerRequestParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppWorkerRequestParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/Error.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/Error.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/Error.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/Error.PowerShell.cs index 96d9b010df63..276f834caf8d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Error.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class Error /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Error /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,29 +96,29 @@ internal Error(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -131,23 +133,23 @@ internal Error(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -156,8 +158,8 @@ internal Error(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IError 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.Api20220401.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/Api20210701/Error.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/Error.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/Error.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/Error.TypeConverter.cs index ced0fbee2035..b8f9bcc943b1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Error.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class ErrorTypeConverter : global::System.Management.Automation.P { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/Error.cs b/src/DataProtection/generated/api/Models/Api20220401/Error.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/Error.cs rename to src/DataProtection/generated/api/Models/Api20220401/Error.cs index ac8ba551a06f..6d88f4f82b7e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Error.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// The resource management error response. public partial class Error : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20210701/Error.json.cs b/src/DataProtection/generated/api/Models/Api20220401/Error.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/Error.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/Error.json.cs index f10379d9ce7e..6735ca2d717e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/Error.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class Error partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class Error /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class Error /// /// 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. + /// 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. @@ -63,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.Api20210701.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.PowerShell.cs index 9b17ab583990..abe182415a0c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,17 +96,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -119,11 +121,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,8 +134,8 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// Creates a new instance of , deserializing the content from a 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.Api20210701.IErrorAdditionalInfo 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.Api20220401.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/Api20210701/ErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.TypeConverter.cs index ae7c722dbd64..34c67d35311e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ErrorAdditionalInfoTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.cs index 586968e66290..1826d0b1be8b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.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.Api20220401.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.Api20210701.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ErrorAdditionalInfo.json.cs index e0ee7d7ce03c..e7f89f2a2fe8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ErrorAdditionalInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ErrorAdditionalInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ErrorAdditionalInfo /// /// 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. + /// 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. @@ -69,13 +71,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ExportJobsResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.PowerShell.cs index 3ddfc996bbdd..34ced23d6411 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ExportJobsResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ExportJobsResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IExportJobsResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IExportJobsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -94,25 +96,25 @@ internal ExportJobsResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); } if (content.Contains("BlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -127,19 +129,19 @@ internal ExportJobsResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("BlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); } if (content.Contains("BlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -148,8 +150,8 @@ internal ExportJobsResult(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a 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.Api20210701.IExportJobsResult 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.Api20220401.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/Api20210701/ExportJobsResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.TypeConverter.cs index 8179d5643ff1..84cd70677cbb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ExportJobsResultTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IExportJobsResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.cs b/src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.cs rename to src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.cs index a1787093ce1b..efabf56e182c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IExportJobsResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } /// Internal Acessors for BlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } /// Internal Acessors for ExcelFileBlobSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } /// Internal Acessors for ExcelFileBlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } /// Creates an new instance. public ExportJobsResult() diff --git a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ExportJobsResult.json.cs index eea14bcfb508..19b6f4d83eb9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ExportJobsResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ExportJobsResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ExportJobsResult /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ExportJobsResult /// /// 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. + /// 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. @@ -71,13 +73,13 @@ internal ExportJobsResult(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IExportJobsResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IExportJobsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/FeatureValidationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.PowerShell.cs index ec552607f331..cb9e27ceb6c7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class FeatureValidationRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class FeatureValidationRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IFeatureValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -96,21 +98,21 @@ internal FeatureValidationRequest(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -125,15 +127,15 @@ internal FeatureValidationRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -142,8 +144,8 @@ internal FeatureValidationRequest(global::System.Management.Automation.PSObject /// Creates a new instance of , deserializing the content from a 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.Api20210701.IFeatureValidationRequest 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.Api20220401.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/Api20210701/FeatureValidationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.TypeConverter.cs index e8be4a1811db..4ce1dc797f72 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class FeatureValidationRequestTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.cs index de331f68e475..3e44f9a0a6f2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for feature object public partial class FeatureValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationRequest() @@ -47,7 +47,7 @@ public FeatureValidationRequest() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IFeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal { /// backup support feature name. string FeatureName { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequest.json.cs index 751b2da0ed7f..e8a1be398359 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class FeatureValidationRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class FeatureValidationRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class FeatureValidationRequest /// /// 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. + /// 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. @@ -63,20 +65,20 @@ internal FeatureValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase(json); + __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/FeatureValidationRequestBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.PowerShell.cs index f4e668421be9..6f276ae6ff32 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class FeatureValidationRequestBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class FeatureValidationRequestBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IFeatureValidationRequestBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequestBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -96,13 +98,13 @@ internal FeatureValidationRequestBase(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -117,7 +119,7 @@ internal FeatureValidationRequestBase(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -126,8 +128,8 @@ internal FeatureValidationRequestBase(global::System.Management.Automation.PSObj /// Creates a new instance of , deserializing the content from a 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.Api20210701.IFeatureValidationRequestBase 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.Api20220401.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/Api20210701/FeatureValidationRequestBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.TypeConverter.cs index b4f49b44aeda..c2ece6890b10 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class FeatureValidationRequestBaseTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.cs index 739189a4596d..7bdda696cf79 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IFeatureValidationRequestBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.json.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationRequestBase.json.cs index 26da6e0c5247..7a9c5b27d9c2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationRequestBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class FeatureValidationRequestBase partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class FeatureValidationRequestBase /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class FeatureValidationRequestBase /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal FeatureValidationRequestBase(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationRequestBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/FeatureValidationResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.PowerShell.cs index 51726a8e7f10..0d510dcf8619 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class FeatureValidationResponse /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class FeatureValidationResponse /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IFeatureValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -96,21 +98,21 @@ internal FeatureValidationResponse(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("Feature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SupportedFeatureTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -125,15 +127,15 @@ internal FeatureValidationResponse(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("Feature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SupportedFeatureTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -142,8 +144,8 @@ internal FeatureValidationResponse(global::System.Management.Automation.PSObject /// Creates a new instance of , deserializing the content from a 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.Api20210701.IFeatureValidationResponse 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.Api20220401.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/Api20210701/FeatureValidationResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.TypeConverter.cs index 191bad068407..1fe38fdb4ce3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class FeatureValidationResponseTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.cs index b2b1a853cfe2..6958b510de97 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Feature Validation Response public partial class FeatureValidationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponseBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationResponseBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[] _feature; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature[] _feature; /// Response features [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[] Feature { get => this._feature; set => this._feature = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationResponse() @@ -47,7 +47,7 @@ public FeatureValidationResponse() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IFeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISupportedFeature) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[] Feature { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal { /// Response features - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature[] Feature { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/FeatureValidationResponse.json.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponse.json.cs index 41f71acbf988..b52797b2a16e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class FeatureValidationResponse partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class FeatureValidationResponse /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class FeatureValidationResponse /// /// 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. + /// 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. @@ -63,20 +65,20 @@ internal FeatureValidationResponse(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationResponseBase(json); + __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SupportedFeature.FromJson(__u) )) ))() : null : Feature;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/FeatureValidationResponseBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.PowerShell.cs index 67546d8bb5b1..c13ba552ab8a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class FeatureValidationResponseBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class FeatureValidationResponseBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IFeatureValidationResponseBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationResponseBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -96,13 +98,13 @@ internal FeatureValidationResponseBase(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -117,7 +119,7 @@ internal FeatureValidationResponseBase(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -126,8 +128,8 @@ internal FeatureValidationResponseBase(global::System.Management.Automation.PSOb /// Creates a new instance of , deserializing the content from a 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.Api20210701.IFeatureValidationResponseBase 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.Api20220401.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/Api20210701/FeatureValidationResponseBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.TypeConverter.cs index ec3c58f10942..a9f34cbccc45 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class FeatureValidationResponseBaseTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.cs index 87069659b871..f60e22f41a2c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IFeatureValidationResponseBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.json.cs b/src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/FeatureValidationResponseBase.json.cs index bfcc7c8568c9..549d938d893b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/FeatureValidationResponseBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class FeatureValidationResponseBase partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class FeatureValidationResponseBase /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class FeatureValidationResponseBase /// /// 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. + /// 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. @@ -68,15 +70,15 @@ internal FeatureValidationResponseBase(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IFeatureValidationResponseBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ImmediateCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.PowerShell.cs index 880dcfece1b4..5bbc6567b0e3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ImmediateCopyOption /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ImmediateCopyOption /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IImmediateCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImmediateCopyOption(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IImmediateCopyOption 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.Api20220401.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. @@ -101,13 +103,13 @@ internal ImmediateCopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -122,7 +124,7 @@ internal ImmediateCopyOption(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.TypeConverter.cs index 2034855a08dc..d03e978486d9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ImmediateCopyOptionTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IImmediateCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IImmediateCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.cs b/src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.cs rename to src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.cs index d5f2f162dd5e..b03988a944e1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Immediate copy Option public partial class ImmediateCopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IImmediateCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IImmediateCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public ImmediateCopyOption() @@ -33,7 +33,7 @@ public ImmediateCopyOption() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption { } /// Immediate copy Option internal partial interface IImmediateCopyOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ImmediateCopyOption.json.cs index 2f7992bcdd70..ac7f2d304f26 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ImmediateCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ImmediateCopyOption partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ImmediateCopyOption /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ImmediateCopyOption /// /// 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. + /// 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. @@ -52,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.Api20210701.IImmediateCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IImmediateCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IImmediateCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IImmediateCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,7 +77,7 @@ internal ImmediateCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption(json); AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerError.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/InnerError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerError.PowerShell.cs index 2862843bd42e..796e028c5baa 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class InnerError /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class InnerError /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerError(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IInnerError 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.Api20220401.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. @@ -101,21 +103,21 @@ internal InnerError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("EmbeddedInnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -130,15 +132,15 @@ internal InnerError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("EmbeddedInnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerError.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/InnerError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerError.TypeConverter.cs index 31d08b1deb4b..3ca8fb9acbea 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class InnerErrorTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IInnerError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerError.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerError.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/InnerError.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerError.cs index 766dd8db16d9..747659a39a25 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerError.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Inner Error public partial class InnerError : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorAdditionalInfo()); set => this._additionalInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError _embeddedInnerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerError()); set => this._embeddedInnerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError EmbeddedInnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError EmbeddedInnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError EmbeddedInnerError { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerError.json.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerError.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/InnerError.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerError.json.cs index c1f798aa82d4..e6b1933e52a8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class InnerError partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class InnerError /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class InnerError /// /// 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. + /// 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. @@ -52,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.Api20210701.IInnerError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.InnerErrorAdditionalInfo.FromJson(__jsonAdditionalInfo) : AdditionalInfo;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} + {_embeddedInnerError = If( json?.PropertyT("embeddedInnerError"), out var __jsonEmbeddedInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.PowerShell.cs index 33c7b576b528..c98196e0111b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class InnerErrorAdditionalInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class InnerErrorAdditionalInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,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.Api20210701.IInnerErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerErrorAdditionalInfo(content); } @@ -86,11 +88,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IInnerErrorAdditionalInfo 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.Api20220401.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. @@ -109,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/Api20210701/InnerErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.TypeConverter.cs index 1a6e37bb0744..7987fb3c7c24 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class InnerErrorAdditionalInfoTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.cs index 041b2e9dac20..b94d6f733fd9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 /// 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.Api20210701.IInnerErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfoInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.dictionary.cs index 627da64ee0a7..cb49237da970 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.InnerErrorAdditionalInfo source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorAdditionalInfo source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/InnerErrorAdditionalInfo.json.cs index 4874778281be..c17a70611ffe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/InnerErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class InnerErrorAdditionalInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -32,7 +32,8 @@ public partial class InnerErrorAdditionalInfo /// /// 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. + /// If you wish 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. @@ -44,7 +45,8 @@ public partial class InnerErrorAdditionalInfo /// /// 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. + /// 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. @@ -54,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.Api20210701.IInnerErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.PowerShell.cs index 47ab0a3f3270..f1efeb98e9fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ItemLevelRestoreCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ItemLevelRestoreCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ItemLevelRestoreCriteria(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IItemLevelRestoreCriteria 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.Api20220401.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. @@ -103,13 +105,13 @@ internal ItemLevelRestoreCriteria(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -124,7 +126,7 @@ internal ItemLevelRestoreCriteria(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.TypeConverter.cs index cd16d8b2b26f..5eac062d984f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ItemLevelRestoreCriteriaTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.cs index d9873a084825..2500fa0a700a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IItemLevelRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.json.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreCriteria.json.cs index 7f77beb05bd0..0433aac1dab9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ItemLevelRestoreCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ItemLevelRestoreCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ItemLevelRestoreCriteria /// /// 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. + /// 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. @@ -52,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.Api20210701.IItemLevelRestoreCriteria. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json)) { @@ -74,6 +76,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 { return new RangeBasedItemLevelRestoreCriteria(json); } + case "KubernetesStorageClassRestoreCriteria": + { + return new KubernetesStorageClassRestoreCriteria(json); + } + case "KubernetesPVRestoreCriteria": + { + return new KubernetesPvRestoreCriteria(json); + } } return new ItemLevelRestoreCriteria(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.PowerShell.cs index 7613e764a601..3163005f070d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ItemLevelRestoreTargetInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ItemLevelRestoreTargetInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IItemLevelRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ItemLevelRestoreTargetInfo(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IItemLevelRestoreTargetInfo 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.Api20220401.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. @@ -103,37 +105,37 @@ internal ItemLevelRestoreTargetInfo(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("RestoreCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -148,31 +150,31 @@ internal ItemLevelRestoreTargetInfo(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("RestoreCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.TypeConverter.cs index 5e9b7cf77749..5024367d82ac 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ItemLevelRestoreTargetInfoTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IItemLevelRestoreTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.cs index dbcc414ef2c2..84485e0eee63 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IItemLevelRestoreTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials()); set => this._datasourceAuthCredentials = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource _datasourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource()); set => this._datasourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource()); set => this._datasourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet _datasourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet()); set => this._datasourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet()); set => this._datasourceSetInfo = value; } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[] _restoreCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria[] _restoreCriterion; /// Restore Criteria [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[] RestoreCriterion { get => this._restoreCriterion; set => this._restoreCriterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Creates an new instance. public ItemLevelRestoreTargetInfo() @@ -72,7 +72,7 @@ public ItemLevelRestoreTargetInfo() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource DatasourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DatasourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } } /// Restore target info for Item level restore operation internal partial interface IItemLevelRestoreTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal { /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Information of target DS - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource DatasourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DatasourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DatasourceSetInfo { get; set; } /// Restore Criteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ItemLevelRestoreTargetInfo.json.cs index 44c6cd1dca43..94c13c0d15e4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ItemLevelRestoreTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ItemLevelRestoreTargetInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ItemLevelRestoreTargetInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ItemLevelRestoreTargetInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IItemLevelRestoreTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,11 +77,11 @@ internal ItemLevelRestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IItemLevelRestoreCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteria.FromJson(__u) )) ))() : null : RestoreCriterion;} - {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} - {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} - {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IItemLevelRestoreCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria.FromJson(__u) )) ))() : null : RestoreCriterion;} + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.PowerShell.cs index 04aff99cfa08..a541ba56002e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class JobExtendedInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class JobExtendedInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobExtendedInfo(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IJobExtendedInfo 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.Api20220401.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. @@ -101,53 +103,53 @@ internal JobExtendedInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("TargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("BackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); } if (content.Contains("DataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); } if (content.Contains("SubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -162,47 +164,47 @@ internal JobExtendedInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("TargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("BackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); } if (content.Contains("DataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); } if (content.Contains("SubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/JobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.TypeConverter.cs index 7bee388e0dec..f05e03730156 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class JobExtendedInfoTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.cs index 43d1e7998e8d..4c8821e76748 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Extended Information about the job public partial class JobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } /// Internal Acessors for DataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } /// Internal Acessors for RecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } /// Internal Acessors for SourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } /// Internal Acessors for SubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } /// Internal Acessors for TargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails()); set { {_targetRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails _sourceRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] _subTask; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask[] SubTask { get => this._subTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] SubTask { get => this._subTask; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails _targetRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask[] SubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask[] SubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask[] SubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } string TargetRecoverPointRecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfo.json.cs index 871b2a42955e..0db403fa264c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class JobExtendedInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class JobExtendedInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class JobExtendedInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} - {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} - {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobExtendedInfoAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_sourceRecoverPoint = If( json?.PropertyT("sourceRecoverPoint"), out var __jsonSourceRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} + {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTask.FromJson(__u) )) ))() : null : SubTask;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.PowerShell.cs index 40402cdb2822..d347d7ef44fc 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class JobExtendedInfoAdditionalDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class JobExtendedInfoAdditionalDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IJobExtendedInfoAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobExtendedInfoAdditionalDetails(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IJobExtendedInfoAdditionalDetails 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.Api20220401.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. @@ -107,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/Api20210701/JobExtendedInfoAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.TypeConverter.cs index 21931af49dd0..ab82d3d502cb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class JobExtendedInfoAdditionalDetailsTypeConverter : global::Sys { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.cs index 0da5cba4414e..2de3cf51ce4d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Job's Additional Details public partial class JobExtendedInfoAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.dictionary.cs index e361fd9ccb1d..fef61cda6a6c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobExtendedInfoAdditionalDetails.json.cs index 611c158e5136..45627e9448f5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobExtendedInfoAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class JobExtendedInfoAdditionalDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class JobExtendedInfoAdditionalDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class JobExtendedInfoAdditionalDetails /// /// 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. + /// 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. @@ -52,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.Api20210701.IJobExtendedInfoAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobExtendedInfoAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobExtendedInfoAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/JobSubTask.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTask.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTask.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTask.PowerShell.cs index 8ae3d3b66036..10d1b0ed313c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class JobSubTask /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class JobSubTask /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IJobSubTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTask(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IJobSubTask 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.Api20220401.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. @@ -101,29 +103,29 @@ internal JobSubTask(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("TaskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TaskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); } if (content.Contains("TaskProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); } if (content.Contains("TaskStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -138,23 +140,23 @@ internal JobSubTask(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("TaskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TaskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); } if (content.Contains("TaskProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); } if (content.Contains("TaskStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTask.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTask.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTask.TypeConverter.cs index 4ab0312bc1c5..89a31635d5b8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class JobSubTaskTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IJobSubTask ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTask.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTask.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTask.cs index dee427e8aca6..92a5e8c8cc38 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IJobSubTask, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } /// Internal Acessors for TaskProgress - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskInternal.TaskProgress { get => this._taskProgress; set { {_taskProgress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTaskAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/JobSubTask.json.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTask.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTask.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTask.json.cs index 67c09bef2944..bef6f27d608a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTask.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class JobSubTask partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class JobSubTask /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class JobSubTask /// /// 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. + /// 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. @@ -52,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.Api20210701.IJobSubTask. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTask. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.JobSubTaskAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/JobSubTaskAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.PowerShell.cs index aa8776c3d5b0..b03a426ec54f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class JobSubTaskAdditionalDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class JobSubTaskAdditionalDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IJobSubTaskAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTaskAdditionalDetails(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IJobSubTaskAdditionalDetails 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.Api20220401.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. @@ -107,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/Api20210701/JobSubTaskAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.TypeConverter.cs index bad9a55c92d2..bf1519b2a452 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class JobSubTaskAdditionalDetailsTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.cs index 5f713be26a2d..694d1c696192 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Additional details of Sub Tasks public partial class JobSubTaskAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.dictionary.cs index 0240130d0696..344b32ac9693 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.JobSubTaskAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.JobSubTaskAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/JobSubTaskAdditionalDetails.json.cs index 949bcd4556cc..ddeec20ab1bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/JobSubTaskAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class JobSubTaskAdditionalDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class JobSubTaskAdditionalDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class JobSubTaskAdditionalDetails /// /// 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. + /// 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. @@ -52,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.Api20210701.IJobSubTaskAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IJobSubTaskAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IJobSubTaskAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20220401/KubernetesPvRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.PowerShell.cs new file mode 100644 index 000000000000..cb87da990595 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Item Level kubernetes persistent volume target info for restore operation + [System.ComponentModel.TypeConverter(typeof(KubernetesPvRestoreCriteriaTypeConverter))] + public partial class KubernetesPvRestoreCriteria + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20220401.IKubernetesPvRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new KubernetesPvRestoreCriteria(content); + } + + /// + /// Deserializes a 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.Api20220401.IKubernetesPvRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new KubernetesPvRestoreCriteria(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20220401.IKubernetesPvRestoreCriteria 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 KubernetesPvRestoreCriteria(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("StorageClassName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal KubernetesPvRestoreCriteria(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("StorageClassName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Item Level kubernetes persistent volume target info for restore operation + [System.ComponentModel.TypeConverter(typeof(KubernetesPvRestoreCriteriaTypeConverter))] + public partial interface IKubernetesPvRestoreCriteria + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.TypeConverter.cs new file mode 100644 index 000000000000..171314d57745 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class KubernetesPvRestoreCriteriaTypeConverter : 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.Api20220401.IKubernetesPvRestoreCriteria ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteria).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return KubernetesPvRestoreCriteria.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return KubernetesPvRestoreCriteria.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return KubernetesPvRestoreCriteria.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/Api20220401/KubernetesPvRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.cs new file mode 100644 index 000000000000..c623f34957f2 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + 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.Api20220401.IKubernetesPvRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ItemLevelRestoreCriteria(); + + /// Backing field for property. + private string _name; + + /// Selected persistent volume claim name + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = 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.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + + /// Backing field for property. + private string _storageClassName; + + /// Selected storage class name for restore operation + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string StorageClassName { get => this._storageClassName; set => this._storageClassName = value; } + + /// Creates an new instance. + public KubernetesPvRestoreCriteria() + { + + } + + /// 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(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + await eventListener.AssertObjectIsValid(nameof(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + } + } + /// 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.Api20220401.IItemLevelRestoreCriteria + { + /// Selected persistent volume claim name + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Selected persistent volume claim name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Selected storage class name for restore operation + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Selected storage class name for restore operation", + SerializedName = @"storageClassName", + PossibleTypes = new [] { typeof(string) })] + string StorageClassName { get; set; } + + } + /// Item Level kubernetes persistent volume target info for restore operation + internal partial interface IKubernetesPvRestoreCriteriaInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal + { + /// Selected persistent volume claim name + string Name { get; set; } + /// Selected storage class name for restore operation + string StorageClassName { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.json.cs new file mode 100644 index 000000000000..ec2aa18215e1 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesPvRestoreCriteria.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Item Level kubernetes persistent volume target info for restore operation + public partial class KubernetesPvRestoreCriteria + { + + /// + /// 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.Api20220401.IKubernetesPvRestoreCriteria. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesPvRestoreCriteria. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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 KubernetesPvRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __itemLevelRestoreCriteria?.ToJson(container, serializationMode); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._storageClassName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._storageClassName.ToString()) : null, "storageClassName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.PowerShell.cs new file mode 100644 index 000000000000..5514f751a122 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Item Level kubernetes storage class target info for restore operation + [System.ComponentModel.TypeConverter(typeof(KubernetesStorageClassRestoreCriteriaTypeConverter))] + public partial class KubernetesStorageClassRestoreCriteria + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20220401.IKubernetesStorageClassRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new KubernetesStorageClassRestoreCriteria(content); + } + + /// + /// Deserializes a 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.Api20220401.IKubernetesStorageClassRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new KubernetesStorageClassRestoreCriteria(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20220401.IKubernetesStorageClassRestoreCriteria 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 KubernetesStorageClassRestoreCriteria(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SelectedStorageClassName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); + } + if (content.Contains("Provisioner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal KubernetesStorageClassRestoreCriteria(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SelectedStorageClassName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); + } + if (content.Contains("Provisioner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Item Level kubernetes storage class target info for restore operation + [System.ComponentModel.TypeConverter(typeof(KubernetesStorageClassRestoreCriteriaTypeConverter))] + public partial interface IKubernetesStorageClassRestoreCriteria + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.TypeConverter.cs new file mode 100644 index 000000000000..2f8b18ad77b9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.TypeConverter.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class KubernetesStorageClassRestoreCriteriaTypeConverter : 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.Api20220401.IKubernetesStorageClassRestoreCriteria ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteria).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return KubernetesStorageClassRestoreCriteria.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return KubernetesStorageClassRestoreCriteria.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return KubernetesStorageClassRestoreCriteria.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/Api20220401/KubernetesStorageClassRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.cs new file mode 100644 index 000000000000..ccba1c27d2ce --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + 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.Api20220401.IKubernetesStorageClassRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + + /// Backing field for property. + private string _provisioner; + + /// Provisioner of the storage class + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Provisioner { get => this._provisioner; set => this._provisioner = value; } + + /// Backing field for property. + private string _selectedStorageClassName; + + /// Selected storage class name + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string SelectedStorageClassName { get => this._selectedStorageClassName; set => this._selectedStorageClassName = value; } + + /// Creates an new instance. + public KubernetesStorageClassRestoreCriteria() + { + + } + + /// 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(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + await eventListener.AssertObjectIsValid(nameof(__itemLevelRestoreCriteria), __itemLevelRestoreCriteria); + } + } + /// 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.Api20220401.IItemLevelRestoreCriteria + { + /// Provisioner of the storage class + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provisioner of the storage class", + SerializedName = @"provisioner", + PossibleTypes = new [] { typeof(string) })] + string Provisioner { get; set; } + /// Selected storage class name + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Selected storage class name", + SerializedName = @"selectedStorageClassName", + PossibleTypes = new [] { typeof(string) })] + string SelectedStorageClassName { get; set; } + + } + /// Item Level kubernetes storage class target info for restore operation + internal partial interface IKubernetesStorageClassRestoreCriteriaInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal + { + /// Provisioner of the storage class + string Provisioner { get; set; } + /// Selected storage class name + string SelectedStorageClassName { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.json.cs new file mode 100644 index 000000000000..a31b69d631c2 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/KubernetesStorageClassRestoreCriteria.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Item Level kubernetes storage class target info for restore operation + public partial class KubernetesStorageClassRestoreCriteria + { + + /// + /// 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.Api20220401.IKubernetesStorageClassRestoreCriteria. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IKubernetesStorageClassRestoreCriteria. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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 KubernetesStorageClassRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __itemLevelRestoreCriteria?.ToJson(container, serializationMode); + AddIf( null != (((object)this._selectedStorageClassName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._selectedStorageClassName.ToString()) : null, "selectedStorageClassName" ,container.Add ); + AddIf( null != (((object)this._provisioner)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._provisioner.ToString()) : null, "provisioner" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.PowerShell.cs new file mode 100644 index 000000000000..2244378f754f --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Monitoring Settings + [System.ComponentModel.TypeConverter(typeof(MonitoringSettingsTypeConverter))] + public partial class MonitoringSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20220401.IMonitoringSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MonitoringSettings(content); + } + + /// + /// Deserializes a 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.Api20220401.IMonitoringSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MonitoringSettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20220401.IMonitoringSettings 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 MonitoringSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)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 MonitoringSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)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(); + } + /// Monitoring Settings + [System.ComponentModel.TypeConverter(typeof(MonitoringSettingsTypeConverter))] + public partial interface IMonitoringSettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.TypeConverter.cs new file mode 100644 index 000000000000..10170bf49b1e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class MonitoringSettingsTypeConverter : 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.Api20220401.IMonitoringSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return MonitoringSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return MonitoringSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return MonitoringSettings.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/Api20220401/MonitoringSettings.cs b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.cs new file mode 100644 index 000000000000..ac6adc89116a --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Monitoring Settings + public partial class MonitoringSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// Internal Acessors for AzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal.AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettings()); set { {_azureMonitorAlertSetting = value;} } } + + /// Creates an new instance. + public MonitoringSettings() + { + + } + } + /// Monitoring Settings + public partial interface IMonitoringSettings : + 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; } + + } + /// Monitoring Settings + internal partial interface IMonitoringSettingsInternal + + { + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get; set; } + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.json.cs b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.json.cs new file mode 100644 index 000000000000..eb92f0ff8621 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/MonitoringSettings.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Monitoring Settings + public partial class MonitoringSettings + { + + /// + /// 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.Api20220401.IMonitoringSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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 MonitoringSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_azureMonitorAlertSetting = If( json?.PropertyT("azureMonitorAlertSettings"), out var __jsonAzureMonitorAlertSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettings.FromJson(__jsonAzureMonitorAlertSettings) : AzureMonitorAlertSetting;} + 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._azureMonitorAlertSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._azureMonitorAlertSetting.ToJson(null,serializationMode) : null, "azureMonitorAlertSettings" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.PowerShell.cs index e8348c96d344..9f04c825d70d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OperationExtendedInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OperationExtendedInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IOperationExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationExtendedInfo(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IOperationExtendedInfo 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.Api20220401.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. @@ -103,13 +105,13 @@ internal OperationExtendedInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -124,7 +126,7 @@ internal OperationExtendedInfo(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.TypeConverter.cs index 74423229256c..c219521beb56 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OperationExtendedInfoTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.cs index 3ff433b18d70..1cfbc19199b6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Extended Info public partial class OperationExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationExtendedInfo.json.cs index 975188e37da6..2d4b0f01d7c7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OperationExtendedInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class OperationExtendedInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OperationExtendedInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IOperationExtendedInfo. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/OperationJobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.PowerShell.cs index 27c07cced3e1..3c7bb6f03d1e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OperationJobExtendedInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OperationJobExtendedInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IOperationJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationJobExtendedInfo(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IOperationJobExtendedInfo 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.Api20220401.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. @@ -103,17 +105,17 @@ internal OperationJobExtendedInfo(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("JobId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -128,11 +130,11 @@ internal OperationJobExtendedInfo(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("JobId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.TypeConverter.cs index 563eb199b3cd..20605501fa65 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OperationJobExtendedInfoTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.cs index a6010a238c88..dea4aa245f8c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Job Extended Info public partial class OperationJobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ; } /// Creates an new instance. public OperationJobExtendedInfo() @@ -42,7 +42,7 @@ public OperationJobExtendedInfo() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IOperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal { /// Arm Id of the job created for this operation. string JobId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationJobExtendedInfo.json.cs index 7346a72d4b69..9d46cfefcba1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationJobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OperationJobExtendedInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class OperationJobExtendedInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OperationJobExtendedInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IOperationJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,7 +77,7 @@ internal OperationJobExtendedInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo(json); + __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfo(json); {_jobId = If( json?.PropertyT("jobId"), out var __jsonJobId) ? (string)__jsonJobId : (string)JobId;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationResource.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210701/OperationResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationResource.PowerShell.cs index 1735064ad8fa..014e46235e15 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OperationResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OperationResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IOperationResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationResource(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IOperationResource 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.Api20220401.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. @@ -101,61 +103,61 @@ internal OperationResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -170,55 +172,55 @@ internal OperationResource(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/OperationResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationResource.TypeConverter.cs index e7c0cc2c0b80..59411f53a87c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OperationResourceTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IOperationResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationResource.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/OperationResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationResource.cs index 86c934760ea5..0c74d6f6101d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Resource public partial class OperationResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Message = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.OperationExtendedInfo()); set { {_property = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationExtendedInfo _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IOperationExtendedInfo Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationExtendedInfo Property { get; set; } /// Start time of the operation global::System.DateTime? StartTime { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/OperationResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/OperationResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/OperationResource.json.cs index 7b29df3aed78..9ee3e55c1b7c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/OperationResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class OperationResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class OperationResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OperationResource /// /// 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. + /// 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. @@ -52,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.Api20210701.IOperationResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.Error.FromJson(__jsonError) : Error;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.OperationExtendedInfo.FromJson(__jsonProperties) : Property;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Error.FromJson(__jsonError) : Error;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20220401/PatchBackupVaultInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.PowerShell.cs new file mode 100644 index 000000000000..240049e21ff5 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + 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.Api20220401.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.Api20220401.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.Api20220401.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.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)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 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.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)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(); + } + /// 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/Api20220401/PatchBackupVaultInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.TypeConverter.cs new file mode 100644 index 000000000000..2897ddb24b8c --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PatchBackupVaultInputTypeConverter : 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.Api20220401.IPatchBackupVaultInput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PatchBackupVaultInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PatchBackupVaultInput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PatchBackupVaultInput.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/Api20220401/PatchBackupVaultInput.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.cs new file mode 100644 index 000000000000..074fa1ec7e98 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 +{ + 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.Api20220401.IPatchBackupVaultInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettings()); set { {_monitoringSetting = value;} } } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings _monitoringSetting; + + /// Monitoring Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.json.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.json.cs new file mode 100644 index 000000000000..2493e6d20351 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchBackupVaultInput.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Backup Vault Contract for Patch Backup Vault API. + public partial class PatchBackupVaultInput + { + + /// + /// 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.Api20220401.IPatchBackupVaultInput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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 PatchBackupVaultInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} + 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._monitoringSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._monitoringSetting.ToJson(null,serializationMode) : null, "monitoringSettings" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.PowerShell.cs similarity index 56% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.PowerShell.cs index 69dc74f1e3b6..320dd051f6ef 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class PatchResourceRequestInput /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class PatchResourceRequestInput /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,29 +55,29 @@ public partial class PatchResourceRequestInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PatchResourceRequestInput(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PatchResourceRequestInput(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IPatchResourceRequestInput 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.Api20220401.IPatchResourceRequestInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,29 +105,45 @@ internal PatchResourceRequestInput(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchBackupVaultInputTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)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. @@ -140,23 +158,39 @@ internal PatchResourceRequestInput(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchBackupVaultInputTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.MonitoringSettingsTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.TypeConverter.cs index e4b211a50b19..4e94100fe4fd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class PatchResourceRequestInputTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.cs similarity index 56% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.cs index 4eb2fb6e2592..a820b7dafe2d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.cs @@ -3,55 +3,74 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IPatchResourceRequestInput, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetails()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetailsInternal)Identity).TenantId = value; } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)Property).MonitoringSetting = value; } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchBackupVaultInput()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput _property; + + /// Resource properties. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchBackupVaultInput()); set => this._property = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTags()); set => this._tag = value; } /// Creates an new instance. public PatchResourceRequestInput() @@ -63,6 +82,13 @@ public PatchResourceRequestInput() 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. @@ -98,16 +124,17 @@ public partial interface IPatchResourceRequestInput : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetails Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -119,8 +146,14 @@ internal partial interface IPatchResourceRequestInputInternal 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.Api20220401.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + /// Resource properties. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchBackupVaultInput Property { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.json.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.json.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInput.json.cs index 92af723600c2..84f0e0a2b735 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInput.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class PatchResourceRequestInput partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class PatchResourceRequestInput /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class PatchResourceRequestInput /// /// 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. + /// 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. @@ -52,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.Api20210701.IPatchResourceRequestInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,8 +77,9 @@ internal PatchResourceRequestInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchBackupVaultInput.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } @@ -100,6 +103,7 @@ 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 != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); 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; diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.PowerShell.cs index 818d2d5ea322..00f1262ba378 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class PatchResourceRequestInputTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class PatchResourceRequestInputTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IPatchResourceRequestInputTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PatchResourceRequestInputTags(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IPatchResourceRequestInputTags 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.Api20220401.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. @@ -107,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/Api20210701/PatchResourceRequestInputTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.TypeConverter.cs index b215a6b575ef..da9c6e81e834 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class PatchResourceRequestInputTagsTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.cs index fd830c0f994d..91470b1fbd8a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. public partial class PatchResourceRequestInputTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.dictionary.cs index 600c82f9a9f9..95f8f310a039 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.PatchResourceRequestInputTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInputTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.json.cs b/src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/PatchResourceRequestInputTags.json.cs index ad00c1f62da7..46dddc5b3911 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PatchResourceRequestInputTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class PatchResourceRequestInputTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class PatchResourceRequestInputTags /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class PatchResourceRequestInputTags /// /// 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. + /// 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. @@ -52,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.Api20210701.IPatchResourceRequestInputTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/PolicyInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.PowerShell.cs index 2e06090aa092..198a6cc811e1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class PolicyInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class PolicyInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IPolicyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyInfo(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IPolicyInfo 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.Api20220401.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. @@ -101,21 +103,21 @@ internal PolicyInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("PolicyParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -130,15 +132,15 @@ internal PolicyInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("PolicyParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyParametersTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.TypeConverter.cs index ae561c22fa14..93a0eb9d9bba 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class PolicyInfoTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IPolicyInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.cs index e022662c17ff..c62d98f9e112 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Policy Info in backupInstance public partial class PolicyInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfoInternal { /// Internal Acessors for PolicyVersion - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfoInternal.PolicyVersion { get => this._policyVersion; set { {_policyVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyParameters _policyParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PolicyParameters()); set => this._policyParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters PolicyParameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyParameters PolicyParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters PolicyParameter { get; set; } string PolicyVersion { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyInfo.json.cs index 3b56c0080872..52d7b433e373 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class PolicyInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class PolicyInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class PolicyInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IPolicyInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -77,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.Api20210701.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} + {_policyParameter = If( json?.PropertyT("policyParameters"), out var __jsonPolicyParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.PowerShell.cs index f3bc67b2dfea..cd3b7db4cc3b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class PolicyParameters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class PolicyParameters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IPolicyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyParameters(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IPolicyParameters 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.Api20220401.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. @@ -101,13 +103,13 @@ internal PolicyParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataStoreParametersList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -122,7 +124,7 @@ internal PolicyParameters(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DataStoreParametersList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreParametersTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.TypeConverter.cs index 37b2efd12a92..fa2afc0f69e5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class PolicyParametersTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IPolicyParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.cs index 2dcded8f30e7..f3d5dd0f5179 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters in Policy public partial class PolicyParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParametersInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters[] _dataStoreParametersList; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters[] DataStoreParametersList { get => this._dataStoreParametersList; set => this._dataStoreParametersList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreParameters[] DataStoreParametersList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreParameters[] DataStoreParametersList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreParameters[] DataStoreParametersList { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/PolicyParameters.json.cs index 05f4a8503504..51f2cb184e17 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/PolicyParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class PolicyParameters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class PolicyParameters /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class PolicyParameters /// /// 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. + /// 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. @@ -52,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.Api20210701.IPolicyParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPolicyParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPolicyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreParameters.FromJson(__u) )) ))() : null : DataStoreParametersList;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.PowerShell.cs index fa969c8f9a7e..e04b4ffcb3df 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ProtectionStatusDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProtectionStatusDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IProtectionStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionStatusDetails(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IProtectionStatusDetails 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.Api20220401.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. @@ -103,17 +105,17 @@ internal ProtectionStatusDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -128,11 +130,11 @@ internal ProtectionStatusDetails(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.TypeConverter.cs index 7e630d0cda98..823d9a000488 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ProtectionStatusDetailsTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.cs index 415ee8c094aa..ad8de344ea2d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Protection status details public partial class ProtectionStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError()); set => this._errorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError ErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ProtectionStatusDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ProtectionStatusDetails.json.cs index 763c31c61b12..c7a76ffd99bf 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ProtectionStatusDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ProtectionStatusDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ProtectionStatusDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ProtectionStatusDetails /// /// 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. + /// 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. @@ -52,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.Api20210701.IProtectionStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IProtectionStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IProtectionStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.UserFacingError.FromJson(__jsonErrorDetails) : ErrorDetail;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RangeBasedItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.PowerShell.cs index 1a019ae641c2..f34582a67386 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RangeBasedItemLevelRestoreCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RangeBasedItemLevelRestoreCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRangeBasedItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRangeBasedItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RangeBasedItemLevelRestoreCriteria(content); } @@ -84,11 +86,13 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRangeBasedItemLevelRestoreCriteria 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.Api20220401.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. @@ -103,21 +107,21 @@ internal RangeBasedItemLevelRestoreCriteria(global::System.Collections.IDictiona // actually deserialize if (content.Contains("MinMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); } if (content.Contains("MaxMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -132,15 +136,15 @@ internal RangeBasedItemLevelRestoreCriteria(global::System.Management.Automation // actually deserialize if (content.Contains("MinMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); } if (content.Contains("MaxMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs index 09c3a0f30f9d..cffca2d270d1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RangeBasedItemLevelRestoreCriteriaTypeConverter : global::S { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -76,19 +76,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -100,21 +101,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRangeBasedItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.cs index 007e2f0ef73c..ee17a21aaa90 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IRangeBasedItemLevelRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } /// Creates an new instance. public RangeBasedItemLevelRestoreCriteria() @@ -47,7 +47,7 @@ public RangeBasedItemLevelRestoreCriteria() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IItemLevelRestoreCriteriaInternal { /// maximum value for range prefix match string MaxMatchingValue { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RangeBasedItemLevelRestoreCriteria.json.cs index bcf27a4643e5..f65ad421848e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RangeBasedItemLevelRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RangeBasedItemLevelRestoreCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RangeBasedItemLevelRestoreCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RangeBasedItemLevelRestoreCriteria /// /// 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. + /// 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. @@ -52,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.Api20210701.IRangeBasedItemLevelRestoreCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRangeBasedItemLevelRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRangeBasedItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,7 +77,7 @@ internal RangeBasedItemLevelRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ItemLevelRestoreCriteria(json); + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RecoveryPointDataStoreDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.PowerShell.cs index 722f23d42af7..a7090824e848 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RecoveryPointDataStoreDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RecoveryPointDataStoreDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRecoveryPointDataStoreDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointDataStoreDetails(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRecoveryPointDataStoreDetails 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.Api20220401.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. @@ -103,45 +105,45 @@ internal RecoveryPointDataStoreDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("CreationTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("MetaData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Visible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RehydrationExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -156,39 +158,39 @@ internal RecoveryPointDataStoreDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("CreationTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("MetaData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Visible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RehydrationExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.TypeConverter.cs index 29a245d946b3..5eaffb722397 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RecoveryPointDataStoreDetailsTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.cs index 399aba0343fc..e472ca2c3596 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// RecoveryPoint datastore details public partial class RecoveryPointDataStoreDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal.RehydrationExpiryTime { get => this._rehydrationExpiryTime; set { {_rehydrationExpiryTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointDataStoreDetailsInternal.RehydrationStatus { get => this._rehydrationStatus; set { {_rehydrationStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RecoveryPointDataStoreDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointDataStoreDetails.json.cs index d02f0663a47c..489317a3cf65 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointDataStoreDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RecoveryPointDataStoreDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RecoveryPointDataStoreDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RecoveryPointDataStoreDetails /// /// 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. + /// 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. @@ -52,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.Api20210701.IRecoveryPointDataStoreDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointDataStoreDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointDataStoreDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RecoveryPointsFilters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.PowerShell.cs index 16018cc74557..7d687eee82d7 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class RecoveryPointsFilters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class RecoveryPointsFilters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IRecoveryPointsFilters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointsFilters(content); } @@ -83,11 +85,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRecoveryPointsFilters 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.Api20220401.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. @@ -102,33 +104,33 @@ internal RecoveryPointsFilters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("RestorePointDataStoreId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); } if (content.Contains("IsVisible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); } if (content.Contains("EndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RestorePointState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -143,27 +145,27 @@ internal RecoveryPointsFilters(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("RestorePointDataStoreId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); } if (content.Contains("IsVisible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); } if (content.Contains("EndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RestorePointState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.TypeConverter.cs index f9bbe6ddc5de..3dbb2355ab58 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RecoveryPointsFiltersTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFilters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.cs index 249622be7ab4..412079464451 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RecoveryPointsFilters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFilters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFiltersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFiltersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RecoveryPointsFilters.json.cs index dd568bd8ec5a..2d51a76358b5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RecoveryPointsFilters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class RecoveryPointsFilters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class RecoveryPointsFilters /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class RecoveryPointsFilters /// /// 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. + /// 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. @@ -51,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.Api20210701.IRecoveryPointsFilters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFilters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRecoveryPointsFilters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRecoveryPointsFilters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ResourceGuard.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.PowerShell.cs index 11a49b208dd6..38e58c15905c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class ResourceGuard /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class ResourceGuard /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IResourceGuard DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuard DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuard(content); } @@ -81,11 +83,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IResourceGuard 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.Api20220401.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. @@ -100,29 +102,29 @@ internal ResourceGuard(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperationTypeConverter.ConvertFrom)); } - if (content.Contains("VaultCriticalOperationExclusionList")) + if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).VaultCriticalOperationExclusionList = (string[]) content.GetValueForProperty("VaultCriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).VaultCriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -137,23 +139,23 @@ internal ResourceGuard(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperationTypeConverter.ConvertFrom)); } - if (content.Contains("VaultCriticalOperationExclusionList")) + if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).VaultCriticalOperationExclusionList = (string[]) content.GetValueForProperty("VaultCriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).VaultCriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.TypeConverter.cs index 3a0a7f6ea218..3346006947dd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ResourceGuardTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IResourceGuard ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.cs index b02b02014f3e..190eceeb6102 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class ResourceGuard : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal { /// Backing field for property. @@ -19,6 +19,13 @@ public partial class ResourceGuard : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public bool? AllowAutoApproval { get => this._allowAutoApproval; } + /// Backing field for property. + private string[] _criticalOperationExclusionList; + + /// List of critical operations which are not protected by this resourceGuard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string[] CriticalOperationExclusionList { get => this._criticalOperationExclusionList; set => this._criticalOperationExclusionList = value; } + /// Backing field for property. private string _description; @@ -27,28 +34,25 @@ public partial class ResourceGuard : public string Description { get => this._description; } /// Internal Acessors for AllowAutoApproval - bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal.AllowAutoApproval { get => this._allowAutoApproval; set { {_allowAutoApproval = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal.AllowAutoApproval { get => this._allowAutoApproval; set { {_allowAutoApproval = value;} } } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal.Operation { get => this._operation; set { {_operation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for VaultCriticalOperationExclusionList - string[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal.VaultCriticalOperationExclusionList { get => this._vaultCriticalOperationExclusionList; set { {_vaultCriticalOperationExclusionList = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] _operation; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardOperation[] Operation { get => this._operation; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] Operation { get => this._operation; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; @@ -57,13 +61,6 @@ public partial class ResourceGuard : [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 string[] _vaultCriticalOperationExclusionList; - - /// List of critical operations which are not protected by this resourceGuard - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public string[] VaultCriticalOperationExclusionList { get => this._vaultCriticalOperationExclusionList; } - /// Creates an new instance. public ResourceGuard() { @@ -81,6 +78,14 @@ public partial interface IResourceGuard : SerializedName = @"allowAutoApprovals", PossibleTypes = new [] { typeof(bool) })] bool? AllowAutoApproval { get; } + /// List of critical operations which are not protected by this resourceGuard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of critical operations which are not protected by this resourceGuard", + SerializedName = @"vaultCriticalOperationExclusionList", + PossibleTypes = new [] { typeof(string) })] + string[] CriticalOperationExclusionList { get; set; } /// Description about the pre-req steps to perform all the critical operations. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -97,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.Api20210701.IResourceGuardOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] Operation { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] Operation { get; } /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -107,14 +112,6 @@ public partial interface IResourceGuard : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; } - /// List of critical operations which are not protected by this resourceGuard - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"List of critical operations which are not protected by this resourceGuard", - SerializedName = @"vaultCriticalOperationExclusionList", - PossibleTypes = new [] { typeof(string) })] - string[] VaultCriticalOperationExclusionList { get; } } internal partial interface IResourceGuardInternal @@ -122,16 +119,16 @@ internal partial interface IResourceGuardInternal { /// This flag indicates whether auto approval is allowed or not. bool? AllowAutoApproval { get; set; } + /// List of critical operations which are not protected by this resourceGuard + string[] CriticalOperationExclusionList { get; set; } /// Description about the pre-req steps to perform all the critical operations. string Description { get; set; } /// /// {readonly} List of operation details those are protected by the ResourceGuard resource /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] Operation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] Operation { get; set; } /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } - /// List of critical operations which are not protected by this resourceGuard - string[] VaultCriticalOperationExclusionList { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.json.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuard.json.cs index 1db9f3374a97..8878476ad9cd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuard.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class ResourceGuard partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class ResourceGuard /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class ResourceGuard /// /// 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. + /// 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. @@ -51,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.Api20210701.IResourceGuard. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -76,8 +78,8 @@ 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.Api20210701.IResourceGuardOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperation.FromJson(__u) )) ))() : null : Operation;} - {_vaultCriticalOperationExclusionList = 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 : VaultCriticalOperationExclusionList;} + {_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.Api20220401.IResourceGuardOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); } @@ -121,17 +123,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T container.Add("resourceGuardOperations",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + if (null != this._criticalOperationExclusionList) { - if (null != this._vaultCriticalOperationExclusionList) + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.XNodeArray(); + foreach( var __s in this._criticalOperationExclusionList ) { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.XNodeArray(); - foreach( var __s in this._vaultCriticalOperationExclusionList ) - { - AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); - } - container.Add("vaultCriticalOperationExclusionList",__r); + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); } + container.Add("vaultCriticalOperationExclusionList",__r); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) { diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.PowerShell.cs index 247726dd4e82..852a06c84469 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ResourceGuardOperation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ResourceGuardOperation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IResourceGuardOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardOperation(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IResourceGuardOperation 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.Api20220401.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. @@ -103,17 +105,17 @@ internal ResourceGuardOperation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VaultCriticalOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); } if (content.Contains("RequestResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -128,11 +130,11 @@ internal ResourceGuardOperation(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("VaultCriticalOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); } if (content.Contains("RequestResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.TypeConverter.cs index a49561f373f9..135027e65fff 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ResourceGuardOperationTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IResourceGuardOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.cs index 5debc6aff940..352d3616e787 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IResourceGuardOperation, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal { /// Internal Acessors for RequestResourceType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal.RequestResourceType { get => this._requestResourceType; set { {_requestResourceType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal.RequestResourceType { get => this._requestResourceType; set { {_requestResourceType = value;} } } /// Internal Acessors for VaultCriticalOperation - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperationInternal.VaultCriticalOperation { get => this._vaultCriticalOperation; set { {_vaultCriticalOperation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperationInternal.VaultCriticalOperation { get => this._vaultCriticalOperation; set { {_vaultCriticalOperation = value;} } } /// Backing field for property. private string _requestResourceType; diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardOperation.json.cs index 8f1b66c10a1a..8922f6c35aac 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardOperation.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ResourceGuardOperation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ResourceGuardOperation /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ResourceGuardOperation /// /// 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. + /// 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. @@ -52,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.Api20210701.IResourceGuardOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ResourceGuardResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.PowerShell.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.PowerShell.cs index a32d4ac2e239..f48b930f78f9 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class ResourceGuardResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class ResourceGuardResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IResourceGuardResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardResource(content); } @@ -83,11 +85,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IResourceGuardResource 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.Api20220401.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. @@ -102,77 +104,77 @@ internal ResourceGuardResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ResourceGuardOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperationTypeConverter.ConvertFrom)); } - if (content.Contains("VaultCriticalOperationExclusionList")) + if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).VaultCriticalOperationExclusionList = (string[]) content.GetValueForProperty("VaultCriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).VaultCriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -187,71 +189,71 @@ internal ResourceGuardResource(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ResourceGuardOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardOperationTypeConverter.ConvertFrom)); } - if (content.Contains("VaultCriticalOperationExclusionList")) + if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).VaultCriticalOperationExclusionList = (string[]) content.GetValueForProperty("VaultCriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).VaultCriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.TypeConverter.cs index f26141417b96..c81a8fe2cab2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ResourceGuardResourceTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IResourceGuardResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.cs index b2e6c9e9ff59..7eabd895d29b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.cs @@ -3,136 +3,133 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class ResourceGuardResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResource(); /// 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.Api20210701.IResourceGuardInternal)Property).AllowAutoApproval; } + public bool? AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IResourceGuardInternal)Property).CriticalOperationExclusionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardInternal)Property).Description; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } /// Resource Id represents the complete path to the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } /// 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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } /// Internal Acessors for AllowAutoApproval - bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).AllowAutoApproval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).AllowAutoApproval = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal.AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).AllowAutoApproval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).AllowAutoApproval = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).Description = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuard()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuard()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuardOperation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).Operation = value; } - - /// Internal Acessors for VaultCriticalOperationExclusionList - string[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceInternal.VaultCriticalOperationExclusionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).VaultCriticalOperationExclusionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).VaultCriticalOperationExclusionList = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceInternal.ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard _property; /// ResourceGuardResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuard()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuard Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardOperation[] ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).Operation; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal)__dppTrackedResource).Type; } - - /// 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[] VaultCriticalOperationExclusionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardInternal)Property).VaultCriticalOperationExclusionList; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal)__dppTrackedResource).Type; } /// Creates an new instance. public ResourceGuardResource() @@ -144,7 +141,7 @@ public ResourceGuardResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -154,7 +151,7 @@ public ResourceGuardResource() } public partial interface IResourceGuardResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResource { /// This flag indicates whether auto approval is allowed or not. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -164,6 +161,14 @@ public partial interface IResourceGuardResource : SerializedName = @"allowAutoApprovals", PossibleTypes = new [] { typeof(bool) })] bool? AllowAutoApproval { get; } + /// List of critical operations which are not protected by this resourceGuard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of critical operations which are not protected by this resourceGuard", + SerializedName = @"vaultCriticalOperationExclusionList", + PossibleTypes = new [] { typeof(string) })] + string[] CriticalOperationExclusionList { get; set; } /// Description about the pre-req steps to perform all the critical operations. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -188,35 +193,27 @@ 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.Api20210701.IResourceGuardOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardOperation[] ResourceGuardOperation { get; } - /// List of critical operations which are not protected by this resourceGuard - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"List of critical operations which are not protected by this resourceGuard", - SerializedName = @"vaultCriticalOperationExclusionList", - PossibleTypes = new [] { typeof(string) })] - string[] VaultCriticalOperationExclusionList { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] ResourceGuardOperation { get; } } internal partial interface IResourceGuardResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceInternal { /// This flag indicates whether auto approval is allowed or not. bool? AllowAutoApproval { get; set; } + /// List of critical operations which are not protected by this resourceGuard + string[] CriticalOperationExclusionList { get; set; } /// Description about the pre-req steps to perform all the critical operations. string Description { get; set; } /// ResourceGuardResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuard Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardOperation[] ResourceGuardOperation { get; set; } - /// List of critical operations which are not protected by this resourceGuard - string[] VaultCriticalOperationExclusionList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardOperation[] ResourceGuardOperation { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResource.json.cs index fe9b2997a7ef..638844159f63 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class ResourceGuardResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class ResourceGuardResource /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class ResourceGuardResource /// /// 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. + /// 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. @@ -51,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.Api20210701.IResourceGuardResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -74,8 +76,8 @@ internal ResourceGuardResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection { return; } - __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuard.FromJson(__jsonProperties) : Property;} + __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DppTrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuard.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.PowerShell.cs index d673a26e7d32..7b578d46de5a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ResourceGuardResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ResourceGuardResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IResourceGuardResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardResourceList(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IResourceGuardResourceList 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.Api20220401.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. @@ -103,17 +105,17 @@ internal ResourceGuardResourceList(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -128,11 +130,11 @@ internal ResourceGuardResourceList(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.TypeConverter.cs index 83d8959a32b5..b2eec84d1636 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ResourceGuardResourceListTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IResourceGuardResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.cs index ae33394a6da8..e66a09aacb78 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of ResourceGuard resources public partial class ResourceGuardResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceList __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DppTrackedResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceList __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ResourceGuardResourceList() @@ -42,7 +42,7 @@ public ResourceGuardResourceList() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IDppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceGuardResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource[] Value { get; set; } } /// List of ResourceGuard resources internal partial interface IResourceGuardResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceGuardResourceList.json.cs index 223d22c87151..0e930591a801 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceGuardResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ResourceGuardResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ResourceGuardResourceList /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ResourceGuardResourceList /// /// 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. + /// 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. @@ -52,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.Api20210701.IResourceGuardResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceGuardResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,8 +77,8 @@ internal ResourceGuardResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.IResourceGuardResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ResourceGuardResource.FromJson(__u) )) ))() : null : Value;} + __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IResourceGuardResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.PowerShell.cs index b8d16df918cc..ebfab3a09a19 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ResourceMoveDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ResourceMoveDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IResourceMoveDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IResourceMoveDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceMoveDetails(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IResourceMoveDetails 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.Api20220401.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. @@ -101,29 +103,29 @@ internal ResourceMoveDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("StartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); } if (content.Contains("CompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("SourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); } if (content.Contains("TargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -138,23 +140,23 @@ internal ResourceMoveDetails(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("StartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); } if (content.Contains("CompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("SourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); } if (content.Contains("TargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.TypeConverter.cs index a5e63e00309a..6cb0ef43a640 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ResourceMoveDetailsTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IResourceMoveDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.cs index 94fe392e009d..84c40289ab29 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IResourceMoveDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ResourceMoveDetails.json.cs index 8a855211ba52..f6b6c4046ba6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ResourceMoveDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ResourceMoveDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ResourceMoveDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ResourceMoveDetails /// /// 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. + /// 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. @@ -52,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.Api20210701.IResourceMoveDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceMoveDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IResourceMoveDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RestorableTimeRange.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.PowerShell.cs index e6acf5dea057..18e48f9d13fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class RestorableTimeRange /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class RestorableTimeRange /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IRestorableTimeRange DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestorableTimeRange(content); } @@ -81,11 +83,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRestorableTimeRange 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.Api20220401.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. @@ -100,21 +102,21 @@ internal RestorableTimeRange(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -129,15 +131,15 @@ internal RestorableTimeRange(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.TypeConverter.cs index d9c83b0aa2b2..0f7a72e43623 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RestorableTimeRangeTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRestorableTimeRange ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.cs b/src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.cs index 34957753e474..462cef510c39 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestorableTimeRange : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRangeInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRangeInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestorableTimeRange.json.cs index f5139457eb1b..0faf159d1cc5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestorableTimeRange.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class RestorableTimeRange partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class RestorableTimeRange /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class RestorableTimeRange /// /// 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. + /// 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. @@ -51,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.Api20210701.IRestorableTimeRange. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestorableTimeRange. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestorableTimeRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RestoreFilesTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.PowerShell.cs index c5e63e7a74f9..86847f13c336 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RestoreFilesTargetInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RestoreFilesTargetInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRestoreFilesTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreFilesTargetInfo(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRestoreFilesTargetInfo 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.Api20220401.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. @@ -103,25 +105,25 @@ internal RestoreFilesTargetInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TargetDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetailsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -136,19 +138,19 @@ internal RestoreFilesTargetInfo(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("TargetDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetailsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.TypeConverter.cs index 21a248eedc2e..146dcce77240 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RestoreFilesTargetInfoTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.cs index 007009a2e69e..34aa0527a088 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IRestoreFilesTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase(); /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails _targetDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetails()); set => this._targetDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetails()); set => this._targetDetail = value; } /// Creates an new instance. public RestoreFilesTargetInfo() @@ -51,7 +51,7 @@ public RestoreFilesTargetInfo() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails TargetDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails TargetDetail { get; set; } } /// Class encapsulating restore as files target parameters internal partial interface IRestoreFilesTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal { /// Destination of RestoreAsFiles operation, when destination is not a datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails TargetDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails TargetDetail { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreFilesTargetInfo.json.cs index b1cb40205ed3..0e1936a168e0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreFilesTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RestoreFilesTargetInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RestoreFilesTargetInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RestoreFilesTargetInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IRestoreFilesTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreFilesTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreFilesTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,8 +77,8 @@ internal RestoreFilesTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase(json); - {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase(json); + {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.PowerShell.cs index be200e89064d..a0e566d460ec 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -30,7 +30,8 @@ public partial class RestoreJobRecoveryPointDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class RestoreJobRecoveryPointDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -52,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.Api20210701.IRestoreJobRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreJobRecoveryPointDetails(content); } @@ -83,11 +85,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRestoreJobRecoveryPointDetails 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.Api20220401.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. @@ -102,17 +104,17 @@ internal RestoreJobRecoveryPointDetails(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -127,11 +129,11 @@ internal RestoreJobRecoveryPointDetails(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RestoreJobRecoveryPointDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.TypeConverter.cs index 2317dc797554..c1910ae4c24e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RestoreJobRecoveryPointDetailsTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.cs index 28c5a8365619..cb3c961270ec 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestoreJobRecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreJobRecoveryPointDetails.json.cs index d3dd656c41a1..60abe0a0daa6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreJobRecoveryPointDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -19,7 +19,7 @@ public partial class RestoreJobRecoveryPointDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class RestoreJobRecoveryPointDetails /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class RestoreJobRecoveryPointDetails /// /// 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. + /// 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. @@ -51,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.Api20210701.IRestoreJobRecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreJobRecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreJobRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.PowerShell.cs index e2e02df204a1..0da6bc1011b4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RestoreTargetInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RestoreTargetInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfo(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRestoreTargetInfo 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.Api20220401.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. @@ -101,33 +103,33 @@ internal RestoreTargetInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -142,27 +144,27 @@ internal RestoreTargetInfo(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.TypeConverter.cs index 1e75d8693ffd..72df2f79d4f8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RestoreTargetInfoTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.cs index eb452eb80ba7..b5cc7a4155c5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class encapsulating restore target parameters public partial class RestoreTargetInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials()); set => this._datasourceAuthCredentials = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource _datasourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource()); set => this._datasourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource()); set => this._datasourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet _datasourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet()); set => this._datasourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet()); set => this._datasourceSetInfo = value; } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Creates an new instance. public RestoreTargetInfo() @@ -65,7 +65,7 @@ public RestoreTargetInfo() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource DatasourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DatasourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DatasourceSetInfo { get; set; } } /// Class encapsulating restore target parameters internal partial interface IRestoreTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal { /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Information of target DS - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasource DatasourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDatasourceSet DatasourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDatasourceSet DatasourceSetInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfo.json.cs index 575fac866e52..e0d6fa57ae7c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RestoreTargetInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RestoreTargetInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RestoreTargetInfo /// /// 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. + /// 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. @@ -52,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.Api20210701.IRestoreTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,10 +77,10 @@ internal RestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBase(json); - {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} - {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} - {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBase(json); + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.PowerShell.cs index 8f3ee029f133..3d1f12defa78 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RestoreTargetInfoBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RestoreTargetInfoBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRestoreTargetInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfoBase(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRestoreTargetInfoBase 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.Api20220401.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. @@ -103,21 +105,21 @@ internal RestoreTargetInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -132,15 +134,15 @@ internal RestoreTargetInfoBase(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.TypeConverter.cs index 39031a22fb1c..183f4d3f3ff3 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RestoreTargetInfoBaseTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.cs index 53e9377810fa..b32e1f29ed14 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IRestoreTargetInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal { /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } /// Backing field for property. private string _objectType; diff --git a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RestoreTargetInfoBase.json.cs index 287697ad812d..03b5c4bf6531 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RestoreTargetInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RestoreTargetInfoBase partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RestoreTargetInfoBase /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RestoreTargetInfoBase /// /// 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. + /// 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. @@ -52,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.Api20210701.IRestoreTargetInfoBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRestoreTargetInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/RetentionTag.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/RetentionTag.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/RetentionTag.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/RetentionTag.PowerShell.cs index c862fc601568..3775b88bb405 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class RetentionTag /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class RetentionTag /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IRetentionTag DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RetentionTag(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IRetentionTag 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.Api20220401.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. @@ -101,21 +103,21 @@ internal RetentionTag(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("TagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -130,15 +132,15 @@ internal RetentionTag(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("TagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/RetentionTag.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/RetentionTag.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/RetentionTag.TypeConverter.cs index 3d4c4ac8bc03..0eb8102c7da5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class RetentionTagTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IRetentionTag ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.cs b/src/DataProtection/generated/api/Models/Api20220401/RetentionTag.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/RetentionTag.cs rename to src/DataProtection/generated/api/Models/Api20220401/RetentionTag.cs index 371650170da6..8c7111d35ad1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Retention tag public partial class RetentionTag : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } /// Backing field for property. private string _tagName; diff --git a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.json.cs b/src/DataProtection/generated/api/Models/Api20220401/RetentionTag.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/RetentionTag.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/RetentionTag.json.cs index 34bed7fae1a7..351f2e583b0f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/RetentionTag.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class RetentionTag partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class RetentionTag /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RetentionTag /// /// 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. + /// 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. @@ -52,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.Api20210701.IRetentionTag. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ScheduleBasedBackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.PowerShell.cs index 93928783fea9..cc75b4590acc 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ScheduleBasedBackupCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ScheduleBasedBackupCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IScheduleBasedBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleBasedBackupCriteria(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IScheduleBasedBackupCriteria 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.Api20220401.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. @@ -103,37 +105,37 @@ internal ScheduleBasedBackupCriteria(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("AbsoluteCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DayTypeConverter.ConvertFrom)); } if (content.Contains("DaysOfTheWeek")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -148,31 +150,31 @@ internal ScheduleBasedBackupCriteria(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("AbsoluteCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DayTypeConverter.ConvertFrom)); } if (content.Contains("DaysOfTheWeek")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.TypeConverter.cs index 76792cf345dc..c7b2882dd13f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ScheduleBasedBackupCriteriaTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.cs index c521bf687fdf..0b8eee815fad 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based backup criteria public partial class ScheduleBasedBackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay[] _daysOfMonth; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay[] DaysOfMonth { get => this._daysOfMonth; set => this._daysOfMonth = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } /// Backing field for property. private global::System.DateTime[] _scheduleTime; @@ -78,7 +78,7 @@ public ScheduleBasedBackupCriteria() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDay[] DaysOfMonth { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDay) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay[] DaysOfMonth { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ScheduleBasedBackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedBackupCriteria.json.cs index 52a87469751c..84e780d3a581 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedBackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ScheduleBasedBackupCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ScheduleBasedBackupCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ScheduleBasedBackupCriteria /// /// 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. + /// 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. @@ -52,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.Api20210701.IScheduleBasedBackupCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,9 +77,9 @@ internal ScheduleBasedBackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteria(json); + __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ScheduleBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.PowerShell.cs index c0609ece2fc2..dd98ace333c2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ScheduleBasedTriggerContext /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ScheduleBasedTriggerContext /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IScheduleBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleBasedTriggerContext(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IScheduleBasedTriggerContext 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.Api20220401.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. @@ -103,29 +105,29 @@ internal ScheduleBasedTriggerContext(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Schedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupScheduleTypeConverter.ConvertFrom); } if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TaggingCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ScheduleRepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ScheduleTimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -140,23 +142,23 @@ internal ScheduleBasedTriggerContext(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Schedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupScheduleTypeConverter.ConvertFrom); } if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TaggingCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ScheduleRepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ScheduleTimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.TypeConverter.cs index fe7edd4aacfd..91969afb3e45 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ScheduleBasedTriggerContextTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.cs index 6f9070dc2462..9a809ad9272e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based trigger context public partial class ScheduleBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext(); /// Internal Acessors for Schedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupSchedule()); set { {_schedule = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)__triggerContext).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule _schedule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupSchedule()); set => this._schedule = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)Schedule).RepeatingTimeInterval = value ; } + public string[] ScheduleRepeatingTimeInterval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupScheduleInternal)Schedule).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupScheduleInternal)Schedule).TimeZone = value ?? null; } + public string ScheduleTimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)Schedule).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupScheduleInternal)Schedule).TimeZone = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria[] _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } /// Creates an new instance. public ScheduleBasedTriggerContext() @@ -58,7 +58,7 @@ public ScheduleBasedTriggerContext() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITaggingCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria[] TaggingCriterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria[] TaggingCriterion { get; set; } } /// Schedule based trigger context internal partial interface IScheduleBasedTriggerContextInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal { /// Schedule for this backup - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupSchedule Schedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITaggingCriteria[] TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria[] TaggingCriterion { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ScheduleBasedTriggerContext.json.cs index acf8ba3e6e6f..2659403e4b32 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ScheduleBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ScheduleBasedTriggerContext partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ScheduleBasedTriggerContext /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ScheduleBasedTriggerContext /// /// 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. + /// 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. @@ -52,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.Api20210701.IScheduleBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,9 +77,9 @@ internal ScheduleBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerContext(json); - {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerContext(json); + {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.PowerShell.cs index fab135ab1755..0f1773feb280 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SecretStoreBasedAuthCredentials /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SecretStoreBasedAuthCredentials /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ISecretStoreBasedAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISecretStoreBasedAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretStoreBasedAuthCredentials(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ISecretStoreBasedAuthCredentials 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.Api20220401.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. @@ -103,17 +105,17 @@ internal SecretStoreBasedAuthCredentials(global::System.Collections.IDictionary // actually deserialize if (content.Contains("SecretStoreResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResourceTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -128,11 +130,11 @@ internal SecretStoreBasedAuthCredentials(global::System.Management.Automation.PS // actually deserialize if (content.Contains("SecretStoreResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResourceTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.TypeConverter.cs index 77feb6098f0a..a19990978773 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SecretStoreBasedAuthCredentialsTypeConverter : global::Syst { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ISecretStoreBasedAuthCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.cs index 5e2223f07e65..d7ad10a215ba 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Secret store based authentication credentials. public partial class SecretStoreBasedAuthCredentials : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentials, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentialsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentialsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentials __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentials __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAuthCredentialsInternal)__authCredentials).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal)__authCredentials).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)__authCredentials).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal)__authCredentials).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource _secretStoreResource; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISecretStoreResource SecretStoreResource { get => (this._secretStoreResource = this._secretStoreResource ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource()); set => this._secretStoreResource = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource SecretStoreResource { get => (this._secretStoreResource = this._secretStoreResource ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource()); set => this._secretStoreResource = value; } /// Creates an new instance. public SecretStoreBasedAuthCredentials() @@ -40,7 +40,7 @@ public SecretStoreBasedAuthCredentials() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// 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) { @@ -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.Api20210701.IAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISecretStoreResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource SecretStoreResource { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource SecretStoreResource { get; set; } } /// Secret store based authentication credentials. internal partial interface ISecretStoreBasedAuthCredentialsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAuthCredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAuthCredentialsInternal { /// Secret store resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource SecretStoreResource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource SecretStoreResource { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreBasedAuthCredentials.json.cs index c3b51a5bcd46..15779ddee674 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreBasedAuthCredentials.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SecretStoreBasedAuthCredentials partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class SecretStoreBasedAuthCredentials /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SecretStoreBasedAuthCredentials /// /// 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. + /// 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. @@ -52,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.Api20210701.ISecretStoreBasedAuthCredentials. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreBasedAuthCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreBasedAuthCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,8 +77,8 @@ internal SecretStoreBasedAuthCredentials(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AuthCredentials(json); - {_secretStoreResource = If( json?.PropertyT("secretStoreResource"), out var __jsonSecretStoreResource) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.SecretStoreResource.FromJson(__jsonSecretStoreResource) : SecretStoreResource;} + __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AuthCredentials(json); + {_secretStoreResource = If( json?.PropertyT("secretStoreResource"), out var __jsonSecretStoreResource) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SecretStoreResource.FromJson(__jsonSecretStoreResource) : SecretStoreResource;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.PowerShell.cs index 3e757469c9de..8416ab8dfc97 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SecretStoreResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SecretStoreResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ISecretStoreResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISecretStoreResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretStoreResource(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ISecretStoreResource 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.Api20220401.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. @@ -101,17 +103,21 @@ internal SecretStoreResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("SecretStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -126,11 +132,15 @@ internal SecretStoreResource(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("SecretStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal)this).Value, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.TypeConverter.cs index ccba1bb64409..bb0b6f553ab6 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SecretStoreResourceTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ISecretStoreResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.cs index 6543b4bdc5ea..79baee9cda2b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.ISecretStoreResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResourceInternal { /// Backing field for property. @@ -27,6 +27,13 @@ public partial class SecretStoreResource : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string Uri { get => this._uri; set => this._uri = value; } + /// Backing field for property. + private string _value; + + /// Gets or sets value stored in secret store resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Value { get => this._value; set => this._value = value; } + /// Creates an new instance. public SecretStoreResource() { @@ -53,6 +60,14 @@ public partial interface ISecretStoreResource : SerializedName = @"uri", PossibleTypes = new [] { typeof(string) })] string Uri { get; set; } + /// Gets or sets value stored in secret store resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets or sets value stored in secret store resource", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + string Value { get; set; } } /// Class representing a secret store resource. @@ -63,6 +78,8 @@ internal partial interface ISecretStoreResourceInternal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType SecretStoreType { get; set; } /// Uri to get to the resource string Uri { get; set; } + /// Gets or sets value stored in secret store resource + string Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.json.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/SecretStoreResource.json.cs index 37ab4c00da0b..f9d2d29b26e5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SecretStoreResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SecretStoreResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class SecretStoreResource /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SecretStoreResource /// /// 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. + /// 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. @@ -52,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.Api20210701.ISecretStoreResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISecretStoreResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISecretStoreResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -77,6 +79,7 @@ internal SecretStoreResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} {_secretStoreType = If( json?.PropertyT("secretStoreType"), out var __jsonSecretStoreType) ? (string)__jsonSecretStoreType : (string)SecretStoreType;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} AfterFromJson(json); } @@ -101,6 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T } AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); AddIf( null != (((object)this._secretStoreType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._secretStoreType.ToString()) : null, "secretStoreType" ,container.Add ); + AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.PowerShell.cs index 3dd23ab21036..d1a796f454aa 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SourceLifeCycle /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SourceLifeCycle /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ISourceLifeCycle DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SourceLifeCycle(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ISourceLifeCycle 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.Api20220401.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. @@ -101,37 +103,37 @@ internal SourceLifeCycle(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DeleteAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOptionTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("TargetDataStoreCopySetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetCopySettingTypeConverter.ConvertFrom)); } if (content.Contains("DeleteAfterDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); } if (content.Contains("DeleteAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("SourceDataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -146,31 +148,31 @@ internal SourceLifeCycle(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DeleteAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOptionTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("TargetDataStoreCopySetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetCopySettingTypeConverter.ConvertFrom)); } if (content.Contains("DeleteAfterDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); } if (content.Contains("DeleteAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("SourceDataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.TypeConverter.cs index fe2f2102a6ac..96416c3a7bb5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SourceLifeCycleTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ISourceLifeCycle ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.cs b/src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.cs rename to src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.cs index 7c97ef943f80..00e40f3784ce 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Source LifeCycle public partial class SourceLifeCycle : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption _deleteAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption _deleteAfter; /// Delete Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption()); set => this._deleteAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)DeleteAfter).Duration = value ; } + public string DeleteAfterDuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } + public string DeleteAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } /// Internal Acessors for DeleteAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DeleteOption()); set { {_deleteAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOption()); set { {_deleteAfter = value;} } } /// Internal Acessors for SourceDataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase _sourceDataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase _sourceDataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set => this._sourceDataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType = value ; } + public string SourceDataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting[] _targetDataStoreCopySetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting[] _targetDataStoreCopySetting; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting[] TargetDataStoreCopySetting { get => this._targetDataStoreCopySetting; set => this._targetDataStoreCopySetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetCopySetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } /// Source LifeCycle @@ -112,19 +112,19 @@ internal partial interface ISourceLifeCycleInternal { /// Delete Option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDeleteOption DeleteAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBase SourceDataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/SourceLifeCycle.json.cs index ff24424e7184..262946162d10 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SourceLifeCycle.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SourceLifeCycle partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class SourceLifeCycle /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SourceLifeCycle /// /// 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. + /// 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. @@ -52,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.Api20210701.ISourceLifeCycle. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISourceLifeCycle FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} - {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20210701.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} + {_deleteAfter = If( json?.PropertyT("deleteAfter"), out var __jsonDeleteAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} + {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/StorageSetting.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20210701/StorageSetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/StorageSetting.PowerShell.cs index 9f0639c65f08..231845b40872 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class StorageSetting /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class StorageSetting /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IStorageSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageSetting(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IStorageSetting 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.Api20220401.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. @@ -101,17 +103,17 @@ internal StorageSetting(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatastoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -126,11 +128,11 @@ internal StorageSetting(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatastoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/StorageSetting.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/StorageSetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/StorageSetting.TypeConverter.cs index e7acfa695e6a..3a8d5033af53 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class StorageSettingTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IStorageSetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.cs b/src/DataProtection/generated/api/Models/Api20220401/StorageSetting.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20210701/StorageSetting.cs rename to src/DataProtection/generated/api/Models/Api20220401/StorageSetting.cs index 0a94ee572579..edebc644ad24 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Storage setting public partial class StorageSetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSettingInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.json.cs b/src/DataProtection/generated/api/Models/Api20220401/StorageSetting.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/StorageSetting.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/StorageSetting.json.cs index f519120d74e9..48e084d9d6f2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/StorageSetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class StorageSetting partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class StorageSetting /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class StorageSetting /// /// 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. + /// 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. @@ -52,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.Api20210701.IStorageSetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/SupportedFeature.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.PowerShell.cs index 9297fee35112..568ff3098a80 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SupportedFeature /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SupportedFeature /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ISupportedFeature DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SupportedFeature(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ISupportedFeature 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.Api20220401.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. @@ -101,21 +103,21 @@ internal SupportedFeature(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("SupportStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); } if (content.Contains("ExposureControlledFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -130,15 +132,15 @@ internal SupportedFeature(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("SupportStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); } if (content.Contains("ExposureControlledFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.TypeConverter.cs index 7e4df4add5b9..dd69a34c0d20 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SupportedFeatureTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ISupportedFeature ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.cs b/src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.cs rename to src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.cs index e005ccda5059..bfc189ad16df 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Elements class for feature request public partial class SupportedFeature : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeatureInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeatureInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/SupportedFeature.json.cs index fe1b446dfa96..0752f9502141 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SupportedFeature.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SupportedFeature partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class SupportedFeature /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SupportedFeature /// /// 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. + /// 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. @@ -52,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.Api20210701.ISupportedFeature. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISupportedFeature. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISupportedFeature FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20220401/SyncBackupInstanceRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.PowerShell.cs new file mode 100644 index 000000000000..09be99639328 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Sync BackupInstance Request + [System.ComponentModel.TypeConverter(typeof(SyncBackupInstanceRequestTypeConverter))] + public partial class SyncBackupInstanceRequest + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20220401.ISyncBackupInstanceRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SyncBackupInstanceRequest(content); + } + + /// + /// Deserializes a 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.Api20220401.ISyncBackupInstanceRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SyncBackupInstanceRequest(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20220401.ISyncBackupInstanceRequest 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 SyncBackupInstanceRequest(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SyncBackupInstanceRequest(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.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(); + } + /// Sync BackupInstance Request + [System.ComponentModel.TypeConverter(typeof(SyncBackupInstanceRequestTypeConverter))] + public partial interface ISyncBackupInstanceRequest + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.TypeConverter.cs new file mode 100644 index 000000000000..227487cc7dca --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.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.Api20220401 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SyncBackupInstanceRequestTypeConverter : 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.Api20220401.ISyncBackupInstanceRequest ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequest).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SyncBackupInstanceRequest.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SyncBackupInstanceRequest.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SyncBackupInstanceRequest.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/Api20220401/SyncBackupInstanceRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.cs new file mode 100644 index 000000000000..66fd47adf34f --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Sync BackupInstance Request + public partial class SyncBackupInstanceRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequestInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType? _syncType; + + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType? SyncType { get => this._syncType; set => this._syncType = value; } + + /// Creates an new instance. + public SyncBackupInstanceRequest() + { + + } + } + /// Sync BackupInstance Request + public partial interface ISyncBackupInstanceRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Field indicating sync type e.g. to sync only in case of failure or in all cases", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType? SyncType { get; set; } + + } + /// Sync BackupInstance Request + internal partial interface ISyncBackupInstanceRequestInternal + + { + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType? SyncType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.json.cs new file mode 100644 index 000000000000..ef032be0a791 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20220401/SyncBackupInstanceRequest.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.Api20220401 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Sync BackupInstance Request + public partial class SyncBackupInstanceRequest + { + + /// + /// 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.Api20220401.ISyncBackupInstanceRequest. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequest. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; + } + + /// + /// 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 SyncBackupInstanceRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_syncType = If( json?.PropertyT("syncType"), out var __jsonSyncType) ? (string)__jsonSyncType : (string)SyncType;} + 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._syncType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._syncType.ToString()) : null, "syncType" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/SystemData.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/SystemData.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SystemData.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/SystemData.PowerShell.cs index 0fa070595336..337ed1c686d1 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SystemData.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SystemData /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SystemData /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ISystemData 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.Api20220401.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. @@ -101,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -142,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/SystemData.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/SystemData.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/SystemData.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/SystemData.TypeConverter.cs index 865993a859ad..bf1962b6f6c2 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SystemData.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,19 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/SystemData.cs b/src/DataProtection/generated/api/Models/Api20220401/SystemData.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20210701/SystemData.cs rename to src/DataProtection/generated/api/Models/Api20220401/SystemData.cs index ef3e74a277b4..484ba5b8832c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SystemData.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemDataInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/SystemData.json.cs b/src/DataProtection/generated/api/Models/Api20220401/SystemData.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20210701/SystemData.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/SystemData.json.cs index 57ff6cf1fdb9..23441d13754f 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/SystemData.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class SystemData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class SystemData /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SystemData /// /// 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. + /// 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. @@ -52,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.Api20210701.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/TaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.PowerShell.cs index 8dde4349c21c..1cea266228db 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TaggingCriteria /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TaggingCriteria /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ITaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TaggingCriteria(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ITaggingCriteria 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.Api20220401.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. @@ -101,37 +103,37 @@ internal TaggingCriteria(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("Criterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaggingPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -146,31 +148,31 @@ internal TaggingCriteria(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("Criterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaggingPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.TypeConverter.cs index 78db9105bb1d..161bd00dd7fe 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TaggingCriteriaTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ITaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.cs index 17cbd8c8a268..4eee8acc4808 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Tagging criteria public partial class TaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria[] _criterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria[] Criterion { get => this._criterion; set => this._criterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTagInternal)TagInfo).TagName = value ; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IScheduleBasedBackupCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupCriteria[] Criterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupCriteria[] Criterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupCriteria[] Criterion { get; set; } /// Specifies if tag is default. bool IsDefault { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/TaggingCriteria.json.cs index 1b4ddc03acf2..13d5daf74c51 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class TaggingCriteria partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class TaggingCriteria /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TaggingCriteria /// /// 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. + /// 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. @@ -52,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.Api20210701.ITaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.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.Api20210701.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupCriteria.FromJson(__u) )) ))() : null : Criterion;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20220401.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/TargetCopySetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.PowerShell.cs index e60201b8f301..0af8039f6153 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TargetCopySetting /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TargetCopySetting /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ITargetCopySetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetCopySetting(content); } @@ -82,11 +84,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ITargetCopySetting 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.Api20220401.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. @@ -101,29 +103,29 @@ internal TargetCopySetting(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CopyAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOptionTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("CopyAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -138,23 +140,23 @@ internal TargetCopySetting(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("CopyAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOptionTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("CopyAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.TypeConverter.cs index 7565510a73b7..2bd7336ca577 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TargetCopySettingTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ITargetCopySetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.cs index 354caa8bb326..3908d5e9c620 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Target copy settings public partial class TargetCopySetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption _copyAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption()); set => this._copyAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOptionInternal)CopyAfter).ObjectType = value ; } + public string CopyAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOptionInternal)CopyAfter).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for CopyAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CopyOption()); set { {_copyAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption()); set { {_copyAfter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ICopyOption CopyAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/TargetCopySetting.json.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.json.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetCopySetting.json.cs index 3917f5748cdb..a110dee02ad8 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetCopySetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class TargetCopySetting partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class TargetCopySetting /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TargetCopySetting /// /// 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. + /// 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. @@ -52,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.Api20210701.ITargetCopySetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetCopySetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetCopySetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -75,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.Api20210701.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_copyAfter = If( json?.PropertyT("copyAfter"), out var __jsonCopyAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetDetails.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/TargetDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetDetails.PowerShell.cs index 6189d69d1f5b..b3e45669d9f5 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class TargetDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class TargetDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,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.Api20210701.ITargetDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDetails(content); } @@ -84,11 +86,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ITargetDetails 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.Api20220401.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. @@ -103,21 +105,21 @@ internal TargetDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FilePrefix")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); } if (content.Contains("RestoreTargetLocationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); } if (content.Contains("Url")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +134,15 @@ internal TargetDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FilePrefix")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); } if (content.Contains("RestoreTargetLocationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); } if (content.Contains("Url")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetDetails.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TargetDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetDetails.TypeConverter.cs index d86ad5025529..b21b5c5d5bc0 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TargetDetailsTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ITargetDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetDetails.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/TargetDetails.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetDetails.cs index eaaaf454c7ee..e34562acd65a 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 /// Class encapsulating target details, used where the destination is not a datasource /// public partial class TargetDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.json.cs b/src/DataProtection/generated/api/Models/Api20220401/TargetDetails.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20210701/TargetDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/TargetDetails.json.cs index b9d822d2a57d..125efb21e1be 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TargetDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class TargetDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -32,7 +32,8 @@ public partial class TargetDetails /// /// 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. + /// If you wish 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. @@ -44,7 +45,8 @@ public partial class TargetDetails /// /// 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. + /// 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. @@ -54,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.Api20210701.ITargetDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITargetDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITargetDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new TargetDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.PowerShell.cs index 6c898310caec..6c00a2ca729c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TriggerBackupRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TriggerBackupRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ITriggerBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerBackupRequest(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ITriggerBackupRequest 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.Api20220401.ITriggerBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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,25 +110,25 @@ internal TriggerBackupRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupRuleOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionTriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionRuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -141,19 +143,19 @@ internal TriggerBackupRequest(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("BackupRuleOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionTriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionRuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.TypeConverter.cs index 0b1f6112f64f..9d24f3c3343b 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TriggerBackupRequestTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.cs index 52ba2c145454..6d49d76ec8bd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger backup request public partial class TriggerBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions _backupRuleOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptions()); set => this._backupRuleOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } + public string BackupRuleOptionRuleName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } /// Internal Acessors for BackupRuleOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } /// Internal Acessors for BackupRuleOptionTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAdHocBackupRuleOptions BackupRuleOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdHocBackupRuleOptions BackupRuleOption { get; set; } string BackupRuleOptionRuleName { get; set; } /// Adhoc backup trigger option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerBackupRequest.json.cs index eb7009c37b61..eb447e5a187c 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class TriggerBackupRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class TriggerBackupRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TriggerBackupRequest /// /// 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. + /// 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. @@ -52,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.Api20210701.ITriggerBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -99,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.Api20210701.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} + {_backupRuleOption = If( json?.PropertyT("backupRuleOptions"), out var __jsonBackupRuleOptions) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerContext.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerContext.PowerShell.cs index 4bf4dd0fdc04..fead72706e5d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TriggerContext /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TriggerContext /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.ITriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerContext(content); } @@ -82,8 +84,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.ITriggerContext 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.Api20220401.ITriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -91,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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. @@ -106,13 +108,13 @@ internal TriggerContext(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -127,7 +129,7 @@ internal TriggerContext(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerContext.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerContext.TypeConverter.cs index 01e5e3c0a659..b59701d78429 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class TriggerContextTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.ITriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerContext.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerContext.cs index f9e9b31621b4..0976cede2fff 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger context public partial class TriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContextInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20220401/TriggerContext.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/TriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/TriggerContext.json.cs index 02d729a24c98..cc5bca3cad97 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/TriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class TriggerContext partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class TriggerContext /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TriggerContext /// /// 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. + /// 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. @@ -52,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.Api20210701.ITriggerContext. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.ITriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ITriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/UserFacingError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingError.PowerShell.cs similarity index 73% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingError.PowerShell.cs index 95ea2da4759f..61efc7608dd4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class UserFacingError /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class UserFacingError /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,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.Api20210701.IUserFacingError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingError(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IUserFacingError 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.Api20220401.IUserFacingError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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,45 +110,45 @@ internal UserFacingError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("InnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorTypeConverter.ConvertFrom); } if (content.Contains("IsRetryable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsUserError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("RecommendedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -161,39 +163,39 @@ internal UserFacingError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("InnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.InnerErrorTypeConverter.ConvertFrom); } if (content.Contains("IsRetryable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsUserError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("RecommendedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingError.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingError.TypeConverter.cs index 000a7568bae7..8375e8a001bb 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class UserFacingErrorTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IUserFacingError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingError.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingError.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingError.cs index 27f5803629f1..33b9a6cc5159 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 /// 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.Api20210701.IUserFacingError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError _innerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError _innerError; /// Inner Error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.InnerError()); set => this._innerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingErrorProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingErrorProperties()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError InnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingErrorProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError[] Detail { get; set; } /// Inner Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IInnerError InnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingErrorProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties Property { get; set; } /// RecommendedAction � localized. string[] RecommendedAction { get; set; } /// Target of the error. diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.json.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingError.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingError.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingError.json.cs index ca2f2634ab79..023b3dbb7e0d 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -22,7 +22,7 @@ public partial class UserFacingError partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -32,7 +32,8 @@ public partial class UserFacingError /// /// 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. + /// If you wish 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. @@ -44,7 +45,8 @@ public partial class UserFacingError /// /// 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. + /// 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. @@ -54,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.Api20210701.IUserFacingError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -126,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.Api20210701.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.UserFacingError.FromJson(__u) )) ))() : null : Detail;} - {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.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.Api20220401.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingError.FromJson(__u) )) ))() : null : Detail;} + {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.UserFacingErrorProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/UserFacingErrorProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.PowerShell.cs index 9c08519d60d2..76925cebed05 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class UserFacingErrorProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class UserFacingErrorProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IUserFacingErrorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingErrorProperties(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IUserFacingErrorProperties 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.Api20220401.IUserFacingErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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. @@ -112,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/Api20210701/UserFacingErrorProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.TypeConverter.cs index 289744f0bb44..63481ffaee84 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class UserFacingErrorPropertiesTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.cs index 988b094797de..d9f7396fbff4 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.IUserFacingErrorProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorPropertiesInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.dictionary.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.dictionary.cs index e1dbc3fca07a..9a2cbfe5a5cd 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { 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.Api20210701.UserFacingErrorProperties source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.UserFacingErrorProperties source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.json.cs b/src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.json.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/UserFacingErrorProperties.json.cs index d048691c0cd3..355b920d1322 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/UserFacingErrorProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class UserFacingErrorProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class UserFacingErrorProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class UserFacingErrorProperties /// /// 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. + /// 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. @@ -52,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.Api20210701.IUserFacingErrorProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IUserFacingErrorProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IUserFacingErrorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/Api20210701/ValidateForBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.PowerShell.cs index e89ab406cf50..6827be191c69 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ValidateForBackupRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ValidateForBackupRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IValidateForBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateForBackupRequest(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IValidateForBackupRequest 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.Api20220401.IValidateForBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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 +110,13 @@ internal ValidateForBackupRequest(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("BackupInstance")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -129,7 +131,7 @@ internal ValidateForBackupRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("BackupInstance")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.TypeConverter.cs index 328f3ca18295..260899171f9e 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ValidateForBackupRequestTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.cs index a19038c7f83d..bfe286530daf 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate for backup request public partial class ValidateForBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance _backupInstance; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance _backupInstance; /// Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstance()); set => this._backupInstance = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance BackupInstance { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance BackupInstance { get; set; } } /// Validate for backup request @@ -45,7 +45,7 @@ internal partial interface IValidateForBackupRequestInternal { /// Backup Instance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance BackupInstance { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance BackupInstance { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateForBackupRequest.json.cs index 7ced370790f8..436e01d33f90 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateForBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ValidateForBackupRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ValidateForBackupRequest /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ValidateForBackupRequest /// /// 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. + /// 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. @@ -52,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.Api20210701.IValidateForBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -99,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.Api20210701.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} + {_backupInstance = If( json?.PropertyT("backupInstance"), out var __jsonBackupInstance) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.PowerShell.cs index 74722e5d39e0..2a4f970d7f42 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ValidateRestoreRequestObject /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ValidateRestoreRequestObject /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,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.Api20210701.IValidateRestoreRequestObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateRestoreRequestObject(content); } @@ -84,8 +86,8 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 /// Creates a new instance of , deserializing the content from a 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.Api20210701.IValidateRestoreRequestObject 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.Api20220401.IValidateRestoreRequestObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202107 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,25 +110,29 @@ internal ValidateRestoreRequestObject(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("RestoreRequestObject")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequestTypeConverter.ConvertFrom); } if (content.Contains("RestoreRequestObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreRequestObjectRestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("RestoreRequestObjectSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("RestoreRequestObjectSourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceResourceId = (string) content.GetValueForProperty("RestoreRequestObjectSourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -141,19 +147,23 @@ internal ValidateRestoreRequestObject(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("RestoreRequestObject")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequestTypeConverter.ConvertFrom); } if (content.Contains("RestoreRequestObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType = (string) content.GetValueForProperty("RestoreRequestObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreRequestObjectRestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreRequestObjectRestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectRestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("RestoreRequestObjectSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("RestoreRequestObjectSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + } + if (content.Contains("RestoreRequestObjectSourceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceResourceId = (string) content.GetValueForProperty("RestoreRequestObjectSourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal)this).RestoreRequestObjectSourceResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.TypeConverter.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.TypeConverter.cs index 3509adf978d5..2cf791d21268 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ValidateRestoreRequestObjectTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// 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.Api20210701.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.cs similarity index 67% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.cs index f2c10fbcfa13..b1d89dafc5db 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.cs @@ -3,36 +3,42 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate restore request object public partial class ValidateRestoreRequestObject : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObject, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal { /// Internal Acessors for RestoreRequestObject - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObjectInternal.RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest()); set { {_restoreRequestObject = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObjectInternal.RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest()); set { {_restoreRequestObject = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest _restoreRequestObject; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest _restoreRequestObject; /// Gets or sets the restore request object. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).RestoreTargetInfo = value ; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).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.Inlined)] - public string RestoreRequestObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType = value ; } + public string RestoreRequestObjectSourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).SourceResourceId = value ?? null; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string RestoreRequestObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequestInternal)RestoreRequestObject).ObjectType = value ; } /// Creates an new instance. public ValidateRestoreRequestObject() @@ -50,8 +56,8 @@ public partial interface IValidateRestoreRequestObject : ReadOnly = false, Description = @"Gets or sets the restore target information.", SerializedName = @"restoreTargetInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -60,6 +66,16 @@ public partial interface IValidateRestoreRequestObject : SerializedName = @"sourceDataStoreType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get; set; } + /// + /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Fully qualified Azure Resource Manager ID of the datasource which is being recovered.", + SerializedName = @"sourceResourceId", + PossibleTypes = new [] { typeof(string) })] + string RestoreRequestObjectSourceResourceId { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -75,11 +91,15 @@ internal partial interface IValidateRestoreRequestObjectInternal { /// Gets or sets the restore request object. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } /// Gets or sets the restore target information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase RestoreRequestObjectRestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType RestoreRequestObjectSourceDataStoreType { get; set; } + /// + /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + /// + string RestoreRequestObjectSourceResourceId { get; set; } string RestoreRequestObjectType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.json.cs b/src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.json.cs rename to src/DataProtection/generated/api/Models/Api20220401/ValidateRestoreRequestObject.json.cs index 6a5405b81443..2f2d34c90026 100644 --- a/src/DataProtection/generated/api/Models/Api20210701/ValidateRestoreRequestObject.json.cs +++ b/src/DataProtection/generated/api/Models/Api20220401/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.Api20210701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -20,7 +20,7 @@ public partial class ValidateRestoreRequestObject partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -30,7 +30,8 @@ public partial class ValidateRestoreRequestObject /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ValidateRestoreRequestObject /// /// 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. + /// 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. @@ -52,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.Api20210701.IValidateRestoreRequestObject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateRestoreRequestObject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateRestoreRequestObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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; } @@ -99,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.Api20210701.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} + {_restoreRequestObject = If( json?.PropertyT("restoreRequestObject"), out var __jsonRestoreRequestObject) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.PowerShell.cs index 66e2996af23d..c3b55fae98e1 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesAdhocBackupAcceptedResponseHeaders 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/BackupInstancesAdhocBackupAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.TypeConverter.cs index 65d9741b99e8..ef273c2f667b 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeadersTypeConver { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.json.cs index c3357479749b..e822e3ed6460 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesAdhocBackupAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesAdhocBackupAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..763b3714052a --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesCreateOrUpdateAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesCreateOrUpdateAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesCreateOrUpdateAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesCreateOrUpdateAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).AzureAsyncOperation, 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.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesCreateOrUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesCreateOrUpdateAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders 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(BackupInstancesCreateOrUpdateAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesCreateOrUpdateAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..eba28e26b778 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesCreateOrUpdateAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesCreateOrUpdateAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesCreateOrUpdateAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesCreateOrUpdateAcceptedResponseHeaders.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/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..3764ebd8f027 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesCreateOrUpdateAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesCreateOrUpdateAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + } + } + public partial interface IBackupInstancesCreateOrUpdateAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IBackupInstancesCreateOrUpdateAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..795c333a78ec --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesCreateOrUpdateAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesCreateOrUpdateAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesCreateOrUpdateAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesCreateOrUpdateAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesCreateOrUpdateAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.PowerShell.cs index 7f2c63deed70..75de3de5c1df 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesDeleteAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesDeleteAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesDeleteAcceptedResponseHeaders 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/BackupInstancesDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.TypeConverter.cs index acbba4ffe73b..0feed8d539c6 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesDeleteAcceptedResponseHeadersTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,8 +102,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.json.cs index 9cb45a9038e5..dfc480f29424 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesDeleteAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesDeleteAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesDeleteAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesDeleteAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..d1b4389f4b31 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesResumeBackupsAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesResumeBackupsAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesResumeBackupsAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesResumeBackupsAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesResumeBackupsAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesResumeBackupsAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesResumeBackupsAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesResumeBackupsAcceptedResponseHeaders 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(BackupInstancesResumeBackupsAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesResumeBackupsAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..7d82afe8fa2f --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesResumeBackupsAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesResumeBackupsAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesResumeBackupsAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesResumeBackupsAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesResumeBackupsAcceptedResponseHeaders.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/BackupInstancesResumeBackupsAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..1a78270d3a1a --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesResumeBackupsAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesResumeBackupsAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader2)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader2) is string __headerRetryAfterHeader2 ? int.TryParse( __headerRetryAfterHeader2, out int __headerRetryAfterHeader2Value ) ? __headerRetryAfterHeader2Value : default(int?) : default(int?); + } + } + } + public partial interface IBackupInstancesResumeBackupsAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } + + } + internal partial interface IBackupInstancesResumeBackupsAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + int? RetryAfter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..dc562b5fd5a2 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeBackupsAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesResumeBackupsAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesResumeBackupsAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeBackupsAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesResumeBackupsAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..c03254612763 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesResumeProtectionAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesResumeProtectionAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesResumeProtectionAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesResumeProtectionAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesResumeProtectionAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesResumeProtectionAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesResumeProtectionAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesResumeProtectionAcceptedResponseHeaders 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(BackupInstancesResumeProtectionAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesResumeProtectionAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..bef545b27d9d --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesResumeProtectionAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesResumeProtectionAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesResumeProtectionAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesResumeProtectionAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesResumeProtectionAcceptedResponseHeaders.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/BackupInstancesResumeProtectionAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..dbc9bdab9819 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesResumeProtectionAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesResumeProtectionAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader2)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader2) is string __headerRetryAfterHeader2 ? int.TryParse( __headerRetryAfterHeader2, out int __headerRetryAfterHeader2Value ) ? __headerRetryAfterHeader2Value : default(int?) : default(int?); + } + } + } + public partial interface IBackupInstancesResumeProtectionAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } + + } + internal partial interface IBackupInstancesResumeProtectionAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + int? RetryAfter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..6d1909ed18fa --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesResumeProtectionAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesResumeProtectionAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesResumeProtectionAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesResumeProtectionAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesResumeProtectionAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..f3a268504e0e --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesStopProtectionAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesStopProtectionAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesStopProtectionAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesStopProtectionAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesStopProtectionAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesStopProtectionAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesStopProtectionAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesStopProtectionAcceptedResponseHeaders 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(BackupInstancesStopProtectionAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesStopProtectionAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..f47a2b080345 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesStopProtectionAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesStopProtectionAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesStopProtectionAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesStopProtectionAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesStopProtectionAcceptedResponseHeaders.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/BackupInstancesStopProtectionAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..232424f5a3d7 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesStopProtectionAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesStopProtectionAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader2)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeadersInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader2) is string __headerRetryAfterHeader2 ? int.TryParse( __headerRetryAfterHeader2, out int __headerRetryAfterHeader2Value ) ? __headerRetryAfterHeader2Value : default(int?) : default(int?); + } + } + } + public partial interface IBackupInstancesStopProtectionAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } + + } + internal partial interface IBackupInstancesStopProtectionAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + int? RetryAfter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..52571d5b06f7 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesStopProtectionAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesStopProtectionAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesStopProtectionAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesStopProtectionAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesStopProtectionAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..c388b8e2f631 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesSuspendBackupsAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesSuspendBackupsAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesSuspendBackupsAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesSuspendBackupsAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesSuspendBackupsAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesSuspendBackupsAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesSuspendBackupsAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesSuspendBackupsAcceptedResponseHeaders 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(BackupInstancesSuspendBackupsAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesSuspendBackupsAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..f291bd609e43 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesSuspendBackupsAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesSuspendBackupsAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesSuspendBackupsAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesSuspendBackupsAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesSuspendBackupsAcceptedResponseHeaders.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/BackupInstancesSuspendBackupsAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..6cf0bd7ec074 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesSuspendBackupsAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesSuspendBackupsAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader2)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader2) is string __headerRetryAfterHeader2 ? int.TryParse( __headerRetryAfterHeader2, out int __headerRetryAfterHeader2Value ) ? __headerRetryAfterHeader2Value : default(int?) : default(int?); + } + } + } + public partial interface IBackupInstancesSuspendBackupsAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } + + } + internal partial interface IBackupInstancesSuspendBackupsAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + int? RetryAfter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..ef732a521e07 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSuspendBackupsAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesSuspendBackupsAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesSuspendBackupsAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSuspendBackupsAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesSuspendBackupsAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..38b85861e3bb --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,163 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(BackupInstancesSyncBackupInstanceAcceptedResponseHeadersTypeConverter))] + public partial class BackupInstancesSyncBackupInstanceAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AzureAsyncOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).AzureAsyncOperation = (string) content.GetValueForProperty("AzureAsyncOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).AzureAsyncOperation, global::System.Convert.ToString); + } + if (content.Contains("RetryAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).RetryAfter = (int?) content.GetValueForProperty("RetryAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).RetryAfter, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a 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.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a 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.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders 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(BackupInstancesSyncBackupInstanceAcceptedResponseHeadersTypeConverter))] + public partial interface IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..4a6dce44b0f6 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BackupInstancesSyncBackupInstanceAcceptedResponseHeadersTypeConverter : 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.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.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/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.cs b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..395a72ba9874 --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesSyncBackupInstanceAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _azureAsyncOperation; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string AzureAsyncOperation { get => this._azureAsyncOperation; set => this._azureAsyncOperation = value; } + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private int? _retryAfter; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public int? RetryAfter { get => this._retryAfter; set => this._retryAfter = value; } + + /// + /// Creates an new instance. + /// + public BackupInstancesSyncBackupInstanceAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + if (headers.TryGetValues("Azure-AsyncOperation", out var __azureAsyncOperationHeader1)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).AzureAsyncOperation = System.Linq.Enumerable.FirstOrDefault(__azureAsyncOperationHeader1) is string __headerAzureAsyncOperationHeader1 ? __headerAzureAsyncOperationHeader1 : (string)null; + } + if (headers.TryGetValues("Retry-After", out var __retryAfterHeader2)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal)this).RetryAfter = System.Linq.Enumerable.FirstOrDefault(__retryAfterHeader2) is string __headerRetryAfterHeader2 ? int.TryParse( __headerRetryAfterHeader2, out int __headerRetryAfterHeader2Value ) ? __headerRetryAfterHeader2Value : default(int?) : default(int?); + } + } + } + public partial interface IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Azure-AsyncOperation", + PossibleTypes = new [] { typeof(string) })] + string AzureAsyncOperation { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Retry-After", + PossibleTypes = new [] { typeof(int) })] + int? RetryAfter { get; set; } + + } + internal partial interface IBackupInstancesSyncBackupInstanceAcceptedResponseHeadersInternal + + { + string AzureAsyncOperation { get; set; } + + string Location { get; set; } + + int? RetryAfter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..1f1f6708653c --- /dev/null +++ b/src/DataProtection/generated/api/Models/BackupInstancesSyncBackupInstanceAcceptedResponseHeaders.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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class BackupInstancesSyncBackupInstanceAcceptedResponseHeaders + { + + /// + /// 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 BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesSyncBackupInstanceAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new BackupInstancesSyncBackupInstanceAcceptedResponseHeaders(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; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.PowerShell.cs index fa2922310d0d..27861eeb492b 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesTriggerRehydrateAcceptedResponseHeaders 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/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.TypeConverter.cs index 1fe5b322ee91..5f12ffa78d1d 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeadersTypeC { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.json.cs index 36d8d6be766c..00df4db2d7e6 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRehydrateAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesTriggerRehydrateAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.PowerShell.cs index 88b81905f969..c2fb0062cb0c 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesTriggerRestoreAcceptedResponseHeaders 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/BackupInstancesTriggerRestoreAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.TypeConverter.cs index a7ebbc57c237..c8924e162a1f 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeadersTypeCon { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.json.cs index dfc68b8db5ee..ec64915b6a26 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesTriggerRestoreAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesTriggerRestoreAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.PowerShell.cs index 9a7aa9c12b83..ead6c25c27d5 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesValidateForBackupAcceptedResponseHeaders 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/BackupInstancesValidateForBackupAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.TypeConverter.cs index 76f70ab9c411..e10de9398c3e 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeadersType { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.json.cs index 213b25bba946..80ea096e1885 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForBackupAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesValidateForBackupAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.PowerShell.cs index 3d221915d5ac..19cabf0100e5 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupIn /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupInstancesValidateForRestoreAcceptedResponseHeaders 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/BackupInstancesValidateForRestoreAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.TypeConverter.cs index d5d1dd7b454a..1550696c511c 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeadersTyp { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.json.cs index 9f724ce9e28b..56d97f844b55 100644 --- a/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupInstancesValidateForRestoreAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupInstancesValidateForRestoreAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.PowerShell.cs index 5379a109e3aa..c6e266232273 100644 --- a/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,7 +144,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupVa /// from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IBackupVaultOperationResultsGetAcceptedResponseHeaders 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/BackupVaultOperationResultsGetAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.TypeConverter.cs index 3b7376267191..29d9920b1ab9 100644 --- a/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeadersTypeCo { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -102,8 +103,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.json.cs index 143bf6c8f767..bc5f0cf5352d 100644 --- a/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/BackupVaultOperationResultsGetAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class BackupVaultOperationResultsGetAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/DataProtectionIdentity.PowerShell.cs b/src/DataProtection/generated/api/Models/DataProtectionIdentity.PowerShell.cs index ac25560ff638..7516f2e2f8f5 100644 --- a/src/DataProtection/generated/api/Models/DataProtectionIdentity.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/DataProtectionIdentity.PowerShell.cs @@ -30,7 +30,8 @@ public partial class DataProtectionIdentity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class DataProtectionIdentity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -211,7 +213,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProt /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity 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/DataProtectionIdentity.TypeConverter.cs b/src/DataProtection/generated/api/Models/DataProtectionIdentity.TypeConverter.cs index 69731332b35f..1f10e17a2260 100644 --- a/src/DataProtection/generated/api/Models/DataProtectionIdentity.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/DataProtectionIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class DataProtectionIdentityTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DataProtection/generated/api/Models/DataProtectionIdentity.json.cs b/src/DataProtection/generated/api/Models/DataProtectionIdentity.json.cs index 9ebaa17ed7e4..cd0320d8885c 100644 --- a/src/DataProtection/generated/api/Models/DataProtectionIdentity.json.cs +++ b/src/DataProtection/generated/api/Models/DataProtectionIdentity.json.cs @@ -19,7 +19,7 @@ public partial class DataProtectionIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class DataProtectionIdentity /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class DataProtectionIdentity /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.PowerShell.cs index ba1073dbed70..89e814d6f800 100644 --- a/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class ExportJobsTriggerAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class ExportJobsTriggerAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,7 +136,9 @@ internal ExportJobsTriggerAcceptedResponseHeaders(global::System.Management.Auto /// string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IExportJobsTriggerAcceptedResponseHeaders 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/ExportJobsTriggerAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.TypeConverter.cs index 5ed635ce4447..66832c099f73 100644 --- a/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class ExportJobsTriggerAcceptedResponseHeadersTypeConverter : glo { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,8 +102,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.json.cs index 007ad90b0e19..acc606c79964 100644 --- a/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/ExportJobsTriggerAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class ExportJobsTriggerAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class ExportJobsTriggerAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class ExportJobsTriggerAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.PowerShell.cs index cc6c33a9aa74..dd1b4bea2a24 100644 --- a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.PowerShell.cs @@ -30,7 +30,8 @@ public partial class OperationResultGetAcceptedResponseHeaders /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class OperationResultGetAcceptedResponseHeaders /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IOperatio /// string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IOperationResultGetAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.TypeConverter.cs index 59ef3d0c0cd3..b98fb56f55f5 100644 --- a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class OperationResultGetAcceptedResponseHeadersTypeConverter : gl { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,8 +102,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.json.cs b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.json.cs index 876c1fb3c949..87e7519bf14b 100644 --- a/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/OperationResultGetAcceptedResponseHeaders.json.cs @@ -19,7 +19,7 @@ public partial class OperationResultGetAcceptedResponseHeaders partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the 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. @@ -29,7 +29,8 @@ public partial class OperationResultGetAcceptedResponseHeaders /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class OperationResultGetAcceptedResponseHeaders /// /// 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. + /// 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. diff --git a/src/DataProtection/generated/api/Support/AbsoluteMarker.TypeConverter.cs b/src/DataProtection/generated/api/Support/AbsoluteMarker.TypeConverter.cs index 29962b24efef..472bafc539b0 100644 --- a/src/DataProtection/generated/api/Support/AbsoluteMarker.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/AbsoluteMarker.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class AbsoluteMarkerTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/AbsoluteMarker.cs b/src/DataProtection/generated/api/Support/AbsoluteMarker.cs index e9545304012c..a8463952a502 100644 --- a/src/DataProtection/generated/api/Support/AbsoluteMarker.cs +++ b/src/DataProtection/generated/api/Support/AbsoluteMarker.cs @@ -22,7 +22,7 @@ public partial struct AbsoluteMarker : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private AbsoluteMarker(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum AbsoluteMarker - /// the value to compare against - /// the value to compare against + /// 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.AbsoluteMarker e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum AbsoluteMarker - /// the value to compare against - /// the value to compare against + /// 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.AbsoluteMarker e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker e2) { diff --git a/src/DataProtection/generated/api/Support/AlertsState.Completer.cs b/src/DataProtection/generated/api/Support/AlertsState.Completer.cs new file mode 100644 index 000000000000..939927e541a7 --- /dev/null +++ b/src/DataProtection/generated/api/Support/AlertsState.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + /// Argument completer implementation for AlertsState. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsStateTypeConverter))] + public partial struct AlertsState : + 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) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + 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"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/AlertsState.TypeConverter.cs b/src/DataProtection/generated/api/Support/AlertsState.TypeConverter.cs new file mode 100644 index 000000000000..eb0f3abd034d --- /dev/null +++ b/src/DataProtection/generated/api/Support/AlertsState.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 +{ + + /// TypeConverter implementation for AlertsState. + public partial class AlertsStateTypeConverter : + 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) => AlertsState.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/AlertsState.cs b/src/DataProtection/generated/api/Support/AlertsState.cs new file mode 100644 index 000000000000..cc18eb219053 --- /dev/null +++ b/src/DataProtection/generated/api/Support/AlertsState.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + public partial struct AlertsState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState Enabled = @"Enabled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private AlertsState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AlertsState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AlertsState(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type AlertsState + /// 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.AlertsState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AlertsState (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 AlertsState && Equals((AlertsState)obj); + } + + /// Returns hashCode for enum AlertsState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AlertsState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AlertsState + /// the value to convert to an instance of . + + public static implicit operator AlertsState(string value) + { + return new AlertsState(value); + } + + /// Implicit operator to convert AlertsState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState e) + { + return e._value; + } + + /// Overriding != operator for enum AlertsState + /// 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.AlertsState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AlertsState + /// 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.AlertsState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/CreatedByType.TypeConverter.cs b/src/DataProtection/generated/api/Support/CreatedByType.TypeConverter.cs index f2d32a5cb23c..c62a395aa773 100644 --- a/src/DataProtection/generated/api/Support/CreatedByType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/CreatedByType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class CreatedByTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/CreatedByType.cs b/src/DataProtection/generated/api/Support/CreatedByType.cs index 73f36fbfbcd0..a5e94e7a829e 100644 --- a/src/DataProtection/generated/api/Support/CreatedByType.cs +++ b/src/DataProtection/generated/api/Support/CreatedByType.cs @@ -28,7 +28,7 @@ internal static object CreateFrom(object value) return new CreatedByType(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private CreatedByType(string underlyingValue) { @@ -82,8 +82,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType e2) { @@ -91,8 +91,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType e2) { diff --git a/src/DataProtection/generated/api/Support/CurrentProtectionState.TypeConverter.cs b/src/DataProtection/generated/api/Support/CurrentProtectionState.TypeConverter.cs index df19e3ed2603..73dcb04a83f4 100644 --- a/src/DataProtection/generated/api/Support/CurrentProtectionState.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/CurrentProtectionState.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class CurrentProtectionStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/CurrentProtectionState.cs b/src/DataProtection/generated/api/Support/CurrentProtectionState.cs index cc726939552e..04db958acff9 100644 --- a/src/DataProtection/generated/api/Support/CurrentProtectionState.cs +++ b/src/DataProtection/generated/api/Support/CurrentProtectionState.cs @@ -44,7 +44,7 @@ internal static object CreateFrom(object value) return new CurrentProtectionState(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private CurrentProtectionState(string underlyingValue) { @@ -98,8 +98,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum CurrentProtectionState - /// the value to compare against - /// the value to compare against + /// 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.CurrentProtectionState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState e2) { @@ -107,8 +107,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum CurrentProtectionState - /// the value to compare against - /// the value to compare against + /// 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.CurrentProtectionState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState e2) { diff --git a/src/DataProtection/generated/api/Support/DataStoreTypes.TypeConverter.cs b/src/DataProtection/generated/api/Support/DataStoreTypes.TypeConverter.cs index 15789e4e21f6..961bdeb79fb2 100644 --- a/src/DataProtection/generated/api/Support/DataStoreTypes.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/DataStoreTypes.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class DataStoreTypesTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/DataStoreTypes.cs b/src/DataProtection/generated/api/Support/DataStoreTypes.cs index 28d2e4a24dd1..30ddf810515d 100644 --- a/src/DataProtection/generated/api/Support/DataStoreTypes.cs +++ b/src/DataProtection/generated/api/Support/DataStoreTypes.cs @@ -26,7 +26,7 @@ internal static object CreateFrom(object value) return new DataStoreTypes(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DataStoreTypes(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum DataStoreTypes - /// the value to compare against - /// the value to compare against + /// 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.DataStoreTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum DataStoreTypes - /// the value to compare against - /// the value to compare against + /// 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.DataStoreTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes e2) { diff --git a/src/DataProtection/generated/api/Support/DayOfWeek.TypeConverter.cs b/src/DataProtection/generated/api/Support/DayOfWeek.TypeConverter.cs index b7246a3e9bf4..52f219e5edf5 100644 --- a/src/DataProtection/generated/api/Support/DayOfWeek.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/DayOfWeek.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class DayOfWeekTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/DayOfWeek.cs b/src/DataProtection/generated/api/Support/DayOfWeek.cs index 8e28952bc269..f0370914fcf5 100644 --- a/src/DataProtection/generated/api/Support/DayOfWeek.cs +++ b/src/DataProtection/generated/api/Support/DayOfWeek.cs @@ -33,7 +33,7 @@ internal static object CreateFrom(object value) return new DayOfWeek(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DayOfWeek(string underlyingValue) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum DayOfWeek - /// the value to compare against - /// the value to compare against + /// 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.DayOfWeek e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek e2) { @@ -96,8 +96,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum DayOfWeek - /// the value to compare against - /// the value to compare against + /// 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.DayOfWeek e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek e2) { diff --git a/src/DataProtection/generated/api/Support/FeatureSupportStatus.TypeConverter.cs b/src/DataProtection/generated/api/Support/FeatureSupportStatus.TypeConverter.cs index 8e5a73d4da55..e0be16d6cfc5 100644 --- a/src/DataProtection/generated/api/Support/FeatureSupportStatus.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/FeatureSupportStatus.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class FeatureSupportStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/FeatureSupportStatus.cs b/src/DataProtection/generated/api/Support/FeatureSupportStatus.cs index 59f66c635b01..775ae972d4be 100644 --- a/src/DataProtection/generated/api/Support/FeatureSupportStatus.cs +++ b/src/DataProtection/generated/api/Support/FeatureSupportStatus.cs @@ -48,7 +48,7 @@ public override bool Equals(object obj) return obj is FeatureSupportStatus && Equals((FeatureSupportStatus)obj); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private FeatureSupportStatus(string underlyingValue) { @@ -86,8 +86,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum FeatureSupportStatus - /// the value to compare against - /// the value to compare against + /// 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.FeatureSupportStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus e2) { @@ -95,8 +95,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum FeatureSupportStatus - /// the value to compare against - /// the value to compare against + /// 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.FeatureSupportStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus e2) { diff --git a/src/DataProtection/generated/api/Support/FeatureType.TypeConverter.cs b/src/DataProtection/generated/api/Support/FeatureType.TypeConverter.cs index 83e1c8132093..7ad3436b9ac3 100644 --- a/src/DataProtection/generated/api/Support/FeatureType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/FeatureType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class FeatureTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/FeatureType.cs b/src/DataProtection/generated/api/Support/FeatureType.cs index f3cce81ac67c..8b262d57e879 100644 --- a/src/DataProtection/generated/api/Support/FeatureType.cs +++ b/src/DataProtection/generated/api/Support/FeatureType.cs @@ -40,7 +40,7 @@ public override bool Equals(object obj) return obj is FeatureType && Equals((FeatureType)obj); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private FeatureType(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum FeatureType - /// the value to compare against - /// the value to compare against + /// 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.FeatureType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum FeatureType - /// the value to compare against - /// the value to compare against + /// 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.FeatureType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType e2) { diff --git a/src/DataProtection/generated/api/Support/Month.TypeConverter.cs b/src/DataProtection/generated/api/Support/Month.TypeConverter.cs index 1c4fca9f7b1b..cc605f8949b9 100644 --- a/src/DataProtection/generated/api/Support/Month.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/Month.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class MonthTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/Month.cs b/src/DataProtection/generated/api/Support/Month.cs index 25802ee8fac3..5a80460131f4 100644 --- a/src/DataProtection/generated/api/Support/Month.cs +++ b/src/DataProtection/generated/api/Support/Month.cs @@ -66,7 +66,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private Month(string underlyingValue) { @@ -97,8 +97,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum Month - /// the value to compare against - /// the value to compare against + /// 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.Month e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month e2) { @@ -106,8 +106,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum Month - /// the value to compare against - /// the value to compare against + /// 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.Month e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month e2) { diff --git a/src/DataProtection/generated/api/Support/ProvisioningState.TypeConverter.cs b/src/DataProtection/generated/api/Support/ProvisioningState.TypeConverter.cs index 7602cb527395..cf0fd8fa5203 100644 --- a/src/DataProtection/generated/api/Support/ProvisioningState.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/ProvisioningState.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ProvisioningStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/ProvisioningState.cs b/src/DataProtection/generated/api/Support/ProvisioningState.cs index f5356cffb2b7..cced07a5a818 100644 --- a/src/DataProtection/generated/api/Support/ProvisioningState.cs +++ b/src/DataProtection/generated/api/Support/ProvisioningState.cs @@ -53,7 +53,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ProvisioningState(string underlyingValue) { @@ -84,8 +84,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against + /// 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.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState e2) { @@ -93,8 +93,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against + /// 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.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState e2) { diff --git a/src/DataProtection/generated/api/Support/RehydrationPriority.TypeConverter.cs b/src/DataProtection/generated/api/Support/RehydrationPriority.TypeConverter.cs index 80a98d190556..f42812a9f188 100644 --- a/src/DataProtection/generated/api/Support/RehydrationPriority.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/RehydrationPriority.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class RehydrationPriorityTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/RehydrationPriority.cs b/src/DataProtection/generated/api/Support/RehydrationPriority.cs index 8f2d099d85aa..9c934ce5f5db 100644 --- a/src/DataProtection/generated/api/Support/RehydrationPriority.cs +++ b/src/DataProtection/generated/api/Support/RehydrationPriority.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private RehydrationPriority(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum RehydrationPriority - /// the value to compare against - /// the value to compare against + /// 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.RehydrationPriority e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum RehydrationPriority - /// the value to compare against - /// the value to compare against + /// 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.RehydrationPriority e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority e2) { diff --git a/src/DataProtection/generated/api/Support/RehydrationStatus.TypeConverter.cs b/src/DataProtection/generated/api/Support/RehydrationStatus.TypeConverter.cs index 700559b129a4..da06453d516d 100644 --- a/src/DataProtection/generated/api/Support/RehydrationStatus.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/RehydrationStatus.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class RehydrationStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/RehydrationStatus.cs b/src/DataProtection/generated/api/Support/RehydrationStatus.cs index a47eb7dbcf20..6683de7c925d 100644 --- a/src/DataProtection/generated/api/Support/RehydrationStatus.cs +++ b/src/DataProtection/generated/api/Support/RehydrationStatus.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private RehydrationStatus(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum RehydrationStatus - /// the value to compare against - /// the value to compare against + /// 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.RehydrationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum RehydrationStatus - /// the value to compare against - /// the value to compare against + /// 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.RehydrationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus e2) { diff --git a/src/DataProtection/generated/api/Support/ResourceMoveState.TypeConverter.cs b/src/DataProtection/generated/api/Support/ResourceMoveState.TypeConverter.cs index 8f0dbe50e321..fa7e6ad82e51 100644 --- a/src/DataProtection/generated/api/Support/ResourceMoveState.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/ResourceMoveState.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ResourceMoveStateTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/ResourceMoveState.cs b/src/DataProtection/generated/api/Support/ResourceMoveState.cs index 33906160de1a..f6fc97f9af8c 100644 --- a/src/DataProtection/generated/api/Support/ResourceMoveState.cs +++ b/src/DataProtection/generated/api/Support/ResourceMoveState.cs @@ -63,7 +63,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ResourceMoveState(string underlyingValue) { @@ -94,8 +94,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum ResourceMoveState - /// the value to compare against - /// the value to compare against + /// 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.ResourceMoveState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState e2) { @@ -103,8 +103,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum ResourceMoveState - /// the value to compare against - /// the value to compare against + /// 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.ResourceMoveState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState e2) { diff --git a/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.TypeConverter.cs b/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.TypeConverter.cs index 75c090135e22..f90fdf0025f3 100644 --- a/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class RestoreSourceDataStoreTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.cs b/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.cs index 9c4f036af035..0dddda174350 100644 --- a/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.cs +++ b/src/DataProtection/generated/api/Support/RestoreSourceDataStoreType.cs @@ -51,7 +51,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private RestoreSourceDataStoreType(string underlyingValue) { @@ -82,8 +82,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum RestoreSourceDataStoreType - /// the value to compare against - /// the value to compare against + /// 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.RestoreSourceDataStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType e2) { @@ -91,8 +91,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum RestoreSourceDataStoreType - /// the value to compare against - /// the value to compare against + /// 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.RestoreSourceDataStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType e2) { diff --git a/src/DataProtection/generated/api/Support/RestoreTargetLocationType.TypeConverter.cs b/src/DataProtection/generated/api/Support/RestoreTargetLocationType.TypeConverter.cs index 8dc6e5697b11..605a644b36fe 100644 --- a/src/DataProtection/generated/api/Support/RestoreTargetLocationType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/RestoreTargetLocationType.TypeConverter.cs @@ -15,32 +15,32 @@ public partial class RestoreTargetLocationTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/RestoreTargetLocationType.cs b/src/DataProtection/generated/api/Support/RestoreTargetLocationType.cs index 73ecf080e061..f34a57b0e7c8 100644 --- a/src/DataProtection/generated/api/Support/RestoreTargetLocationType.cs +++ b/src/DataProtection/generated/api/Support/RestoreTargetLocationType.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private RestoreTargetLocationType(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum RestoreTargetLocationType - /// the value to compare against - /// the value to compare against + /// 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.RestoreTargetLocationType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum RestoreTargetLocationType - /// the value to compare against - /// the value to compare against + /// 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.RestoreTargetLocationType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType e2) { diff --git a/src/DataProtection/generated/api/Support/SecretStoreType.TypeConverter.cs b/src/DataProtection/generated/api/Support/SecretStoreType.TypeConverter.cs index a5ef58fcddd8..d80961b8099b 100644 --- a/src/DataProtection/generated/api/Support/SecretStoreType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/SecretStoreType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SecretStoreTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/SecretStoreType.cs b/src/DataProtection/generated/api/Support/SecretStoreType.cs index f62d2a6c94ae..dda33fe0dc25 100644 --- a/src/DataProtection/generated/api/Support/SecretStoreType.cs +++ b/src/DataProtection/generated/api/Support/SecretStoreType.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SecretStoreType(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum SecretStoreType - /// the value to compare against - /// the value to compare against + /// 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.SecretStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum SecretStoreType - /// the value to compare against - /// the value to compare against + /// 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.SecretStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType e2) { diff --git a/src/DataProtection/generated/api/Support/SourceDataStoreType.TypeConverter.cs b/src/DataProtection/generated/api/Support/SourceDataStoreType.TypeConverter.cs index 2e9c207fdccc..92f42bd6dceb 100644 --- a/src/DataProtection/generated/api/Support/SourceDataStoreType.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/SourceDataStoreType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SourceDataStoreTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/SourceDataStoreType.cs b/src/DataProtection/generated/api/Support/SourceDataStoreType.cs index 3eca3e3e1dff..2509b232b779 100644 --- a/src/DataProtection/generated/api/Support/SourceDataStoreType.cs +++ b/src/DataProtection/generated/api/Support/SourceDataStoreType.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SourceDataStoreType(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum SourceDataStoreType - /// the value to compare against - /// the value to compare against + /// 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.SourceDataStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum SourceDataStoreType - /// the value to compare against - /// the value to compare against + /// 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.SourceDataStoreType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType e2) { diff --git a/src/DataProtection/generated/api/Support/Status.TypeConverter.cs b/src/DataProtection/generated/api/Support/Status.TypeConverter.cs index de5e2aa04b44..32fe5dbc0d65 100644 --- a/src/DataProtection/generated/api/Support/Status.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/Status.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class StatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/Status.cs b/src/DataProtection/generated/api/Support/Status.cs index e1ac68d70aeb..6a5c17cea75e 100644 --- a/src/DataProtection/generated/api/Support/Status.cs +++ b/src/DataProtection/generated/api/Support/Status.cs @@ -55,7 +55,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private Status(string underlyingValue) { @@ -86,8 +86,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum Status - /// the value to compare against - /// the value to compare against + /// 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.Status e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status e2) { @@ -95,8 +95,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum Status - /// the value to compare against - /// the value to compare against + /// 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.Status e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status e2) { diff --git a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.TypeConverter.cs b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.TypeConverter.cs index 34ca95a0e701..1f76f94aa919 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class StorageSettingStoreTypesTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs index c8cf22cfa229..5a40f5015375 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private StorageSettingStoreTypes(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum StorageSettingStoreTypes - /// the value to compare against - /// the value to compare against + /// 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.StorageSettingStoreTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum StorageSettingStoreTypes - /// the value to compare against - /// the value to compare against + /// 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.StorageSettingStoreTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes e2) { diff --git a/src/DataProtection/generated/api/Support/StorageSettingTypes.TypeConverter.cs b/src/DataProtection/generated/api/Support/StorageSettingTypes.TypeConverter.cs index aad0507eddf8..8c8fd9b62c25 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingTypes.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingTypes.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class StorageSettingTypesTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/StorageSettingTypes.cs b/src/DataProtection/generated/api/Support/StorageSettingTypes.cs index 99d72fd7f6d6..c3cd8a174f4b 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingTypes.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingTypes.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private StorageSettingTypes(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum StorageSettingTypes - /// the value to compare against - /// the value to compare against + /// 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.StorageSettingTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum StorageSettingTypes - /// the value to compare against - /// the value to compare against + /// 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.StorageSettingTypes e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes e2) { diff --git a/src/DataProtection/generated/api/Support/SyncType.Completer.cs b/src/DataProtection/generated/api/Support/SyncType.Completer.cs new file mode 100644 index 000000000000..f9737a3fd7a1 --- /dev/null +++ b/src/DataProtection/generated/api/Support/SyncType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncTypeTypeConverter))] + public partial struct SyncType : + 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) || "Default".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Default'", "Default", global::System.Management.Automation.CompletionResultType.ParameterValue, "Default"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ForceResync".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ForceResync'", "ForceResync", global::System.Management.Automation.CompletionResultType.ParameterValue, "ForceResync"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/SyncType.TypeConverter.cs b/src/DataProtection/generated/api/Support/SyncType.TypeConverter.cs new file mode 100644 index 000000000000..080fe5847ad0 --- /dev/null +++ b/src/DataProtection/generated/api/Support/SyncType.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 +{ + + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + public partial class SyncTypeTypeConverter : + 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) => SyncType.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/SyncType.cs b/src/DataProtection/generated/api/Support/SyncType.cs new file mode 100644 index 000000000000..31e3b8aa93ce --- /dev/null +++ b/src/DataProtection/generated/api/Support/SyncType.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + public partial struct SyncType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType Default = @"Default"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType ForceResync = @"ForceResync"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to SyncType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new SyncType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type SyncType + /// 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.SyncType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type SyncType (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 SyncType && Equals((SyncType)obj); + } + + /// Returns hashCode for enum SyncType + /// 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 SyncType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for SyncType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to SyncType + /// the value to convert to an instance of . + + public static implicit operator SyncType(string value) + { + return new SyncType(value); + } + + /// Implicit operator to convert SyncType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType e) + { + return e._value; + } + + /// Overriding != operator for enum SyncType + /// 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.SyncType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum SyncType + /// 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.SyncType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/ValidationType.Completer.cs b/src/DataProtection/generated/api/Support/ValidationType.Completer.cs new file mode 100644 index 000000000000..7e33e4bef99c --- /dev/null +++ b/src/DataProtection/generated/api/Support/ValidationType.Completer.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationTypeTypeConverter))] + public partial struct ValidationType : + 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) || "ShallowValidation".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ShallowValidation'", "ShallowValidation", global::System.Management.Automation.CompletionResultType.ParameterValue, "ShallowValidation"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DeepValidation".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DeepValidation'", "DeepValidation", global::System.Management.Automation.CompletionResultType.ParameterValue, "DeepValidation"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/ValidationType.TypeConverter.cs b/src/DataProtection/generated/api/Support/ValidationType.TypeConverter.cs new file mode 100644 index 000000000000..02fd934d022e --- /dev/null +++ b/src/DataProtection/generated/api/Support/ValidationType.TypeConverter.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (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 +{ + + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + public partial class ValidationTypeTypeConverter : + 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) => ValidationType.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/ValidationType.cs b/src/DataProtection/generated/api/Support/ValidationType.cs new file mode 100644 index 000000000000..d938b68d611f --- /dev/null +++ b/src/DataProtection/generated/api/Support/ValidationType.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 +{ + + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + public partial struct ValidationType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType DeepValidation = @"DeepValidation"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType ShallowValidation = @"ShallowValidation"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ValidationType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ValidationType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ValidationType + /// 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.ValidationType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ValidationType (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 ValidationType && Equals((ValidationType)obj); + } + + /// Returns hashCode for enum ValidationType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ValidationType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ValidationType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Implicit operator to convert string to ValidationType + /// the value to convert to an instance of . + + public static implicit operator ValidationType(string value) + { + return new ValidationType(value); + } + + /// Implicit operator to convert ValidationType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType e) + { + return e._value; + } + + /// Overriding != operator for enum ValidationType + /// 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.ValidationType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ValidationType + /// 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.ValidationType e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/WeekNumber.TypeConverter.cs b/src/DataProtection/generated/api/Support/WeekNumber.TypeConverter.cs index 14e09237d7d8..68cf4f74427a 100644 --- a/src/DataProtection/generated/api/Support/WeekNumber.TypeConverter.cs +++ b/src/DataProtection/generated/api/Support/WeekNumber.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class WeekNumberTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// 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. + /// 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. + /// 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. + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/DataProtection/generated/api/Support/WeekNumber.cs b/src/DataProtection/generated/api/Support/WeekNumber.cs index d6f3de589b9e..f358945604aa 100644 --- a/src/DataProtection/generated/api/Support/WeekNumber.cs +++ b/src/DataProtection/generated/api/Support/WeekNumber.cs @@ -59,7 +59,7 @@ public override string ToString() return this._value; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private WeekNumber(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding != operator for enum WeekNumber - /// the value to compare against - /// the value to compare against + /// 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.WeekNumber e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// Overriding == operator for enum WeekNumber - /// the value to compare against - /// the value to compare against + /// 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.WeekNumber e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber e2) { diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs index d288ce140da0..2cfe2a1d75ba 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.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -33,6 +33,9 @@ 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.Api20220401.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerBackupRequest(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -61,7 +64,7 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : Description = @".", SerializedName = @"ruleName", PossibleTypes = new [] { typeof(string) })] - public string BackupRuleOptionRuleName { get => ParametersBody.BackupRuleOptionRuleName ?? null; set => ParametersBody.BackupRuleOptionRuleName = value; } + public string BackupRuleOptionRuleName { get => _parametersBody.BackupRuleOptionRuleName ?? null; set => _parametersBody.BackupRuleOptionRuleName = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -96,11 +99,11 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -111,12 +114,6 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerBackupRequest(); - - /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -179,7 +176,7 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : Description = @".", SerializedName = @"retentionTagOverride", PossibleTypes = new [] { typeof(string) })] - public string TriggerOptionRetentionTagOverride { get => ParametersBody.TriggerOptionRetentionTagOverride ?? null; set => ParametersBody.TriggerOptionRetentionTagOverride = value; } + public string TriggerOptionRetentionTagOverride { get => _parametersBody.TriggerOptionRetentionTagOverride ?? null; set => _parametersBody.TriggerOptionRetentionTagOverride = value; } /// Backing field for property. private string _vaultName; @@ -200,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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. @@ -232,6 +229,11 @@ public BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded() /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -259,10 +261,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.BackupAzDataPro clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.BackupInstanceName = this.BackupInstanceName; return clone; } @@ -270,7 +272,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.BackupAzDataPro /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -403,7 +405,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -418,12 +419,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesAdhocBackup(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesAdhocBackup(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -446,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -468,15 +469,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -486,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -503,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs index ab078018a911..0d947293d831 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.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -33,6 +33,9 @@ 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.Api20220401.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.TriggerBackupRequest(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -47,7 +50,7 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity Description = @".", SerializedName = @"ruleName", PossibleTypes = new [] { typeof(string) })] - public string BackupRuleOptionRuleName { get => ParametersBody.BackupRuleOptionRuleName ?? null; set => ParametersBody.BackupRuleOptionRuleName = value; } + public string BackupRuleOptionRuleName { get => _parametersBody.BackupRuleOptionRuleName ?? null; set => _parametersBody.BackupRuleOptionRuleName = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -90,11 +93,11 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -105,12 +108,6 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.TriggerBackupRequest(); - - /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ITriggerBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -141,31 +138,31 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity Description = @".", SerializedName = @"retentionTagOverride", PossibleTypes = new [] { typeof(string) })] - public string TriggerOptionRetentionTagOverride { get => ParametersBody.TriggerOptionRetentionTagOverride ?? null; set => ParametersBody.TriggerOptionRetentionTagOverride = value; } + public string TriggerOptionRetentionTagOverride { get => _parametersBody.TriggerOptionRetentionTagOverride ?? null; set => _parametersBody.TriggerOptionRetentionTagOverride = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -181,6 +178,11 @@ public BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded() /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -208,14 +210,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.BackupAzDataPro clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -348,7 +350,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -365,34 +366,34 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.BackupInstancesAdhocBackupViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesAdhocBackupViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupInstanceName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupInstancesAdhocBackup(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupInstanceName ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesAdhocBackup(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -415,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -437,15 +438,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -455,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -472,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs index 17aa41b551f2..f6619d1cf3a4 100644 --- a/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs +++ b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs @@ -12,7 +12,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.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : global::System.Management.Automation.PSCmdlet, @@ -32,6 +32,9 @@ 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.Api20220401.IAzureBackupFindRestorableTimeRangesRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupFindRestorableTimeRangesRequest(); + /// Backing field for property. private string _backupInstanceName; @@ -72,7 +75,7 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob Description = @"End time for the List Restore Ranges request. ISO 8601 format.", SerializedName = @"endTime", PossibleTypes = new [] { typeof(string) })] - public string EndTime { get => ParametersBody.EndTime ?? null; set => ParametersBody.EndTime = value; } + public string EndTime { get => _parametersBody.EndTime ?? null; set => _parametersBody.EndTime = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -90,19 +93,13 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupFindRestorableTimeRangesRequest(); - - /// List Restore Ranges Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -148,7 +145,7 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob SerializedName = @"sourceDataStoreType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType))] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType SourceDataStoreType { get => ParametersBody.SourceDataStoreType; set => ParametersBody.SourceDataStoreType = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType SourceDataStoreType { get => _parametersBody.SourceDataStoreType; set => _parametersBody.SourceDataStoreType = value; } /// Start time for the List Restore Ranges request. ISO 8601 format. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Start time for the List Restore Ranges request. ISO 8601 format.")] @@ -159,7 +156,7 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob Description = @"Start time for the List Restore Ranges request. ISO 8601 format.", SerializedName = @"startTime", PossibleTypes = new [] { typeof(string) })] - public string StartTime { get => ParametersBody.StartTime ?? null; set => ParametersBody.StartTime = value; } + public string StartTime { get => _parametersBody.StartTime ?? null; set => _parametersBody.StartTime = value; } /// Backing field for property. private string _subscriptionId; @@ -198,30 +195,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -233,7 +235,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -344,7 +346,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -359,12 +360,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RestorableTimeRangesFind(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.RestorableTimeRangesFind(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -387,12 +388,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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,15 +410,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -427,12 +428,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -444,7 +445,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs index 57a90d33a379..a77771659b98 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.Api20210701.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupInstance_Get : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,30 +160,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +200,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -303,7 +308,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -320,13 +324,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesGet(VaultName, ResourceGroupName, SubscriptionId, Name, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesGet(SubscriptionId, ResourceGroupName, VaultName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -349,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -371,15 +375,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -389,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -406,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs index ab57d023d7ce..780cbbe286e8 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.Api20210701.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -74,11 +74,11 @@ public partial class GetAzDataProtectionBackupInstance_GetViaIdentity : global:: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -272,23 +276,23 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupInstanceName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupInstancesGet(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupInstanceName ?? null, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -317,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 } @@ -357,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs index e2cdc3f574a3..4d48a9714451 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.Api20210701.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupInstance_List : global::System.Man public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -145,30 +145,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -180,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -288,7 +293,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -305,13 +309,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesList(VaultName, ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesList(SubscriptionId, ResourceGroupName, VaultName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -334,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -356,15 +360,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -374,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 c058728fbd42..ecd33910ebce 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.Api20210701.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupPolicy_Get : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -159,30 +159,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -194,7 +199,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -302,7 +307,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -319,13 +323,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupPoliciesGet(VaultName, ResourceGroupName, SubscriptionId, Name, onOk, onDefault, this, Pipeline); + await this.Client.BackupPoliciesGet(SubscriptionId, ResourceGroupName, VaultName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -348,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -370,15 +374,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -388,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -405,7 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs index dcf9ed8350fe..82d6c4715623 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.Api20210701.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -74,11 +74,11 @@ public partial class GetAzDataProtectionBackupPolicy_GetViaIdentity : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -272,23 +276,23 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupPolicyName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupPoliciesGet(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupPolicyName ?? null, onOk, onDefault, this, Pipeline); + await this.Client.BackupPoliciesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupPolicyName ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -317,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 } @@ -357,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs index 6ef8fa53b1db..066906963772 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.Api20210701.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupPolicy_List : global::System.Manag public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -145,30 +145,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -180,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -288,7 +293,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -305,13 +309,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupPoliciesList(VaultName, ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.BackupPoliciesList(SubscriptionId, ResourceGroupName, VaultName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -334,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -356,15 +360,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -374,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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_Get1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get1.cs index 8cc6fe824684..146e9d2f2fc0 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupVault_Get1 : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -131,30 +131,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -166,7 +171,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -274,7 +279,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -320,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -342,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 } @@ -360,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 d3bb0eb40ecf..b362868cd482 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionBackupVault_Get2 : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -145,30 +145,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -180,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -288,7 +293,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -305,13 +309,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsGet(VaultName, ResourceGroupName, SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsGet(SubscriptionId, ResourceGroupName, VaultName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -334,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -356,15 +360,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -374,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -391,7 +395,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs index 31c22f7f8fa3..1bd982a2f343 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -74,11 +74,11 @@ public partial class GetAzDataProtectionBackupVault_GetViaIdentity : global::Sys public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -305,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -327,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 } @@ -345,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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/GetAzDataProtectionJob_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs index becd99e3d008..ee4f68fe9cf0 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.Api20210701.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -83,11 +83,11 @@ public partial class GetAzDataProtectionJob_Get : global::System.Management.Auto public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -162,30 +162,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -197,7 +202,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -305,7 +310,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -351,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 } @@ -391,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -408,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs index ed81a17c28bd..cfbcb3673633 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.Api20210701.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -74,11 +74,11 @@ public partial class GetAzDataProtectionJob_GetViaIdentity : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -317,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 } @@ -357,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -374,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs index cc06877e937a..2e7251996c8b 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.Api20210701.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -66,11 +66,11 @@ public partial class GetAzDataProtectionJob_List : global::System.Management.Aut public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -145,30 +145,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -180,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -288,7 +293,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -334,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -356,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 } @@ -374,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 bceec7b0d027..f969d4a38f1c 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.Api20210701.IClientDiscoveryValueForSingleApi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -72,11 +72,11 @@ public partial class GetAzDataProtectionOperation_List : global::System.Manageme public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -105,30 +105,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -140,7 +145,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -248,7 +253,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -291,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -313,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 } @@ -331,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 805389cbcfae..209e300e20ee 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.Api20210701.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -94,11 +94,11 @@ public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Manag public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -173,30 +173,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -208,7 +213,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -316,7 +321,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -333,13 +337,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RecoveryPointsGet(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, Id, onOk, onDefault, this, Pipeline); + await this.Client.RecoveryPointsGet(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, Id, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,Id=Id}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName,Id=Id}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -362,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -384,15 +388,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Id=Id }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Id=Id }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName, Id=Id }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -402,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -419,7 +423,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs index 09c68f055f66..8b3ef48c0126 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.Api20210701.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -74,11 +74,11 @@ public partial class GetAzDataProtectionRecoveryPoint_GetViaIdentity : global::S public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,30 +107,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -142,7 +147,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -250,7 +255,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -272,17 +276,17 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupInstanceName) { @@ -292,7 +296,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.RecoveryPointId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.RecoveryPointsGet(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupInstanceName ?? null, InputObject.RecoveryPointId ?? null, onOk, onDefault, this, Pipeline); + await this.Client.RecoveryPointsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, InputObject.RecoveryPointId ?? null, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -321,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 } @@ -361,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -378,7 +382,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs index 8ad7cb3055ae..ec12e288b879 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.Api20210701.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -95,11 +95,11 @@ public partial class GetAzDataProtectionRecoveryPoint_List : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -188,30 +188,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -223,7 +228,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -331,7 +336,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -348,13 +352,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.RecoveryPointsList(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, onOk, onDefault, this, Pipeline); + await this.Client.RecoveryPointsList(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), 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(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -377,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -399,15 +403,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), 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(message) { RecommendedAction = global::System.String.Empty } }); @@ -417,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 new file mode 100644 index 000000000000..f429a2d278cf --- /dev/null +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get.cs @@ -0,0 +1,403 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Returns a ResourceGuard belonging to a resource group. + /// + /// [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of ResourceGuard + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of ResourceGuard")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of ResourceGuard", + SerializedName = @"resourceGuardsName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDataProtectionResourceGuard_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ResourceGuardsGet(ResourceGroupName, SubscriptionId, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs new file mode 100644 index 000000000000..05395c5fce21 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs @@ -0,0 +1,390 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Returns ResourceGuards collection belonging to a ResourceGroup. + /// + /// [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDataProtectionResourceGuard_Get1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ResourceGuardsGetResourcesInResourceGroup(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + WriteObject((await response).Value, true); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs new file mode 100644 index 000000000000..3afff6954db9 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs @@ -0,0 +1,382 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Returns a ResourceGuard belonging to a resource group. + /// + /// [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDataProtectionResourceGuard_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ResourceGuardsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGuardsName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGuardsName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ResourceGuardsGet(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGuardsName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs index 83994606bcff..79bd3da29c9f 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.Api20210701.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -72,11 +72,11 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -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.Api20210701.IBackupInstanceResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstanceResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -187,30 +187,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -236,9 +241,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.Name = this.Name; clone.Parameter = this.Parameter; return clone; @@ -247,7 +252,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -388,7 +393,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -403,12 +407,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, Name, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, Name, Parameter, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=Parameter}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name,body=Parameter}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -431,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -453,15 +457,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -471,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -488,7 +492,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs index 15f29f6bbfac..75ba2377e67f 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.Api20210701.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -34,6 +34,9 @@ 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.Api20220401.IBackupInstanceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -72,11 +75,11 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -102,12 +105,6 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupInstanceResource(); - - /// BackupInstance Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -121,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.Api20210701.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance Property { get => ParametersBody.Property ?? null /* object */; set => ParametersBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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")] @@ -191,30 +188,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -240,10 +242,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.Name = this.Name; return clone; } @@ -251,7 +253,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -392,7 +394,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -407,12 +408,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, Name, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -435,12 +436,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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,15 +458,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -475,12 +476,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +493,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs index 2cd9aeb22a30..39fb6d9fb83a 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.Api20210701.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -67,11 +67,11 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -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.Api20210701.IBaseBackupPolicyResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -174,30 +174,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -209,7 +214,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -320,7 +325,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -335,12 +339,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupPoliciesCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, Name, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupPoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, Name, Parameter, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=Parameter}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name,body=Parameter}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -363,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -385,15 +389,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -403,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -420,7 +424,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs index fa90503ea706..e1ef6246297d 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.Api20210701.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -34,6 +34,9 @@ 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.Api20220401.IBaseBackupPolicyResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BaseBackupPolicyResource(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -52,7 +55,7 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy Description = @"Type of datasource for the backup management", SerializedName = @"datasourceTypes", PossibleTypes = new [] { typeof(string) })] - public string[] DatasourceType { get => ParametersBody.DatasourceType ?? null /* arrayOf */; set => ParametersBody.DatasourceType = value; } + public string[] DatasourceType { get => _parametersBody.DatasourceType ?? null /* arrayOf */; set => _parametersBody.DatasourceType = value; } /// /// The credentials, account, tenant, and subscription used for communication with Azure @@ -79,11 +82,11 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -110,13 +113,7 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy Description = @".", SerializedName = @"objectType", PossibleTypes = new [] { typeof(string) })] - public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BaseBackupPolicyResource(); - - /// BaseBackupPolicy resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string ObjectType { get => _parametersBody.ObjectType ?? null; set => _parametersBody.ObjectType = value; } /// /// The instance of the that the remote call will use. @@ -190,30 +187,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -225,7 +227,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -336,7 +338,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -351,12 +352,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupPoliciesCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, Name, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupPoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, Name, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -379,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -401,15 +402,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -419,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -436,7 +437,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs index ff87496e9705..38f252617f1f 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -72,11 +72,11 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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.Api20210701.IBackupVaultResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupVaultResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -172,30 +172,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -221,9 +226,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.Parameter = this.Parameter; return clone; } @@ -231,7 +236,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -372,7 +377,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -387,12 +391,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, Parameter, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,body=Parameter}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,body=Parameter}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -415,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -437,15 +441,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -455,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -472,7 +476,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs index 4facc19cb939..fdf6cde0b8a9 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -34,11 +34,28 @@ 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.Api20220401.IBackupVaultResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupVaultResource(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + /// + /// Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.")] + [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 = @"Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState AzureMonitorAlertsForAllJobFailure { get => _parametersBody.AzureMonitorAlertsForAllJobFailure ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); set => _parametersBody.AzureMonitorAlertsForAllJobFailure = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -65,7 +82,7 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys Description = @"Optional ETag.", SerializedName = @"eTag", PossibleTypes = new [] { typeof(string) })] - public string ETag { get => ParametersBody.ETag ?? null; set => ParametersBody.ETag = value; } + public string ETag { get => _parametersBody.ETag ?? null; set => _parametersBody.ETag = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -88,7 +105,7 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys 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; } + 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; } } @@ -102,14 +119,14 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys Description = @"Resource location.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -120,12 +137,6 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.BackupVaultResource(); - - /// Backup Vault Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -170,8 +181,8 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] StorageSetting { get => ParametersBody.StorageSetting ?? null /* arrayOf */; set => ParametersBody.StorageSetting = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] StorageSetting { get => _parametersBody.StorageSetting ?? null /* arrayOf */; set => _parametersBody.StorageSetting = value; } /// Backing field for property. private string _subscriptionId; @@ -200,8 +211,8 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IDppTrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -222,30 +233,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -271,17 +287,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.NewAzDataProtec clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -422,7 +438,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -437,12 +452,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsCreateOrUpdate(VaultName, ResourceGroupName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsCreateOrUpdate(SubscriptionId, ResourceGroupName, VaultName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -465,12 +480,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -487,15 +502,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -505,12 +520,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -522,7 +537,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs new file mode 100644 index 000000000000..d3bc2e45ce49 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs @@ -0,0 +1,416 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Creates or updates a ResourceGuard resource belonging to a resource group. + /// + /// [OpenAPI] Put=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of ResourceGuard + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of ResourceGuard")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of ResourceGuard", + SerializedName = @"resourceGuardsName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource _parameter; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDataProtectionResourceGuard_Put() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsPut' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ResourceGuardsPut(ResourceGroupName, SubscriptionId, Name, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs new file mode 100644 index 000000000000..29144c1279bf --- /dev/null +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs @@ -0,0 +1,463 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Creates or updates a ResourceGuard resource belonging to a resource group. + /// + /// [OpenAPI] Put=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// List of critical operations which are not protected by this resourceGuard + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of critical operations which are not protected by this resourceGuard")] + [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 = @"List of critical operations which are not protected by this resourceGuard", + SerializedName = @"vaultCriticalOperationExclusionList", + PossibleTypes = new [] { typeof(string) })] + public string[] CriticalOperationExclusionList { get => _parametersBody.CriticalOperationExclusionList ?? null /* arrayOf */; set => _parametersBody.CriticalOperationExclusionList = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Optional ETag. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional ETag.")] + [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 = @"Optional ETag.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + public string ETag { get => _parametersBody.ETag ?? null; set => _parametersBody.ETag = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// 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; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [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 = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of ResourceGuard + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of ResourceGuard")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of ResourceGuard", + SerializedName = @"resourceGuardsName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDataProtectionResourceGuard_PutExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsPut' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ResourceGuardsPut(ResourceGroupName, SubscriptionId, Name, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs new file mode 100644 index 000000000000..11c36326dfba --- /dev/null +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs @@ -0,0 +1,398 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Creates or updates a ResourceGuard resource belonging to a resource group. + /// + /// [OpenAPI] Put=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource _parameter; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDataProtectionResourceGuard_PutViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsPut' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ResourceGuardsPutViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGuardsName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGuardsName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ResourceGuardsPut(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGuardsName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs new file mode 100644 index 000000000000..6e819bbb4360 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs @@ -0,0 +1,445 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Creates or updates a ResourceGuard resource belonging to a resource group. + /// + /// [OpenAPI] Put=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [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.Api20220401.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, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ResourceGuardResource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// List of critical operations which are not protected by this resourceGuard + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of critical operations which are not protected by this resourceGuard")] + [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 = @"List of critical operations which are not protected by this resourceGuard", + SerializedName = @"vaultCriticalOperationExclusionList", + PossibleTypes = new [] { typeof(string) })] + public string[] CriticalOperationExclusionList { get => _parametersBody.CriticalOperationExclusionList ?? null /* arrayOf */; set => _parametersBody.CriticalOperationExclusionList = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Optional ETag. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional ETag.")] + [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 = @"Optional ETag.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + public string ETag { get => _parametersBody.ETag ?? null; set => _parametersBody.ETag = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// 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; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Resource location. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location.")] + [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 = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags 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.Api20220401.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); + + /// + /// 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.Api20220401.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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDataProtectionResourceGuard_PutViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsPut' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ResourceGuardsPutViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGuardsName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGuardsName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ResourceGuardsPut(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGuardsName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs index 984713e1883a..7fdec64f7e76 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs @@ -71,11 +71,11 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -212,6 +212,11 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -237,9 +242,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.RemoveAzDataPro clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.Name = this.Name; return clone; } @@ -247,7 +252,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.RemoveAzDataPro /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -380,7 +385,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -395,12 +399,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesDelete(VaultName, ResourceGroupName, SubscriptionId, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupInstancesDelete(SubscriptionId, ResourceGroupName, VaultName, Name, onOk, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -431,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -453,15 +457,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs index 24c10ec8d9b5..3aaa88ef64bc 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs @@ -79,11 +79,11 @@ public partial class RemoveAzDataProtectionBackupInstance_DeleteViaIdentity : gl public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -159,6 +159,11 @@ public partial class RemoveAzDataProtectionBackupInstance_DeleteViaIdentity : gl /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -190,7 +195,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.RemoveAzDataPro /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -323,7 +328,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -345,23 +349,23 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupInstanceName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupInstancesDelete(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupInstanceName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupInstancesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, onOk, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -398,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 9a17dee7d189..9d0f8c1c4b97 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs @@ -66,11 +66,11 @@ public partial class RemoveAzDataProtectionBackupPolicy_Delete : global::System. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -198,6 +198,11 @@ public partial class RemoveAzDataProtectionBackupPolicy_Delete : global::System. /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -209,7 +214,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -312,7 +317,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -327,12 +331,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupPoliciesDelete(VaultName, ResourceGroupName, SubscriptionId, Name, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupPoliciesDelete(SubscriptionId, ResourceGroupName, VaultName, Name, onOk, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -363,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -385,15 +389,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs index 21d857ba6fb6..20f353170fe1 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs @@ -74,11 +74,11 @@ public partial class RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity : glob public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -146,6 +146,11 @@ public partial class RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity : glob /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -157,7 +162,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -260,7 +265,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -282,23 +286,23 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.BackupPolicyName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupPoliciesDelete(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.BackupPolicyName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupPoliciesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupPolicyName ?? null, onOk, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -335,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +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 9488bb5f812b..e141a067d5eb 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs @@ -66,11 +66,11 @@ public partial class RemoveAzDataProtectionBackupVault_Delete : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -194,6 +194,11 @@ public partial class RemoveAzDataProtectionBackupVault_Delete : global::System.M /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -205,7 +210,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -308,7 +313,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -323,12 +327,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsDelete(VaultName, ResourceGroupName, SubscriptionId, onOk, onAccepted, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupVaultsDelete(SubscriptionId, ResourceGroupName, VaultName, onOk, onAccepted, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -383,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -405,15 +409,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs index b1243293cdcb..1fc368561266 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs @@ -74,11 +74,11 @@ public partial class RemoveAzDataProtectionBackupVault_DeleteViaIdentity : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 @@ -156,6 +156,11 @@ public partial class RemoveAzDataProtectionBackupVault_DeleteViaIdentity : globa /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -167,7 +172,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -270,7 +275,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -292,19 +296,19 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupVaultsDelete(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, onOk, onAccepted, onNoContent, onDefault, this, Pipeline); + await this.Client.BackupVaultsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, onOk, onAccepted, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -365,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -387,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 new file mode 100644 index 000000000000..9db0cba9d87c --- /dev/null +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_Delete.cs @@ -0,0 +1,442 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Deletes a ResourceGuard resource from the resource group. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataProtectionResourceGuard_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Deletes a ResourceGuard resource from the resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class RemoveAzDataProtectionResourceGuard_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of ResourceGuard + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of ResourceGuard")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of ResourceGuard", + SerializedName = @"resourceGuardsName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// 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.Api20220401.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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ResourceGuardsDelete(ResourceGroupName, SubscriptionId, Name, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataProtectionResourceGuard_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs new file mode 100644 index 000000000000..ac18f320f873 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs @@ -0,0 +1,424 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// Deletes a ResourceGuard resource from the resource group. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataProtectionResourceGuard_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Deletes a ResourceGuard resource from the resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class RemoveAzDataProtectionResourceGuard_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ResourceGuardsDelete' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ResourceGuardsDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGuardsName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGuardsName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ResourceGuardsDelete(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGuardsName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataProtectionResourceGuard_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs new file mode 100644 index 000000000000..b86982dc8c3f --- /dev/null +++ b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs @@ -0,0 +1,488 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// This operation will resume protection for a stopped backup instance + /// + /// [OpenAPI] ResumeProtection=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Resume, @"AzDataProtectionBackupInstanceProtection_Resume", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will resume protection for a stopped backup instance")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class ResumeAzDataProtectionBackupInstanceProtection_Resume : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backing field for property. + private string _backupInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"backupInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string BackupInstanceName { get => this._backupInstanceName; set => this._backupInstanceName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _vaultName; + + /// The name of the backup vault. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup vault.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the backup vault.", + SerializedName = @"vaultName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string VaultName { get => this._vaultName; set => this._vaultName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of ResumeAzDataProtectionBackupInstanceProtection_Resume + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.ResumeAzDataProtectionBackupInstanceProtection_Resume Clone() + { + var clone = new ResumeAzDataProtectionBackupInstanceProtection_Resume(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; + clone.BackupInstanceName = this.BackupInstanceName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesResumeProtection' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.BackupInstancesResumeProtection(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public ResumeAzDataProtectionBackupInstanceProtection_Resume() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs new file mode 100644 index 000000000000..54070f91b841 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs @@ -0,0 +1,460 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// This operation will resume protection for a stopped backup instance + /// + /// [OpenAPI] ResumeProtection=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Resume, @"AzDataProtectionBackupInstanceProtection_ResumeViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will resume protection for a stopped backup instance")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity Clone() + { + var clone = new ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesResumeProtection' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.BackupInstancesResumeProtectionViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.VaultName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.BackupInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.BackupInstancesResumeProtection(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs index 2582b437312b..ca8373ee4883 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.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -85,11 +85,11 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -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.Api20210701.IAzureBackupRestoreRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IAzureBackupRestoreRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -185,30 +185,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -234,9 +239,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StartAzDataProt clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.BackupInstanceName = this.BackupInstanceName; clone.Parameter = this.Parameter; return clone; @@ -245,7 +250,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StartAzDataProt /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -378,7 +383,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -393,12 +397,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesTriggerRestore(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesTriggerRestore(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, Parameter, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,body=Parameter}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName,body=Parameter}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -429,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -451,15 +455,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=Parameter }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=Parameter }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -469,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -486,7 +490,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs index c9e685a7e8f6..6e5498c72192 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.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -33,6 +33,9 @@ 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.Api20220401.IAzureBackupRestoreRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.AzureBackupRestoreRequest(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -85,11 +88,11 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -109,13 +112,7 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded Description = @".", SerializedName = @"objectType", PossibleTypes = new [] { typeof(string) })] - public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.AzureBackupRestoreRequest(); - - /// Azure backup restore request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string ObjectType { get => _parametersBody.ObjectType ?? null; set => _parametersBody.ObjectType = value; } /// /// The instance of the that the remote call will use. @@ -160,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.Api20210701.IRestoreTargetInfoBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IRestoreTargetInfoBase RestoreTargetInfo { get => ParametersBody.RestoreTargetInfo ?? null /* object */; set => ParametersBody.RestoreTargetInfo = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.")] @@ -173,7 +170,20 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded SerializedName = @"sourceDataStoreType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType))] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ParametersBody.SourceDataStoreType; set => ParametersBody.SourceDataStoreType = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => _parametersBody.SourceDataStoreType; set => _parametersBody.SourceDataStoreType = value; } + + /// + /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Fully qualified Azure Resource Manager ID of the datasource which is being recovered.")] + [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 = @"Fully qualified Azure Resource Manager ID of the datasource which is being recovered.", + SerializedName = @"sourceResourceId", + PossibleTypes = new [] { typeof(string) })] + public string SourceResourceId { get => _parametersBody.SourceResourceId ?? null; set => _parametersBody.SourceResourceId = value; } /// Backing field for property. private string _subscriptionId; @@ -212,30 +222,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -263,10 +278,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StartAzDataProt clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.BackupInstanceName = this.BackupInstanceName; return clone; } @@ -274,7 +289,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StartAzDataProt /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -407,7 +422,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -422,12 +436,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesTriggerRestore(VaultName, ResourceGroupName, SubscriptionId, BackupInstanceName, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesTriggerRestore(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,BackupInstanceName=BackupInstanceName,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -458,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -480,15 +494,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, BackupInstanceName=BackupInstanceName, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -498,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -515,7 +529,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs new file mode 100644 index 000000000000..8d9bebed8594 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs @@ -0,0 +1,490 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// + /// This operation will stop protection of a backup instance and data will be held forever + /// + /// + /// [OpenAPI] StopProtection=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzDataProtectionBackupInstanceProtection_Stop", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop protection of a backup instance and data will be held forever")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class StopAzDataProtectionBackupInstanceProtection_Stop : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backing field for property. + private string _backupInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"backupInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string BackupInstanceName { get => this._backupInstanceName; set => this._backupInstanceName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _vaultName; + + /// The name of the backup vault. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup vault.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the backup vault.", + SerializedName = @"vaultName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string VaultName { get => this._vaultName; set => this._vaultName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StopAzDataProtectionBackupInstanceProtection_Stop + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StopAzDataProtectionBackupInstanceProtection_Stop Clone() + { + var clone = new StopAzDataProtectionBackupInstanceProtection_Stop(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; + clone.BackupInstanceName = this.BackupInstanceName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesStopProtection' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.BackupInstancesStopProtection(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzDataProtectionBackupInstanceProtection_Stop() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs new file mode 100644 index 000000000000..f57fba9dcc94 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// + /// This operation will stop protection of a backup instance and data will be held forever + /// + /// + /// [OpenAPI] StopProtection=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzDataProtectionBackupInstanceProtection_StopViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop protection of a backup instance and data will be held forever")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class StopAzDataProtectionBackupInstanceProtection_StopViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of StopAzDataProtectionBackupInstanceProtection_StopViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.StopAzDataProtectionBackupInstanceProtection_StopViaIdentity Clone() + { + var clone = new StopAzDataProtectionBackupInstanceProtection_StopViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesStopProtection' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.BackupInstancesStopProtectionViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.VaultName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.BackupInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.BackupInstancesStopProtection(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public StopAzDataProtectionBackupInstanceProtection_StopViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs new file mode 100644 index 000000000000..2059708d9473 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs @@ -0,0 +1,488 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// This operation will stop backups for backup instance + /// + /// [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.Generated] + public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backing field for property. + private string _backupInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"backupInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string BackupInstanceName { get => this._backupInstanceName; set => this._backupInstanceName = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _vaultName; + + /// The name of the backup vault. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup vault.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the backup vault.", + SerializedName = @"vaultName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string VaultName { get => this._vaultName; set => this._vaultName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SuspendAzDataProtectionBackupInstanceBackup_Suspend + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.SuspendAzDataProtectionBackupInstanceBackup_Suspend Clone() + { + var clone = new SuspendAzDataProtectionBackupInstanceBackup_Suspend(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; + clone.BackupInstanceName = this.BackupInstanceName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesSuspendBackups' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.BackupInstancesSuspendBackups(SubscriptionId, ResourceGroupName, VaultName, BackupInstanceName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,BackupInstanceName=BackupInstanceName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + 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.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, BackupInstanceName=BackupInstanceName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs new file mode 100644 index 000000000000..7b7ef6b4ed40 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs @@ -0,0 +1,460 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// This operation will stop backups for backup instance + /// + /// [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.Generated] + public partial class SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity Clone() + { + var clone = new SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesSuspendBackups' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.BackupInstancesSuspendBackupsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.VaultName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.BackupInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.BackupInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.BackupInstancesSuspendBackups(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, InputObject.BackupInstanceName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + 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.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs b/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs new file mode 100644 index 000000000000..d152391c6980 --- /dev/null +++ b/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs @@ -0,0 +1,508 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + using System; + + /// + /// Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance + /// to valid state + /// + /// + /// [OpenAPI] SyncBackupInstance=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Sync, @"AzDataProtectionBackupInstance_SyncExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] + public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Sync BackupInstance Request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISyncBackupInstanceRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.SyncBackupInstanceRequest(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"backupInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("BackupInstanceName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group where the backup vault is present. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group where the backup vault is present.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group where the backup vault is present.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The subscription Id. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The subscription Id.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Field indicating sync type e.g. to sync only in case of failure or in all cases + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Field indicating sync type e.g. to sync only in case of failure or in all cases")] + [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 = @"Field indicating sync type e.g. to sync only in case of failure or in all cases", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType SyncType { get => _parametersBody.SyncType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType)""); set => _parametersBody.SyncType = value; } + + /// Backing field for property. + private string _vaultName; + + /// The name of the backup vault. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup vault.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the backup vault.", + SerializedName = @"vaultName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] + public string VaultName { get => this._vaultName; set => this._vaultName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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); + + /// + /// 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of SyncAzDataProtectionBackupInstance_SyncExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.SyncAzDataProtectionBackupInstance_SyncExpanded Clone() + { + var clone = new SyncAzDataProtectionBackupInstance_SyncExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'BackupInstancesSyncBackupInstance' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.BackupInstancesSyncBackupInstance(SubscriptionId, ResourceGroupName, VaultName, Name, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,Name=Name,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + 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.Api20220401.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, Name=Name, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs index 5fbded249ca7..28429aee1317 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_Validate.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_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, @"AzDataProtectionBackupInstance_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_Validate : global::System.Management.Automation.PSCmdlet, @@ -72,11 +72,11 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -88,7 +88,7 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 TestAzDataProtectionBackupInstance_Validate : global::Syste ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -172,30 +172,35 @@ public partial class TestAzDataProtectionBackupInstance_Validate : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -221,9 +226,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.TestAzDataProte clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; clone.Parameter = this.Parameter; return clone; } @@ -231,7 +236,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.TestAzDataProte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -364,7 +369,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -379,12 +383,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesValidateForBackup(VaultName, ResourceGroupName, SubscriptionId, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesValidateForBackup(SubscriptionId, ResourceGroupName, VaultName, Parameter, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,body=Parameter}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,body=Parameter}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -415,12 +419,12 @@ public TestAzDataProtectionBackupInstance_Validate() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -437,15 +441,15 @@ public TestAzDataProtectionBackupInstance_Validate() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=Parameter }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -455,12 +459,12 @@ public TestAzDataProtectionBackupInstance_Validate() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -472,7 +476,7 @@ public TestAzDataProtectionBackupInstance_Validate() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs index ba1d6237d8a8..b15ea62fe965 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateExpanded.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, @"AzDataProtectionBackupInstance_ValidateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Validate for backup request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ValidateForBackupRequest(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -47,8 +50,8 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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")] @@ -83,11 +86,11 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -98,12 +101,6 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ValidateForBackupRequest(); - - /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -176,30 +173,35 @@ public partial class TestAzDataProtectionBackupInstance_ValidateExpanded : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -225,17 +227,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.TestAzDataProte clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -368,7 +370,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -383,12 +384,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupInstancesValidateForBackup(VaultName, ResourceGroupName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesValidateForBackup(SubscriptionId, ResourceGroupName, VaultName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -419,12 +420,12 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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,15 +442,15 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -459,12 +460,12 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +477,7 @@ public TestAzDataProtectionBackupInstance_ValidateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs index 69764654292a..ed88d32527b2 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_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, @"AzDataProtectionBackupInstance_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -80,11 +80,11 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -96,7 +96,7 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,30 +134,35 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -190,7 +195,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.TestAzDataProte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -323,7 +328,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -345,19 +349,19 @@ protected override void ProcessRecord() else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupInstancesValidateForBackup(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, Parameter, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesValidateForBackup(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, Parameter, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -394,12 +398,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -416,7 +420,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +438,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -451,7 +455,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs index 318c27aa49a2..9d2726b1b1ab 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstance_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, @"AzDataProtectionBackupInstance_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Validate whether adhoc backup will be successful or not")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Validate for backup request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ValidateForBackupRequest(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -47,8 +50,8 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance BackupInstance { get => ParametersBody.BackupInstance ?? null /* object */; set => ParametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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")] @@ -91,11 +94,11 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -106,12 +109,6 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ValidateForBackupRequest(); - - /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -138,30 +135,35 @@ public partial class TestAzDataProtectionBackupInstance_ValidateViaIdentityExpan /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -189,14 +191,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.TestAzDataProte clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -329,7 +331,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -346,30 +347,30 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.BackupInstancesValidateForBackupViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesValidateForBackupViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupInstancesValidateForBackup(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupInstancesValidateForBackup(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -401,12 +402,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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,15 +424,15 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -441,12 +442,12 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +459,7 @@ public TestAzDataProtectionBackupInstance_ValidateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs index 7f70c28cc5ba..59eafc2ab353 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_Check.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, @"AzDataProtectionBackupVaultNameAvailability_Check", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : global::System.Management.Automation.PSCmdlet, @@ -81,15 +81,15 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo public string Location { get => this._location; set => this._location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest _parameter; /// CheckNameAvailability Request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "CheckNameAvailability Request", ValueFromPipeline = true)] @@ -98,8 +98,8 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo ReadOnly = false, Description = @"CheckNameAvailability Request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -159,30 +159,35 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_Check : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -194,7 +199,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -297,7 +302,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -348,12 +352,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -370,7 +374,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -388,12 +392,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -405,7 +409,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_Check() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs index 6da8071c1afb..acca1bd1799b 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded.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, @"AzDataProtectionBackupVaultNameAvailability_CheckExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// CheckNameAvailability Request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityRequest(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -81,11 +84,11 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand public string Location { get => this._location; set => this._location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Resource name for which availability needs to be checked @@ -97,13 +100,7 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand Description = @"Resource name for which availability needs to be checked", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] - public string Name { get => ParametersBody.Name ?? null; set => ParametersBody.Name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityRequest(); - - /// CheckNameAvailability Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string Name { get => _parametersBody.Name ?? null; set => _parametersBody.Name = value; } /// /// The instance of the that the remote call will use. @@ -167,37 +164,42 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckExpand Description = @"Describes the Resource type: Microsoft.DataProtection/BackupVaults", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] - public string Type { get => ParametersBody.Type ?? null; set => ParametersBody.Type = value; } + public string Type { get => _parametersBody.Type ?? null; set => _parametersBody.Type = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -209,7 +211,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -312,7 +314,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -327,12 +328,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsCheckNameAvailability(ResourceGroupName, SubscriptionId, Location, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsCheckNameAvailability(ResourceGroupName, SubscriptionId, Location, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Location=Location,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,Location=Location,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -363,12 +364,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -385,15 +386,15 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, Location=Location, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -403,12 +404,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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 ) { @@ -420,7 +421,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs index ff8547a6bc42..5931207ac95f 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity.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, @"AzDataProtectionBackupVaultNameAvailability_CheckViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -75,15 +75,15 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest _parameter; /// CheckNameAvailability Request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "CheckNameAvailability Request", ValueFromPipeline = true)] @@ -92,8 +92,8 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde ReadOnly = false, Description = @"CheckNameAvailability Request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -121,30 +121,35 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -156,7 +161,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -259,7 +264,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -331,12 +335,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -353,7 +357,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -371,12 +375,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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 ) { @@ -388,7 +392,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs index 45c941f5d1e9..cb08316b0c3a 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded.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, @"AzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"API to check for resource name availability")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// CheckNameAvailability Request + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.CheckNameAvailabilityRequest(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -75,11 +78,11 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Resource name for which availability needs to be checked @@ -91,13 +94,7 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde Description = @"Resource name for which availability needs to be checked", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] - public string Name { get => ParametersBody.Name ?? null; set => ParametersBody.Name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.CheckNameAvailabilityRequest(); - - /// CheckNameAvailability Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string Name { get => _parametersBody.Name ?? null; set => _parametersBody.Name = value; } /// /// The instance of the that the remote call will use. @@ -129,37 +126,42 @@ public partial class TestAzDataProtectionBackupVaultNameAvailability_CheckViaIde Description = @"Describes the Resource type: Microsoft.DataProtection/BackupVaults", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] - public string Type { get => ParametersBody.Type ?? null; set => ParametersBody.Type = value; } + public string Type { get => _parametersBody.Type ?? null; set => _parametersBody.Type = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -171,7 +173,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -274,7 +276,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -291,7 +292,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.BackupVaultsCheckNameAvailabilityViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsCheckNameAvailabilityViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -308,13 +309,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Location"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupVaultsCheckNameAvailability(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.Location ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsCheckNameAvailability(InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, InputObject.Location ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -346,12 +347,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -368,15 +369,15 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -386,12 +387,12 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult + /// 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 ) { @@ -403,7 +404,7 @@ public TestAzDataProtectionBackupVaultNameAvailability_CheckViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs index 7fc03d163df9..a9453f227053 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_Check.cs @@ -80,15 +80,15 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M public string Location { get => this._location; set => this._location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase _parameter; /// Base class for Backup Feature support [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Base class for Backup Feature support", ValueFromPipeline = true)] @@ -97,8 +97,8 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M ReadOnly = false, Description = @"Base class for Backup Feature support", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -144,30 +144,35 @@ public partial class TestAzDataProtectionFeatureSupport_Check : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -179,7 +184,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -282,7 +287,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -333,12 +337,12 @@ public TestAzDataProtectionFeatureSupport_Check() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 +359,7 @@ public TestAzDataProtectionFeatureSupport_Check() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +377,12 @@ public TestAzDataProtectionFeatureSupport_Check() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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 +394,7 @@ public TestAzDataProtectionFeatureSupport_Check() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs index b6131c4741cb..70b481c6db2d 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckExpanded.cs @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Base class for Backup Feature support + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequestBase(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -80,11 +83,11 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: public string Location { get => this._location; set => this._location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Type of the specific object - used for deserializing @@ -96,13 +99,7 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: Description = @"Type of the specific object - used for deserializing", SerializedName = @"objectType", PossibleTypes = new [] { typeof(string) })] - public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase(); - - /// Base class for Backup Feature support - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string ObjectType { get => _parametersBody.ObjectType ?? null; set => _parametersBody.ObjectType = value; } /// /// The instance of the that the remote call will use. @@ -148,30 +145,35 @@ public partial class TestAzDataProtectionFeatureSupport_CheckExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -183,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -286,7 +288,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -301,12 +302,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DataProtectionCheckFeatureSupport(SubscriptionId, Location, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DataProtectionCheckFeatureSupport(SubscriptionId, Location, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Location=Location,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Location=Location,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -337,12 +338,12 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -359,15 +360,15 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -377,12 +378,12 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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 ) { @@ -394,7 +395,7 @@ public TestAzDataProtectionFeatureSupport_CheckExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs index d91d78ffba23..fa601cd245fe 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentity.cs @@ -75,15 +75,15 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase _parameter; /// Base class for Backup Feature support [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Base class for Backup Feature support", ValueFromPipeline = true)] @@ -92,8 +92,8 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa ReadOnly = false, Description = @"Base class for Backup Feature support", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -121,30 +121,35 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentity : globa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -156,7 +161,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -259,7 +264,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -326,12 +330,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -348,7 +352,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -366,12 +370,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -383,7 +387,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs index aed56ba68f28..67484aae7b98 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded.cs @@ -34,6 +34,9 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Base class for Backup Feature support + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.FeatureValidationRequestBase(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -75,11 +78,11 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Type of the specific object - used for deserializing @@ -91,13 +94,7 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded Description = @"Type of the specific object - used for deserializing", SerializedName = @"objectType", PossibleTypes = new [] { typeof(string) })] - public string ObjectType { get => ParametersBody.ObjectType ?? null; set => ParametersBody.ObjectType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.FeatureValidationRequestBase(); - - /// Base class for Backup Feature support - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string ObjectType { get => _parametersBody.ObjectType ?? null; set => _parametersBody.ObjectType = value; } /// /// The instance of the that the remote call will use. @@ -125,30 +122,35 @@ public partial class TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// 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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -160,7 +162,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -263,7 +265,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -280,7 +281,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.DataProtectionCheckFeatureSupportViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DataProtectionCheckFeatureSupportViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -293,13 +294,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.Location"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.DataProtectionCheckFeatureSupport(InputObject.SubscriptionId ?? null, InputObject.Location ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DataProtectionCheckFeatureSupport(InputObject.SubscriptionId ?? null, InputObject.Location ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -330,12 +331,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -352,15 +353,15 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -370,12 +371,12 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -387,7 +388,7 @@ public TestAzDataProtectionFeatureSupport_CheckViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationResponseBase + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationResponseBase WriteObject((await response).ObjectType); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs index e837b5579ea0..31d2009027a3 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -35,11 +35,28 @@ 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.Api20220401.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInput(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + /// + /// Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.")] + [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 = @"Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState AzureMonitorAlertsForAllJobFailure { get => _parametersBody.AzureMonitorAlertsForAllJobFailure ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); set => _parametersBody.AzureMonitorAlertsForAllJobFailure = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -78,17 +95,17 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: 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; } + 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; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -99,12 +116,6 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInput(); - - /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -167,8 +178,8 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -189,30 +200,35 @@ 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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -238,17 +254,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.UpdateAzDataPro clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; - clone.VaultName = this.VaultName; - clone.ResourceGroupName = this.ResourceGroupName; + clone._parametersBody = this._parametersBody; clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.VaultName = this.VaultName; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -381,7 +397,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -396,12 +411,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.BackupVaultsUpdate(VaultName, ResourceGroupName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsUpdate(SubscriptionId, ResourceGroupName, VaultName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName,ResourceGroupName=ResourceGroupName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VaultName=VaultName,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -432,12 +447,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -454,15 +469,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { VaultName=VaultName, ResourceGroupName=ResourceGroupName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -472,12 +487,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -489,7 +504,7 @@ public UpdateAzDataProtectionBackupVault_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs index 33934b507cbe..7dc75f577131 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.Api20210701.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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, @@ -35,11 +35,28 @@ 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.Api20220401.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.PatchResourceRequestInput(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + /// + /// Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.")] + [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 = @"Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState AzureMonitorAlertsForAllJobFailure { get => _parametersBody.AzureMonitorAlertsForAllJobFailure ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); set => _parametersBody.AzureMonitorAlertsForAllJobFailure = value; } + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] @@ -78,7 +95,7 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded 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; } + public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; @@ -92,11 +109,11 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -107,12 +124,6 @@ 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 NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.PatchResourceRequestInput(); - - /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInput ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } - /// /// The instance of the that the remote call will use. /// @@ -143,38 +154,43 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IPatchResourceRequestInputTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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) /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -202,14 +218,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets.UpdateAzDataPro clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -342,7 +358,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -359,30 +374,30 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.BackupVaultsUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsUpdateViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { // try to call with PATH parameters from Input Object - if (null == InputObject.VaultName) + if (null == InputObject.SubscriptionId) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } if (null == InputObject.ResourceGroupName) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - if (null == InputObject.SubscriptionId) + if (null == InputObject.VaultName) { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.VaultName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.BackupVaultsUpdate(InputObject.VaultName ?? null, InputObject.ResourceGroupName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.BackupVaultsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.VaultName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -413,12 +428,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -435,15 +450,15 @@ 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); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -453,12 +468,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 from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 ) { @@ -470,7 +485,7 @@ public UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/runtime/AsyncOperationResponse.cs b/src/DataProtection/generated/runtime/AsyncOperationResponse.cs index b14403d0f9b4..70c94f19363b 100644 --- a/src/DataProtection/generated/runtime/AsyncOperationResponse.cs +++ b/src/DataProtection/generated/runtime/AsyncOperationResponse.cs @@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets /// - /// 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. + /// an instance of the model class. public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); } @@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the + /// 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 + /// 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 + /// Determines if the converter can convert the parameter to a type /// parameter. /// /// the instance to check if it can be converted to the - /// Determines if the parameter can be converted to the parameter + /// 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 + /// 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 + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index 021aff972112..1683b860f9b2 100644 --- a/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 3bbb5d5be4c0..c1d9eff633b7 100644 --- a/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/DataProtection/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/DataProtection/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/DataProtection/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index ef5770db7bb4..ddfdb397946f 100644 --- a/src/DataProtection/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/DataProtection/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/DataProtection/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/DataProtection/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 3f7299a7b3f4..a689bab69a68 100644 --- a/src/DataProtection/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/DataProtection/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -168,19 +168,56 @@ public ParameterNameOutput(string parameterName, bool isLast) public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; } - internal class BeginOutput + internal class BaseOutput { public VariantGroup VariantGroup { get; } - public BeginOutput(VariantGroup variantGroup) + protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; } + public string ClearTelemetryContext() + { + return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; + } + } + + internal class BeginOutput : BaseOutput + { + public BeginOutput(VariantGroup variantGroup) : base(variantGroup) + { + } public string GetProcessCustomAttributesAtRuntime() { return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}}} +{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' +{Indent}{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"begin {{ {Indent}try {{ {Indent}{Indent}$outBuffer = $null @@ -188,6 +225,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -195,6 +233,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} }} @@ -231,28 +270,69 @@ private string GetDefaultValuesStatements() } } - internal class ProcessOutput + internal class ProcessOutput : BaseOutput { + public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetFinally() + { + if (IsAzure && !VariantGroup.IsInternal) + { + return $@" +{Indent}finally {{ +{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"process {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.Process($_) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} +{GetFinally()} }} - "; } - internal class EndOutput + internal class EndOutput : BaseOutput { + public EndOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}{Indent}}} +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId +"; + } + return ""; + } public override string ToString() => $@"end {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.End() +{GetTelemetry()} {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} -}} +}} "; } @@ -493,9 +573,9 @@ public static string ToSyntaxTypeName(this Type type) public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); - public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); - public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); diff --git a/src/DataProtection/generated/runtime/BuildTime/PsHelpers.cs b/src/DataProtection/generated/runtime/BuildTime/PsHelpers.cs index a372f682af96..086f5883b43e 100644 --- a/src/DataProtection/generated/runtime/BuildTime/PsHelpers.cs +++ b/src/DataProtection/generated/runtime/BuildTime/PsHelpers.cs @@ -39,9 +39,10 @@ public static IEnumerable GetModuleCmdlets(params string[] modulePa public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) { // https://stackoverflow.com/a/40969712/294804 + var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; var getCmdletsCommand = $@" $currentFunctions = Get-ChildItem function: -Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} "; return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); diff --git a/src/DataProtection/generated/runtime/Customizations/IJsonSerializable.cs b/src/DataProtection/generated/runtime/Customizations/IJsonSerializable.cs index 35f1622acf7d..a12a1f40995f 100644 --- a/src/DataProtection/generated/runtime/Customizations/IJsonSerializable.cs +++ b/src/DataProtection/generated/runtime/Customizations/IJsonSerializable.cs @@ -129,7 +129,7 @@ private static JsonNode TryToJsonValue(dynamic oValue) /// /// Serialize an object by using a variety of methods. /// - /// the object to be serialized. + /// the object to be serialized. /// the serialized JsonNode (if successful), otherwise, null internal static JsonNode ToJsonValue(object value) { diff --git a/src/DataProtection/generated/runtime/EventDataExtensions.cs b/src/DataProtection/generated/runtime/EventDataExtensions.cs index 37f3725b8307..89073cfb3418 100644 --- a/src/DataProtection/generated/runtime/EventDataExtensions.cs +++ b/src/DataProtection/generated/runtime/EventDataExtensions.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime { using System; - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] /// /// PowerShell-specific data on top of the llc# EventData /// @@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime /// Obviously, this code would need to be duplcated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] public partial class EventData : EventArgs { } diff --git a/src/DataProtection/generated/runtime/ISendAsync.cs b/src/DataProtection/generated/runtime/ISendAsync.cs index ae7e70bb73d6..11f27a8f95c1 100644 --- a/src/DataProtection/generated/runtime/ISendAsync.cs +++ b/src/DataProtection/generated/runtime/ISendAsync.cs @@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// Clones an HttpRequestMessage (without the content) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { @@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { /* **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); @@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } - + return clone; } @@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// Clones an HttpRequestMessage (including the content stream and content headers) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { diff --git a/src/DataProtection/generated/runtime/MessageAttribute.cs b/src/DataProtection/generated/runtime/MessageAttribute.cs index 2184a4b82467..38133bc3c3c8 100644 --- a/src/DataProtection/generated/runtime/MessageAttribute.cs +++ b/src/DataProtection/generated/runtime/MessageAttribute.cs @@ -276,7 +276,7 @@ protected override string GetAttributeSpecificMessage() /// then the attribbute is applicable /// If the invocationInfo is null we return true /// - /// + /// /// bool public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) { diff --git a/src/DataProtection/generated/runtime/PipelineMocking.cs b/src/DataProtection/generated/runtime/PipelineMocking.cs index 7580c3030044..b2bb8da69088 100644 --- a/src/DataProtection/generated/runtime/PipelineMocking.cs +++ b/src/DataProtection/generated/runtime/PipelineMocking.cs @@ -259,4 +259,4 @@ public async Task SendAsync(HttpRequestMessage request, IEv } } } -} \ No newline at end of file +} diff --git a/src/DataProtection/help/Az.DataProtection.md b/src/DataProtection/help/Az.DataProtection.md index 0ad3e7402eec..827bf9c24665 100644 --- a/src/DataProtection/help/Az.DataProtection.md +++ b/src/DataProtection/help/Az.DataProtection.md @@ -47,6 +47,9 @@ Gets default policy template for a selected datasource type. ### [Get-AzDataProtectionRecoveryPoint](Get-AzDataProtectionRecoveryPoint.md) Gets a Recovery Point using recoveryPointId for a Datasource. +### [Get-AzDataProtectionResourceGuard](Get-AzDataProtectionResourceGuard.md) +Returns a ResourceGuard belonging to a resource group. + ### [Initialize-AzDataProtectionBackupInstance](Initialize-AzDataProtectionBackupInstance.md) Initializes Backup instance Request object for configuring backup @@ -71,6 +74,9 @@ Creates a new criteria object ### [New-AzDataProtectionPolicyTriggerScheduleClientObject](New-AzDataProtectionPolicyTriggerScheduleClientObject.md) Creates new Schedule object +### [New-AzDataProtectionResourceGuard](New-AzDataProtectionResourceGuard.md) +Creates a resource guard under a resource group + ### [New-AzDataProtectionRetentionLifeCycleClientObject](New-AzDataProtectionRetentionLifeCycleClientObject.md) Creates new Lifecycle object @@ -83,6 +89,12 @@ Deletes a backup policy belonging to a backup vault ### [Remove-AzDataProtectionBackupVault](Remove-AzDataProtectionBackupVault.md) Deletes a BackupVault resource from the resource group. +### [Remove-AzDataProtectionResourceGuard](Remove-AzDataProtectionResourceGuard.md) +Deletes a ResourceGuard resource from the resource group. + +### [Resume-AzDataProtectionBackupInstanceProtection](Resume-AzDataProtectionBackupInstanceProtection.md) +This operation will resume protection for a stopped backup instance + ### [Search-AzDataProtectionBackupInstanceInAzGraph](Search-AzDataProtectionBackupInstanceInAzGraph.md) Searches for Backup instances in Azure Resource Graph and retrieves the expected entries @@ -92,6 +104,15 @@ Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entr ### [Start-AzDataProtectionBackupInstanceRestore](Start-AzDataProtectionBackupInstanceRestore.md) Triggers restore for a BackupInstance +### [Stop-AzDataProtectionBackupInstanceProtection](Stop-AzDataProtectionBackupInstanceProtection.md) +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 + +### [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 + ### [Update-AzDataProtectionBackupInstanceAssociatedPolicy](Update-AzDataProtectionBackupInstanceAssociatedPolicy.md) Updates associated policy for a given backup instance @@ -99,3 +120,6 @@ Updates associated policy for a given backup instance Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. +### [Update-AzDataProtectionResourceGuard](Update-AzDataProtectionResourceGuard.md) +Updates a resource guard belonging to a resource group + diff --git a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md index b4b609fc48a8..cd23c4d77c81 100644 --- a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -36,6 +36,7 @@ Trigger adhoc backup ```powershell $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName "MyResourceGroup" -SubscriptionId "xxxx-xxx-xxxx" -VaultName "MyVault" -BackupRuleOptionRuleName "BackupWeekly" -TriggerOptionRetentionTagOverride "Default" + ``` This Command Triggers Backup for a given backup instance. @@ -251,7 +252,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index 8ef8aa70cf56..30c1e8174001 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.Api20210701.ISourceLifeCycle[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md index d03dd17b61ab..f572de9dfcf0 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.Api20210701.IScheduleBasedBackupCriteria[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md index b517fc6e15b4..71c5b37ff621 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.Api20210701.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md index 14490cd6f05e..625d216fbed1 100644 --- a/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md +++ b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md @@ -206,7 +206,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupFindRestorableTimeRangesResponseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupFindRestorableTimeRangesResponseResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md index d66486716d08..581f1961ce70 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md @@ -37,28 +37,27 @@ Gets a backup instance with name in a backup vault ### Example 1: Get all the backup instances protected in a specified backup vault. ```powershell -Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" ``` ```output Name Type BackupInstanceName ---- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f -sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186cc6f10 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-74b127dc-7bf0-48ef-bcef-dab186c - +sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +sarathdisk2-sarathdisk2-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxcc Microsoft.DataProtection/backupVaults/backupInstances sarathdisk2-sarathdisk2-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ``` This command gets all the backup instances in a vault. ### Example 2: Get a backup instance by name. ```powershell -Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" +PS C:\> Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "MyResourceGroup" -VaultName "MyVault" -Name "BackupInstanceName" ``` ```output Name Type BackupInstanceName ---- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ``` This command gets a specific backup instance protected in a backup vault. @@ -165,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md index 8aa7e3e2e591..dab1cff9c704 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md @@ -164,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md index b56d3c4835af..520a24c2aee5 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md @@ -43,10 +43,10 @@ Get-AzDataProtectionBackupVault ```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 2a21f108-07bc-4c22-a221-f26c9de554ba 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupV - 34237b3f-8f2c-4ae7-bbff-2896491976fb 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupV - 41155247-420f-4052-a894-84814f0b983c 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupV - 26da260b-e232-419c-8586-9157e4f6260e 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupV + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned westus adigupt-backupcenter-ga-Vault Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned westcentralus BC-Usability-Vault-WCUS Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap NilayBackupVault Microsoft.DataProtection/backupVault + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap dpprunnervaultus Microsoft.DataProtection/backupVault ``` This command gets all backup vaults in current subscription context. @@ -60,8 +60,8 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa ```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 05400379-2551-4dc9-86e0-cf59ab05405a 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-dppvault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults ``` This command gets all backup vaults in a given resource group. @@ -74,7 +74,7 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa ```output ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ---- ------------------- ---------------- ------------ -------- ---- ---- - 2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults + xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults ``` This command gets a specific vault by given vault name. @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionJob.md b/src/DataProtection/help/Get-AzDataProtectionJob.md index 12e16c3f3e5a..e448c5a77e3f 100644 --- a/src/DataProtection/help/Get-AzDataProtectionJob.md +++ b/src/DataProtection/help/Get-AzDataProtectionJob.md @@ -170,7 +170,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupJobResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupJobResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionOperation.md b/src/DataProtection/help/Get-AzDataProtectionOperation.md index 99343515fa7b..58169bba8cb6 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.Api20210701.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IClientDiscoveryValueForSingleApi ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md index c148398fab5d..f4a877e94448 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.Api20210701.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md index 596e550ccce8..3c923f5339f5 100644 --- a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md @@ -216,7 +216,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource ### System.Management.Automation.PSObject diff --git a/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..c6c63d17936f --- /dev/null +++ b/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md @@ -0,0 +1,182 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard +schema: 2.0.0 +--- + +# Get-AzDataProtectionResourceGuard + +## SYNOPSIS +Returns a ResourceGuard belonging to a resource group. + +## SYNTAX + +### Get1 (Default) +``` +Get-AzDataProtectionResourceGuard -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDataProtectionResourceGuard -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDataProtectionResourceGuard -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Returns a ResourceGuard belonging to a resource group. + +## EXAMPLES + +### Example 1: Fetch a resource guard with a particular Name +```powershell +PS C:\> $resGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" -Name "ResourceGuardName" +PS C:\> $resGuard +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardName centraluseuap ResourceGuardName +``` + +Gets a resource guard under a resource group with name "ResourceGuardName" + +### Example 2: Fetch all the resource guards under a resource group +```powershell +PS C:\> $resGuardList = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" +PS C:\> $resGuardList +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name Type +---- -- ------------------- ---------------- ------------ -------- ---- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard1 centraluseuap rguard1 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard2 centraluseuap rguard2 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard3 centraluseuap rguard3 Microsoft.DataProtection/resourceGuards + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard4 centraluseuap rguard4 Microsoft.DataProtection/resourceGuards +``` + +Gets all resource guards under a resource group + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of ResourceGuard + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: Get, Get1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String[] +Parameter Sets: Get, Get1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[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). + - `[Location ]`: The location in which uniqueness will be verified. + - `[OperationId ]`: + - `[RecoveryPointId ]`: + - `[RequestName ]`: + - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGuardsName ]`: The name of ResourceGuard + - `[SubscriptionId ]`: The subscription Id. + - `[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 9a68f979cd6d..506613e5aae3 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md @@ -146,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md index 2db50bddc923..58235ea12474 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md @@ -146,7 +146,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.Api20210701.BackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.BackupInstanceResource Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR Aliases: @@ -422,7 +422,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest ## NOTES @@ -461,6 +461,7 @@ BACKUPINSTANCE : Backup Instance object to trigger origi - `[DatasourceAuthCredentials ]`: Credentials to use to authenticate with data source provider. - `ObjectType `: Type of the specific object - used for deserializing - `[FriendlyName ]`: Gets or sets the Backup Instance friendly name. + - `[ValidationType ]`: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. ## RELATED LINKS diff --git a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md index fb61ba2d2cb6..97a47f03fafd 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md @@ -89,7 +89,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.Api20210701.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource Parameter Sets: (All) Aliases: @@ -250,6 +250,7 @@ BACKUPINSTANCE : Backup instance request object which w - `[DatasourceAuthCredentials ]`: Credentials to use to authenticate with data source provider. - `ObjectType `: Type of the specific object - used for deserializing - `[FriendlyName ]`: Gets or sets the Backup Instance friendly name. + - `[ValidationType ]`: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. ## RELATED LINKS diff --git a/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md index a0824553654a..acf14cc0e5b1 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.Api20210701.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionBackupVault.md b/src/DataProtection/help/New-AzDataProtectionBackupVault.md index 4be09ef6dc4e..8823ca848f41 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupVault.md @@ -14,9 +14,10 @@ Creates or updates a BackupVault resource belonging to a resource group. ``` New-AzDataProtectionBackupVault -Location -ResourceGroupName - -StorageSetting -VaultName [-AsJob] [-DefaultProfile ] - [-ETag ] [-IdentityType ] [-NoWait] [-SubscriptionId ] [-Tag ] [-Confirm] - [-WhatIf] [] + -StorageSetting -VaultName [-AsJob] + [-AzureMonitorAlertsForAllJobFailure ] [-DefaultProfile ] [-ETag ] + [-IdentityType ] [-NoWait] [-SubscriptionId ] [-Tag ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -56,6 +57,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AzureMonitorAlertsForAllJobFailure +Parameter to Enable or Disable built-in azure monitor alerts for job failures. +Security alerts cannot be disabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile @@ -152,7 +169,7 @@ Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. To construct, see NOTES section for STORAGESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md index f05a5ac69fa7..e94a7f76b3c7 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.Api20210701.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionResourceGuard.md b/src/DataProtection/help/New-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..023205d12d46 --- /dev/null +++ b/src/DataProtection/help/New-AzDataProtectionResourceGuard.md @@ -0,0 +1,206 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard +schema: 2.0.0 +--- + +# New-AzDataProtectionResourceGuard + +## SYNOPSIS +Creates a resource guard under a resource group + +## SYNTAX + +``` +New-AzDataProtectionResourceGuard -Location -Name -ResourceGroupName + [-DefaultProfile ] [-ETag ] [-IdentityType ] [-SubscriptionId ] + [-Tag ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a resource guard under a resource group + +## EXAMPLES + +### Example 1: Create a new resource guard +```powershell +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/mua-rg/providers/Microsoft.DataProtection/resourceGuards/mua-resource-guard centraluseuap mua-resource-guard +``` + +The above command is used to create a resource guard "mua-resource-guard" under resource group "mua-rg" in location "centraluseuap" + +## PARAMETERS + +### -DefaultProfile + + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ETag +Optional ETag + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +The IdentityType to be added to the resource guard, example: SystemAssigned, None + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Location of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group name of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription Id of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md index 3f526635d91f..5202b54050fd 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.Api20210701.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..e106ab63f882 --- /dev/null +++ b/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md @@ -0,0 +1,198 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionresourceguard +schema: 2.0.0 +--- + +# Remove-AzDataProtectionResourceGuard + +## SYNOPSIS +Deletes a ResourceGuard resource from the resource group. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDataProtectionResourceGuard -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDataProtectionResourceGuard -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a ResourceGuard resource from the resource group. + +## EXAMPLES + +### Example 1: Delete a resource guard +```powershell +PS C:\> Remove-AzDataProtectionResourceGuard -Name "ResourceGuardName" -ResourceGroupName "ResourceGroupName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" +``` + +This command is used to delete the resource guard under a resource group. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of ResourceGuard + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[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). + - `[Location ]`: The location in which uniqueness will be verified. + - `[OperationId ]`: + - `[RecoveryPointId ]`: + - `[RequestName ]`: + - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGuardsName ]`: The name of ResourceGuard + - `[SubscriptionId ]`: The subscription Id. + - `[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 new file mode 100644 index 000000000000..3ca9848c6c8d --- /dev/null +++ b/src/DataProtection/help/Resume-AzDataProtectionBackupInstanceProtection.md @@ -0,0 +1,244 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/resume-azdataprotectionbackupinstanceprotection +schema: 2.0.0 +--- + +# Resume-AzDataProtectionBackupInstanceProtection + +## SYNOPSIS +This operation will resume protection for a stopped backup instance + +## SYNTAX + +### Resume (Default) +``` +Resume-AzDataProtectionBackupInstanceProtection -BackupInstanceName -ResourceGroupName + -VaultName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### ResumeViaIdentity +``` +Resume-AzDataProtectionBackupInstanceProtection -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation will resume protection for a stopped backup instance + +## EXAMPLES + +### Example 1: Resume protection for a backup instance for which the protection state is ProtectionStopped +```powershell +PS C:\> Resume-AzDataProtectionBackupInstanceProtection -BackupInstanceName $backupInstance.BackupInstanceName -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" +``` + +The above command can be used to resume protection for a stopped or suspended backup instance + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupInstanceName +. + +```yaml +Type: System.String +Parameter Sets: Resume +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +Parameter Sets: ResumeViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: Resume +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: Resume +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultName +The name of the backup vault. + +```yaml +Type: System.String +Parameter Sets: Resume +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[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). + - `[Location ]`: The location in which uniqueness will be verified. + - `[OperationId ]`: + - `[RecoveryPointId ]`: + - `[RequestName ]`: + - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGuardsName ]`: The name of ResourceGuard + - `[SubscriptionId ]`: The subscription Id. + - `[VaultName ]`: The name of the backup vault. + +## RELATED LINKS + diff --git a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md index ddcd8532ccdd..0c0c80a4ce27 100644 --- a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md @@ -23,8 +23,8 @@ Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName -Resour ``` Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName -ResourceGroupName -VaultName -ObjectType -RestoreTargetInfo - -SourceDataStoreType [-SubscriptionId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] + -SourceDataStoreType [-SubscriptionId ] [-SourceResourceId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -175,7 +175,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.Api20210701.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest Parameter Sets: Trigger Aliases: @@ -206,7 +206,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.Api20210701.IRestoreTargetInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IRestoreTargetInfoBase Parameter Sets: TriggerExpanded Aliases: @@ -232,6 +232,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SourceResourceId +Fully qualified Azure Resource Manager ID of the datasource which is being recovered. + +```yaml +Type: System.String +Parameter Sets: TriggerExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The subscription Id. @@ -298,11 +313,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo ## NOTES @@ -319,6 +334,7 @@ PARAMETER : Azure backup restore request - `ObjectType `: Type of Datasource object, used to initialize the right inherited type - `[RestoreLocation ]`: Target Restore region - `SourceDataStoreType `: Gets or sets the type of the source data store. + - `[SourceResourceId ]`: Fully qualified Azure Resource Manager ID of the datasource which is being recovered. RESTORETARGETINFO : Gets or sets the restore target information. - `ObjectType `: Type of Datasource object, used to initialize the right inherited type diff --git a/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md new file mode 100644 index 000000000000..c3a4bb792ae4 --- /dev/null +++ b/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md @@ -0,0 +1,244 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection +schema: 2.0.0 +--- + +# Stop-AzDataProtectionBackupInstanceProtection + +## SYNOPSIS +This operation will stop protection of a backup instance and data will be held forever + +## SYNTAX + +### Stop (Default) +``` +Stop-AzDataProtectionBackupInstanceProtection -BackupInstanceName -ResourceGroupName + -VaultName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### StopViaIdentity +``` +Stop-AzDataProtectionBackupInstanceProtection -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation will stop protection of a backup instance and data will be held forever + +## EXAMPLES + +### Example 1: Stop protection for a backup instance +```powershell +PS C:\> Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + +The above command can be used to stop protection of a backup instance + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupInstanceName +. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +Parameter Sets: StopViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultName +The name of the backup vault. + +```yaml +Type: System.String +Parameter Sets: Stop +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[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). + - `[Location ]`: The location in which uniqueness will be verified. + - `[OperationId ]`: + - `[RecoveryPointId ]`: + - `[RequestName ]`: + - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGuardsName ]`: The name of ResourceGuard + - `[SubscriptionId ]`: The subscription Id. + - `[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 new file mode 100644 index 000000000000..b016bfdcf6c7 --- /dev/null +++ b/src/DataProtection/help/Suspend-AzDataProtectionBackupInstanceBackup.md @@ -0,0 +1,244 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup +schema: 2.0.0 +--- + +# Suspend-AzDataProtectionBackupInstanceBackup + +## SYNOPSIS +This operation will stop backups for backup instance + +## SYNTAX + +### Suspend (Default) +``` +Suspend-AzDataProtectionBackupInstanceBackup -BackupInstanceName -ResourceGroupName + -VaultName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### SuspendViaIdentity +``` +Suspend-AzDataProtectionBackupInstanceBackup -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This operation will stop backups for backup instance + +## EXAMPLES + +### Example 1: Suspend backups for a backup instance +```powershell +PS C:\> Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + +The above command can be used to stop backups of a backup instance, this will move the backup instance to a suspended state. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BackupInstanceName +. + +```yaml +Type: System.String +Parameter Sets: Suspend +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +Parameter Sets: SuspendViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: Suspend +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: Suspend +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultName +The name of the backup vault. + +```yaml +Type: System.String +Parameter Sets: Suspend +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + + +INPUTOBJECT : Identity Parameter + - `[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). + - `[Location ]`: The location in which uniqueness will be verified. + - `[OperationId ]`: + - `[RecoveryPointId ]`: + - `[RequestName ]`: + - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGuardsName ]`: The name of ResourceGuard + - `[SubscriptionId ]`: The subscription Id. + - `[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 new file mode 100644 index 000000000000..f8382df27146 --- /dev/null +++ b/src/DataProtection/help/Sync-AzDataProtectionBackupInstance.md @@ -0,0 +1,217 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/sync-azdataprotectionbackupinstance +schema: 2.0.0 +--- + +# Sync-AzDataProtectionBackupInstance + +## SYNOPSIS +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state + +## SYNTAX + +``` +Sync-AzDataProtectionBackupInstance -Name -ResourceGroupName -VaultName + [-SubscriptionId ] [-SyncType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state + +## EXAMPLES + +### Example 1: Sync backup instance again in case of failure +```powershell +PS C:\> Sync-AzDataProtectionBackupInstance -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName +``` + +The above command is used to sync backup instance again in case of failure. +This action will retry last failed operation and will bring backup instance to valid state. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +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. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: BackupInstanceName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group where the backup vault is present. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SyncType +Field indicating sync type e.g. +to sync only in case of failure or in all cases + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VaultName +The name of the backup vault. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index de497909616d..7f2bdb693e59 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.Api20210701.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md index 2601b80d3f0b..95a7fb37f8a0 100644 --- a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md @@ -16,14 +16,15 @@ For example, updating tags for a resource. ### UpdateExpanded (Default) ``` Update-AzDataProtectionBackupVault -ResourceGroupName -VaultName [-SubscriptionId ] - [-IdentityType ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] + [-AzureMonitorAlertsForAllJobFailure ] [-IdentityType ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzDataProtectionBackupVault -InputObject [-IdentityType ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzDataProtectionBackupVault -InputObject + [-AzureMonitorAlertsForAllJobFailure ] [-IdentityType ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -47,6 +48,19 @@ ETag IdentityPrincipalId IdentityTenantId I The first command creates a new tag hashtable with tags and their values. The second command adds the given tags to the backup vault. +### Example 2: Disable Azure monitor alerts for job failures +```powershell +PS C:\> Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' + +Name Location Type IdentityType +---- -------- ---- ------------ +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. + ## PARAMETERS ### -AsJob @@ -64,6 +78,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AzureMonitorAlertsForAllJobFailure +Parameter to Enable or Disable built-in azure monitor alerts for job failures. +Security alerts cannot be disabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState +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. @@ -225,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md new file mode 100644 index 000000000000..4f58b09078dc --- /dev/null +++ b/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md @@ -0,0 +1,214 @@ +--- +external help file: +Module Name: Az.DataProtection +online version: https://docs.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard +schema: 2.0.0 +--- + +# Update-AzDataProtectionResourceGuard + +## SYNOPSIS +Updates a resource guard belonging to a resource group + +## SYNTAX + +``` +Update-AzDataProtectionResourceGuard -Name -ResourceGroupName + [-CriticalOperationExclusionList ] [-DefaultProfile ] [-ETag ] + [-IdentityType ] [-SubscriptionId ] [-Tag ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates a resource guard belonging to a resource group + +## EXAMPLES + +### Example 1: Update a resource guard +```powershell +PS C:\> $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name "resGuardName" +PS C:\> $criticalOperations = $resourceGuard.ResourceGuardOperation.VaultCriticalOperation +PS C:\> $operationsToBeExcluded = $criticalOperations | where { $_ -match "backupSecurityPIN/action" -or $_ -match "backupInstances/delete" } +PS C:\> Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded +``` + +```output +ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name +---- -- ------------------- ---------------- ------------ -------- ---- + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/mua-rg/providers/Microsoft.DataProtection/resourceGuards/mua-resource-guard centraluseuap mua-resource-guard +``` + +The first command is used to fetch the resource guard to be updated. +The second and third command is used to fecth the critical operations user want to update. + +The fourth command is used to exclude some critical operations from the resource guard + +## PARAMETERS + +### -CriticalOperationExclusionList +List of critical operations which are not protected by this resourceGuard. +Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile + + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ETag +Optional ETag + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +The identityType to be updated in resource guard, example: SystemAssigned, None + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group name of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +Subscription Id of the resource guard + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 index 684483ff02e7..f838ceba619e 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 @@ -20,32 +20,19 @@ Returns a list of Recovery Points for a DataSource in a vault. .Description Returns a list of Recovery Points for a DataSource in a vault. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name - -Name Type ----- ---- -aded40a562134f97b732f30d0b486fef Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -f458438d5ebb4098adbf67e9655cb624 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -515ba70e49d34b2bbff033dcc08593fe Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -e61293fdd1064fbdb4f42b7f5927a927 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -aecc362b85484f4eb905bb05ef445e3e Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -dc814d61a9624c36a1f9d635bc0b80f0 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 - -Name Type ----- ---- -892e5c5014dc4a96807d22924f5745c9 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +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.Api20210701.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -140,6 +127,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_List'; } @@ -152,6 +140,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -160,15 +149,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 index 93099eca0aff..8993b2e95419 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 @@ -20,35 +20,25 @@ Create or update a backup instance in a backup vault .Description Create or update a backup instance in a backup vault .Example -PS C:\> $sub = "xxxx-xxx-xx" -PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance - - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +$sub = "xxxx-xxx-xx" +$DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance .Example -PS C:\> $sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> $dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance - -Name Type BackupInstanceName ----- ---- ------------------ -xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 Microsoft.DataProtection/backupVaults/backupInstances xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 - +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -82,6 +72,7 @@ PARAMETER : BackupInstance Resource [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. PROPERTY : BackupInstanceResource properties DataSourceInfo : Gets or sets the data source information. @@ -110,11 +101,12 @@ PROPERTY : BackupInstanceResource properties [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -145,14 +137,14 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, @@ -224,6 +216,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupInstance_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupInstance_CreateExpanded'; @@ -237,6 +230,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -245,15 +239,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 index b6068696fe61..525bb8e71a77 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 @@ -20,18 +20,14 @@ Creates or Updates a backup policy belonging to a backup vault .Description Creates or Updates a backup policy belonging to a backup vault .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true -PS C:\> $schDates = @( +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true +$schDates = @( ( (Get-Date -Year 2021 -Month 08 -Day 18 -Hour 10 -Minute 0 -Second 0) ), @@ -39,24 +35,19 @@ PS C:\> $schDates = @( (Get-Date -Year 2021 -Month 08 -Day 22 -Hour 10 -Minute 0 -Second 0) )) -PS C:\> $trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false -PS C:\> $tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol - - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false +$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth +Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -69,7 +60,7 @@ PARAMETER : BaseBackupPolicy resource https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -100,7 +91,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource] # BaseBackupPolicy resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -173,6 +164,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupPolicy_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupPolicy_CreateExpanded'; @@ -186,6 +178,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -194,15 +187,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 index 3cbb181d5781..664664d0dfac 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 @@ -20,18 +20,14 @@ Creates or updates a BackupVault resource belonging to a resource group. .Description Creates or updates a BackupVault resource belonging to a resource group. .Example -PS C:\> $sub = "xxxx-xxxx-xxxxx" -PS C:\> $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant -PS C:\> New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - westus MyVault Microsoft.DataProtection/backupVaults +$sub = "xxxx-xxxx-xxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -46,6 +42,7 @@ PARAMETER : Backup Vault Resource [Location ]: Resource location. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. + [AzureMonitorAlertsForAllJobFailure ]: [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 @@ -59,7 +56,7 @@ STORAGESETTING : Storage Settings https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -83,7 +80,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -91,11 +88,19 @@ param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]] # Storage Settings # To construct, see NOTES section for STORAGESETTING properties and create a hash table. ${StorageSetting}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -116,7 +121,7 @@ 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.Api20210701.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -188,6 +193,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupVault_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupVault_CreateExpanded'; @@ -201,6 +207,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -209,15 +216,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 new file mode 100644 index 000000000000..1b1fce1f833e --- /dev/null +++ b/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 @@ -0,0 +1,233 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a ResourceGuard resource belonging to a resource group. +.Description +Creates or updates a ResourceGuard resource belonging to a resource group. +.Example +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [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. + [(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://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard +#> +function New-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='PutExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Put', Mandatory)] + [Parameter(ParameterSetName='PutExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of ResourceGuard + ${Name}, + + [Parameter(ParameterSetName='Put', Mandatory)] + [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. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Put')] + [Parameter(ParameterSetName='PutExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PutViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource] + # . + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='PutExpanded')] + [Parameter(ParameterSetName='PutViaIdentityExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # List of critical operations which are not protected by this resourceGuard + ${CriticalOperationExclusionList}, + + [Parameter(ParameterSetName='PutExpanded')] + [Parameter(ParameterSetName='PutViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # 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')] + [System.String] + # Resource location. + ${Location}, + + [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.Api20220401.IDppTrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Put = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_Put'; + PutExpanded = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutExpanded'; + PutViaIdentity = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutViaIdentity'; + PutViaIdentityExpanded = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutViaIdentityExpanded'; + } + if (('Put', 'PutExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 index f2dee362bf9e..20907ac72cbd 100644 --- a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 @@ -20,32 +20,19 @@ Returns a list of Recovery Points for a DataSource in a vault. .Description Returns a list of Recovery Points for a DataSource in a vault. .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name - -Name Type ----- ---- -aded40a562134f97b732f30d0b486fef Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -f458438d5ebb4098adbf67e9655cb624 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -515ba70e49d34b2bbff033dcc08593fe Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -e61293fdd1064fbdb4f42b7f5927a927 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -aecc362b85484f4eb905bb05ef445e3e Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints -dc814d61a9624c36a1f9d635bc0b80f0 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name .Example -PS C:\> $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -PS C:\> Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 - -Name Type ----- ---- -892e5c5014dc4a96807d22924f5745c9 Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints +$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault +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.Api20210701.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource .Link https://docs.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -140,6 +127,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.DataProtection.private\Get-AzDataProtectionRecoveryPoint_List'; } @@ -152,6 +140,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -160,17 +149,20 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } <# @@ -179,35 +171,25 @@ Create or update a backup instance in a backup vault .Description Create or update a backup instance in a backup vault .Example -PS C:\> $sub = "xxxx-xxx-xx" -PS C:\> $DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId -PS C:\> $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance - - -Name Type BackupInstanceName ----- ---- ------------------ -sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/backupVaults/backupInstances sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166 +$sub = "xxxx-xxx-xx" +$DiskId = "/subscriptions/{subscription}/resourceGroups/{resourcegroup}/providers/Microsoft.Compute/disks/{diskname}" +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $DiskId +$instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = "/subscriptions/{subscription}/resourceGroups/{resourceGroup}" +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstance $instance .Example -PS C:\> $sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> $dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" -PS C:\> $secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" -PS C:\> $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName -PS C:\> $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -PS C:\> $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault -PS C:\> New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance - -Name Type BackupInstanceName ----- ---- ------------------ -xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 Microsoft.DataProtection/backupVaults/backupInstances xyz-postgresql-wus-empdb10-xxxxxxxx-xxxx-xxxx-a3ba-be75108d8b21 - +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$dataSourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroupName/providers/Microsoft.DBforPostgreSQL/servers/OssServerName/databases/DBName" +$secretURI = "https://oss-keyvault.vault.azure.net/secrets/oss-secret" +$vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName $vaultName +$policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -Name "MyPolicy" +$instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPostgreSQL -DatasourceLocation $vault.Location -PolicyId $policy.Id -DatasourceId $dataSourceId -SecretStoreURI $secretURI -SecretStoreType AzureKeyVault +New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -241,6 +223,7 @@ PARAMETER : BackupInstance Resource [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. PROPERTY : BackupInstanceResource properties DataSourceInfo : Gets or sets the data source information. @@ -269,11 +252,12 @@ PROPERTY : BackupInstanceResource properties [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -304,14 +288,14 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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.Api20210701.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, @@ -383,6 +367,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupInstance_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupInstance_CreateExpanded'; @@ -396,6 +381,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -404,17 +390,20 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } <# @@ -423,18 +412,14 @@ Creates or Updates a backup policy belonging to a backup vault .Description Creates or Updates a backup policy belonging to a backup vault .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Name "MyPolicy" -Policy $defaultPol .Example -PS C:\> $defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true -PS C:\> $schDates = @( +$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 3 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $true +$schDates = @( ( (Get-Date -Year 2021 -Month 08 -Day 18 -Hour 10 -Minute 0 -Second 0) ), @@ -442,24 +427,19 @@ PS C:\> $schDates = @( (Get-Date -Year 2021 -Month 08 -Day 22 -Hour 10 -Minute 0 -Second 0) )) -PS C:\> $trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 -PS C:\> Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol -PS C:\> $lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption -PS C:\> $lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 -PS C:\> Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false -PS C:\> $tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth -PS C:\> Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria -PS C:\> New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol - - -Name Type ----- ---- -MyPolicy Microsoft.DataProtection/backupVaults/backupPolicies +$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1 +Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol +$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6 -TargetDataStore ArchiveStore -CopyOption CopyOnExpiryOption +$lifeCycleArchive = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore ArchiveStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 12 +Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault, $lifeCycleArchive -IsDefault $false +$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfMonth +Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria +New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -472,7 +452,7 @@ PARAMETER : BaseBackupPolicy resource https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -503,7 +483,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBaseBackupPolicyResource] # BaseBackupPolicy resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -576,6 +556,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupPolicy_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupPolicy_CreateExpanded'; @@ -589,6 +570,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -597,17 +579,20 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } <# @@ -616,18 +601,14 @@ Creates or updates a BackupVault resource belonging to a resource group. .Description Creates or updates a BackupVault resource belonging to a resource group. .Example -PS C:\> $sub = "xxxx-xxxx-xxxxx" -PS C:\> $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant -PS C:\> New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus - -ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type ----- ------------------- ---------------- ------------ -------- ---- ---- - westus MyVault Microsoft.DataProtection/backupVaults +$sub = "xxxx-xxxx-xxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -642,6 +623,7 @@ PARAMETER : Backup Vault Resource [Location ]: Resource location. [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. + [AzureMonitorAlertsForAllJobFailure ]: [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 @@ -655,7 +637,7 @@ STORAGESETTING : Storage Settings https://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -679,7 +661,7 @@ param( [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -687,11 +669,19 @@ param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IStorageSetting[]] # Storage Settings # To construct, see NOTES section for STORAGESETTING properties and create a hash table. ${StorageSetting}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState] + # Parameter to Enable or Disable built-in azure monitor alerts for job failures. + # Security alerts cannot be disabled. + ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -712,7 +702,7 @@ 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.Api20210701.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IDppTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -784,6 +774,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Create = 'Az.DataProtection.private\New-AzDataProtectionBackupVault_Create'; CreateExpanded = 'Az.DataProtection.private\New-AzDataProtectionBackupVault_CreateExpanded'; @@ -797,6 +788,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -805,17 +797,238 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Creates or updates a ResourceGuard resource belonging to a resource group. +.Description +Creates or updates a ResourceGuard resource belonging to a resource group. +.Example +PS C:\> New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.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 + [BackupPolicyName ]: + [Id ]: Resource identity path + [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). + [Location ]: The location in which uniqueness will be verified. + [OperationId ]: + [RecoveryPointId ]: + [RequestName ]: + [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGuardsName ]: The name of ResourceGuard + [SubscriptionId ]: The subscription Id. + [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. + [(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://docs.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard +#> +function New-AzDataProtectionResourceGuard { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource])] +[CmdletBinding(DefaultParameterSetName='PutExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Put', Mandatory)] + [Parameter(ParameterSetName='PutExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [System.String] + # The name of ResourceGuard + ${Name}, + + [Parameter(ParameterSetName='Put', Mandatory)] + [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. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Put')] + [Parameter(ParameterSetName='PutExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The subscription Id. + ${SubscriptionId}, + + [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PutViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IResourceGuardResource] + # . + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='PutExpanded')] + [Parameter(ParameterSetName='PutViaIdentityExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String[]] + # List of critical operations which are not protected by this resourceGuard + ${CriticalOperationExclusionList}, + + [Parameter(ParameterSetName='PutExpanded')] + [Parameter(ParameterSetName='PutViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.String] + # 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')] + [System.String] + # Resource location. + ${Location}, + + [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.Api20220401.IDppTrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Put = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_Put'; + PutExpanded = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutExpanded'; + PutViaIdentity = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutViaIdentity'; + PutViaIdentityExpanded = 'Az.DataProtection.private\New-AzDataProtectionResourceGuard_PutViaIdentityExpanded'; + } + if (('Put', 'PutExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} } <# @@ -824,20 +1037,16 @@ Validate whether adhoc backup will be successful or not .Description Validate whether adhoc backup will be successful or not .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -870,6 +1079,7 @@ BACKUPINSTANCE : Backup Instance [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [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 @@ -913,11 +1123,12 @@ PARAMETER : Validate for backup request [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstance #> function Test-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -953,7 +1164,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -961,7 +1172,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -1033,6 +1244,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Validate = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstance_Validate'; ValidateExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstance_ValidateExpanded'; @@ -1048,6 +1260,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -1056,17 +1269,20 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } <# @@ -1075,20 +1291,16 @@ API to check for resource name availability .Description API to check for resource name availability .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES @@ -1115,7 +1327,7 @@ PARAMETER : CheckNameAvailability Request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupvaultnameavailability #> function Test-AzDataProtectionBackupVaultNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Check', Mandatory)] @@ -1151,7 +1363,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest] # CheckNameAvailability Request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1225,6 +1437,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Check = 'Az.DataProtection.private\Test-AzDataProtectionBackupVaultNameAvailability_Check'; CheckExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupVaultNameAvailability_CheckExpanded'; @@ -1240,6 +1453,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -1248,17 +1462,20 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } <# @@ -1267,16 +1484,12 @@ Validates if a feature is supported .Description Validates if a feature is supported .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs @@ -1335,7 +1548,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase] # Base class for Backup Feature support # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1402,6 +1615,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Check = 'Az.DataProtection.private\Test-AzDataProtectionFeatureSupport_Check'; CheckExpanded = 'Az.DataProtection.private\Test-AzDataProtectionFeatureSupport_CheckExpanded'; @@ -1417,6 +1631,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -1425,15 +1640,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/README.md b/src/DataProtection/internal/README.md index 8d91b38213ea..038a83ffc864 100644 --- a/src/DataProtection/internal/README.md +++ b/src/DataProtection/internal/README.md @@ -1,5 +1,5 @@ # Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). 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 a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). 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 @@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that 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`. \ No newline at end of file +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-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 index 39d7927b8951..0e37a6fb122d 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupInstance.ps1 @@ -20,20 +20,16 @@ Validate whether adhoc backup will be successful or not .Description Validate whether adhoc backup will be successful or not .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -66,6 +62,7 @@ BACKUPINSTANCE : Backup Instance [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [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 @@ -109,11 +106,12 @@ PARAMETER : Validate for backup request [DatasourceAuthCredentials ]: Credentials to use to authenticate with data source provider. ObjectType : Type of the specific object - used for deserializing [FriendlyName ]: Gets or sets the Backup Instance friendly name. + [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. .Link https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstance #> function Test-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -149,7 +147,7 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -157,7 +155,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -229,6 +227,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Validate = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstance_Validate'; ValidateExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstance_ValidateExpanded'; @@ -244,6 +243,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -252,15 +252,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 index f84478c2928c..1179acaa1314 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupVaultNameAvailability.ps1 @@ -20,20 +20,16 @@ API to check for resource name availability .Description API to check for resource name availability .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES @@ -60,7 +56,7 @@ PARAMETER : CheckNameAvailability Request https://docs.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupvaultnameavailability #> function Test-AzDataProtectionBackupVaultNameAvailability { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Check', Mandatory)] @@ -96,7 +92,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.ICheckNameAvailabilityRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.ICheckNameAvailabilityRequest] # CheckNameAvailability Request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -170,6 +166,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Check = 'Az.DataProtection.private\Test-AzDataProtectionBackupVaultNameAvailability_Check'; CheckExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupVaultNameAvailability_CheckExpanded'; @@ -185,6 +182,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -193,15 +191,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 b/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 index 0f1a8ec3238e..160b7a70022f 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionFeatureSupport.ps1 @@ -20,16 +20,12 @@ Validates if a feature is supported .Description Validates if a feature is supported .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs @@ -88,7 +84,7 @@ param( [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20210701.IFeatureValidationRequestBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220401.IFeatureValidationRequestBase] # Base class for Backup Feature support # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -155,6 +151,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ Check = 'Az.DataProtection.private\Test-AzDataProtectionFeatureSupport_Check'; CheckExpanded = 'Az.DataProtection.private\Test-AzDataProtectionFeatureSupport_CheckExpanded'; @@ -170,6 +167,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -178,15 +176,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json index 717adb7f7924..582f70f42166 100644 --- a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json +++ b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "b1a13c45-08e2-4259-abf5-48958aff5e88" ], + "x-ms-client-request-id": [ "e56fc334-191f-44d8-aaa9-951fd770b406" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,24 +27,24 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "cda789c3-7469-45c8-8899-d3412ab94bda" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090229Z:cda789c3-7469-45c8-8899-d3412ab94bda" ], - "Date": [ "Sat, 28 Aug 2021 09:02:28 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "f8f60adc-6ba4-453f-82ce-acba9fdd031f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154357Z:f8f60adc-6ba4-453f-82ce-acba9fdd031f" ], + "Date": [ "Thu, 09 Jun 2022 15:43:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26957" ], + "Content-Length": [ "20876" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"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\":\"temp\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp\",\"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\":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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"name\":\"temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp6\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp6\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp6\",\"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-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/temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"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\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"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\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"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\"},{\"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\":\"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-4d64402b-290b-4428-ac2c-0121fec4d015\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-4d64402b-290b-4428-ac2c-0121fec4d015\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-07-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-04-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166/backup?api-version=2021-07-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-04-01", "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupHourly\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -59,17 +59,17 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-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": [ "2e5eeee1-d9a0-41c0-8502-28cdfbd691a9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090230Z:2e5eeee1-d9a0-41c0-8502-28cdfbd691a9" ], - "Date": [ "Sat, 28 Aug 2021 09:02:29 GMT" ] + "x-ms-correlation-request-id": [ "37a6674e-9b92-4b20-a526-60771d308182" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154359Z:37a6674e-9b92-4b20-a526-60771d308182" ], + "Date": [ "Thu, 09 Jun 2022 15:43:59 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -79,20 +79,20 @@ "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "e0a08c83-c876-4c83-a847-66268058281c" ], + "x-ms-client-request-id": [ "52e5065d-7fef-4268-8420-bb826ddade0f" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -107,34 +107,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "047cacc6-7984-4cbe-9595-24408d41de22" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090300Z:047cacc6-7984-4cbe-9595-24408d41de22" ], - "Date": [ "Sat, 28 Aug 2021 09:03:00 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "222c9f90-d3be-4e9e-a6b6-a0a53afa2225" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154430Z:222c9f90-d3be-4e9e-a6b6-a0a53afa2225" ], + "Date": [ "Thu, 09 Jun 2022 15:44:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "694" ], + "Content-Length": [ "721" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T09:02:30.2695509Z\",\"endTime\":\"2021-08-28T09:02:32Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T15:43:59.5139523Z\",\"endTime\":\"2022-06-09T15:44:02Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01+4": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "e0a08c83-c876-4c83-a847-66268058281c" ], + "x-ms-client-request-id": [ "52e5065d-7fef-4268-8420-bb826ddade0f" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -145,39 +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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2I1MGRlMjViLWU3YzUtNDZlYy1hNjI5LTJjOWMzMjAzOTE2ZQ==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzA0MDgyNDg2LTE0ZTEtNDgzYi05OTUzLTJkMzU1ZTMxMWM0ZQ==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "d606d1dd-1569-4ac4-a77c-13e379dd2303" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090301Z:d606d1dd-1569-4ac4-a77c-13e379dd2303" ], - "Date": [ "Sat, 28 Aug 2021 09:03:01 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "4c3aa4ec-1320-4e21-8bdb-b5f4212b3ace" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154430Z:4c3aa4ec-1320-4e21-8bdb-b5f4212b3ace" ], + "Date": [ "Thu, 09 Jun 2022 15:44:30 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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"objectType\":\"OperationJobExtendedInfo\"}", + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "bd164d40-46f9-464a-b890-34646b1422c3" ], + "x-ms-client-request-id": [ "dba9d5b7-05da-4953-a1ee-1f9ff55c4768" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -188,38 +188,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "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": [ "2eac720d-b1e9-4d7e-8606-fac42e1b0b3c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090307Z:2eac720d-b1e9-4d7e-8606-fac42e1b0b3c" ], - "Date": [ "Sat, 28 Aug 2021 09:03:07 GMT" ] + "x-ms-correlation-request-id": [ "4da20a36-d399-4cc3-bdf7-dbe5275cea85" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154436Z:4da20a36-d399-4cc3-bdf7-dbe5275cea85" ], + "Date": [ "Thu, 09 Jun 2022 15:44:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "10b5512b-b719-4bd7-a347-8471b8b33d11" ], + "x-ms-client-request-id": [ "028729e8-9a66-43a5-8513-d301d533e35e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -230,38 +230,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "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": [ "9a096fd8-6b03-4a20-ab50-6e543e1e96bc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090312Z:9a096fd8-6b03-4a20-ab50-6e543e1e96bc" ], - "Date": [ "Sat, 28 Aug 2021 09:03:12 GMT" ] + "x-ms-correlation-request-id": [ "a86381ac-4916-4558-bdda-4fba84390acf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154442Z:a86381ac-4916-4558-bdda-4fba84390acf" ], + "Date": [ "Thu, 09 Jun 2022 15:44:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "21d7a6d0-12bc-4901-830a-f6b01bd14d88" ], + "x-ms-client-request-id": [ "97e5a6ec-92f4-4c54-86be-c2e083a77cfd" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -272,38 +272,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "28129133-1c3d-41cd-bc8d-aa40bf03b9e5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090318Z:28129133-1c3d-41cd-bc8d-aa40bf03b9e5" ], - "Date": [ "Sat, 28 Aug 2021 09:03:17 GMT" ] + "x-ms-correlation-request-id": [ "3102fedd-b573-48a9-a57f-16a06effde12" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154448Z:3102fedd-b573-48a9-a57f-16a06effde12" ], + "Date": [ "Thu, 09 Jun 2022 15:44:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "e1511c8d-2e4a-4087-946a-35a092534205" ], + "x-ms-client-request-id": [ "e777c8c0-b298-450b-8218-a3704e837f9e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -314,38 +314,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "beda3f6c-699e-43e8-834a-e086c3c6a21a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090323Z:beda3f6c-699e-43e8-834a-e086c3c6a21a" ], - "Date": [ "Sat, 28 Aug 2021 09:03:23 GMT" ] + "x-ms-correlation-request-id": [ "e2266123-31b8-44f9-b5c6-13be8afd1060" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154454Z:e2266123-31b8-44f9-b5c6-13be8afd1060" ], + "Date": [ "Thu, 09 Jun 2022 15:44:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "eca99042-bead-48a7-8610-e162728cadf0" ], + "x-ms-client-request-id": [ "ba1cb055-2a27-4de8-9394-871102f4e8ad" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -356,38 +356,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "3784b88b-b469-4fc4-879f-7adb3b4a9d04" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090329Z:3784b88b-b469-4fc4-879f-7adb3b4a9d04" ], - "Date": [ "Sat, 28 Aug 2021 09:03:28 GMT" ] + "x-ms-correlation-request-id": [ "8e75eae6-474d-4abc-b832-b99b49b6fcaa" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154459Z:8e75eae6-474d-4abc-b832-b99b49b6fcaa" ], + "Date": [ "Thu, 09 Jun 2022 15:44:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "7c38340d-8c20-4639-bada-6f524befc3e5" ], + "x-ms-client-request-id": [ "25d7ccf6-3ca9-4012-a2ea-8b1a8389f496" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -398,38 +398,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "d1155a5e-253e-4ab9-90fc-d9e0bf29f54e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090334Z:d1155a5e-253e-4ab9-90fc-d9e0bf29f54e" ], - "Date": [ "Sat, 28 Aug 2021 09:03:34 GMT" ] + "x-ms-correlation-request-id": [ "67bbb1d9-4196-414f-8202-c4ae9cabfc4e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154505Z:67bbb1d9-4196-414f-8202-c4ae9cabfc4e" ], + "Date": [ "Thu, 09 Jun 2022 15:45:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "47902dbf-f677-45b8-b180-7e42d36cc2c8" ], + "x-ms-client-request-id": [ "7d677eaa-c196-4c80-ab81-765b5dd3c16b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -440,38 +440,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a6bc6d3f-c786-4a6a-8ca1-a371bfe9794e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090340Z:a6bc6d3f-c786-4a6a-8ca1-a371bfe9794e" ], - "Date": [ "Sat, 28 Aug 2021 09:03:39 GMT" ] + "x-ms-correlation-request-id": [ "4515e336-80a6-44a6-b064-827b3099934c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154511Z:4515e336-80a6-44a6-b064-827b3099934c" ], + "Date": [ "Thu, 09 Jun 2022 15:45:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "196d09e9-f617-42dc-acc5-504428d2c3df" ], + "x-ms-client-request-id": [ "96066eb3-9d43-4c2c-92a4-faaffa7c50b5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -482,38 +482,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "af191f4a-9854-43d1-b7df-6af907a43704" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090345Z:af191f4a-9854-43d1-b7df-6af907a43704" ], - "Date": [ "Sat, 28 Aug 2021 09:03:45 GMT" ] + "x-ms-correlation-request-id": [ "08ea960d-7234-4c46-bc26-4452fae2333f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154517Z:08ea960d-7234-4c46-bc26-4452fae2333f" ], + "Date": [ "Thu, 09 Jun 2022 15:45:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "f97aaa97-864f-434d-ad33-e16eeec4a161" ], + "x-ms-client-request-id": [ "1ea88d51-8be5-4106-8b23-27e5fb44a26a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -524,38 +524,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "72d25015-edc6-4234-a9b7-3a87de40cb88" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090351Z:72d25015-edc6-4234-a9b7-3a87de40cb88" ], - "Date": [ "Sat, 28 Aug 2021 09:03:50 GMT" ] + "x-ms-correlation-request-id": [ "82c339ad-0aa7-4a70-9573-ead8735d1fb7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154522Z:82c339ad-0aa7-4a70-9573-ead8735d1fb7" ], + "Date": [ "Thu, 09 Jun 2022 15:45:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "bef9d974-b50a-412c-8905-699ee3ed3138" ], + "x-ms-client-request-id": [ "fec1a082-5745-4287-8e7c-80d380066d76" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -566,38 +566,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "779f211f-96a6-45e7-879a-309e2d5b5b2d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090356Z:779f211f-96a6-45e7-879a-309e2d5b5b2d" ], - "Date": [ "Sat, 28 Aug 2021 09:03:55 GMT" ] + "x-ms-correlation-request-id": [ "6451a42c-f348-4d5f-842a-ddc86da024f4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154528Z:6451a42c-f348-4d5f-842a-ddc86da024f4" ], + "Date": [ "Thu, 09 Jun 2022 15:45:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "2e55887e-bf57-4ee2-b173-b2a7f4c25aee" ], + "x-ms-client-request-id": [ "66278a3f-c6e4-4406-9e5d-251173414aa3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -608,38 +608,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a6286b3b-6afd-415e-9837-99a80832b624" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090402Z:a6286b3b-6afd-415e-9837-99a80832b624" ], - "Date": [ "Sat, 28 Aug 2021 09:04:01 GMT" ] + "x-ms-correlation-request-id": [ "7a512176-c251-4bdb-8bbd-c858088dacbf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154534Z:7a512176-c251-4bdb-8bbd-c858088dacbf" ], + "Date": [ "Thu, 09 Jun 2022 15:45:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "545b037f-9d0a-4da7-8821-596096821e92" ], + "x-ms-client-request-id": [ "28ef91e4-efde-42cb-a76f-9fa629863923" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -650,38 +650,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1340a942-d3bd-45bb-a659-139deee209f5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090407Z:1340a942-d3bd-45bb-a659-139deee209f5" ], - "Date": [ "Sat, 28 Aug 2021 09:04:07 GMT" ] + "x-ms-correlation-request-id": [ "d1c7cee5-9278-4c3c-a600-f95c3472d5ce" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154540Z:d1c7cee5-9278-4c3c-a600-f95c3472d5ce" ], + "Date": [ "Thu, 09 Jun 2022 15:45:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "9fcfb421-829b-4eda-ae29-7458b08e0fbd" ], + "x-ms-client-request-id": [ "23c53900-f553-4fc3-9dae-4fd0c0b377f2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -692,38 +692,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4c3329ba-d1c8-4b0a-a2a2-4a2784f0c9db" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090413Z:4c3329ba-d1c8-4b0a-a2a2-4a2784f0c9db" ], - "Date": [ "Sat, 28 Aug 2021 09:04:12 GMT" ] + "x-ms-correlation-request-id": [ "c17ceba2-2459-4d03-975e-3ee012cb6daa" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154546Z:c17ceba2-2459-4d03-975e-3ee012cb6daa" ], + "Date": [ "Thu, 09 Jun 2022 15:45:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "30fb01b7-a2c5-419b-8a51-8bec10fd6f89" ], + "x-ms-client-request-id": [ "6893cce7-5ed4-43ed-9d71-75c53d8b090a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -734,38 +734,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "fb6d14b2-8954-4d2b-88fa-1e04f2cf7917" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090418Z:fb6d14b2-8954-4d2b-88fa-1e04f2cf7917" ], - "Date": [ "Sat, 28 Aug 2021 09:04:17 GMT" ] + "x-ms-correlation-request-id": [ "ec008bd4-9371-4f28-bd0b-2851fced81fc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154551Z:ec008bd4-9371-4f28-bd0b-2851fced81fc" ], + "Date": [ "Thu, 09 Jun 2022 15:45:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "c3a1812f-eb2a-46a7-b919-fb8b859a7a1e" ], + "x-ms-client-request-id": [ "779861fd-9005-429e-ae16-bbeec8034f78" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -776,38 +776,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "dd20dbf1-d2b0-4dde-aeb5-c4906f186770" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090424Z:dd20dbf1-d2b0-4dde-aeb5-c4906f186770" ], - "Date": [ "Sat, 28 Aug 2021 09:04:23 GMT" ] + "x-ms-correlation-request-id": [ "eec569b1-afe1-4ae7-9799-599817d6b131" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154557Z:eec569b1-afe1-4ae7-9799-599817d6b131" ], + "Date": [ "Thu, 09 Jun 2022 15:45:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "940aaa71-78f8-459f-bb45-ce54d6d1c8ba" ], + "x-ms-client-request-id": [ "61ec0612-d1cc-4593-aa26-c26a7500ab9f" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -818,38 +818,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "38a3887e-02d3-499b-9671-901e9aa8ee03" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090429Z:38a3887e-02d3-499b-9671-901e9aa8ee03" ], - "Date": [ "Sat, 28 Aug 2021 09:04:29 GMT" ] + "x-ms-correlation-request-id": [ "e8894f64-2ee5-4a29-98ca-9dc68f7e7775" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154603Z:e8894f64-2ee5-4a29-98ca-9dc68f7e7775" ], + "Date": [ "Thu, 09 Jun 2022 15:46:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "5911e3be-683b-4116-ba76-518b9513316a" ], + "x-ms-client-request-id": [ "e7624b4f-7f4e-47da-b1bd-0acb5222d113" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -860,38 +860,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4329b877-261c-4b0d-8d72-a8da33a77a0d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090435Z:4329b877-261c-4b0d-8d72-a8da33a77a0d" ], - "Date": [ "Sat, 28 Aug 2021 09:04:34 GMT" ] + "x-ms-correlation-request-id": [ "e4fc5b03-66e1-4dd5-9ac1-0005aaae9f36" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154609Z:e4fc5b03-66e1-4dd5-9ac1-0005aaae9f36" ], + "Date": [ "Thu, 09 Jun 2022 15:46:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "60059d93-d4d5-4fd1-b016-55263d96bd50" ], + "x-ms-client-request-id": [ "36296d1e-0d5b-41e1-bc0a-9d35d9577ad5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -902,38 +902,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], "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": [ "107ed405-ad15-46d6-ad6c-ae01fae9ac7b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090440Z:107ed405-ad15-46d6-ad6c-ae01fae9ac7b" ], - "Date": [ "Sat, 28 Aug 2021 09:04:39 GMT" ] + "x-ms-correlation-request-id": [ "323bb139-e671-4904-9df5-7dad6beabe8b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154614Z:323bb139-e671-4904-9df5-7dad6beabe8b" ], + "Date": [ "Thu, 09 Jun 2022 15:46:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "a447f805-fb5c-40ff-bd6f-659deeb7ea44" ], + "x-ms-client-request-id": [ "aeaac450-f419-4f05-86f8-23aca1ed8099" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -944,38 +944,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "3cecee9c-6a20-432a-816f-30e375f6907d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090446Z:3cecee9c-6a20-432a-816f-30e375f6907d" ], - "Date": [ "Sat, 28 Aug 2021 09:04:45 GMT" ] + "x-ms-correlation-request-id": [ "15f095c4-c395-4f45-a555-b0d4907699ac" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154620Z:15f095c4-c395-4f45-a555-b0d4907699ac" ], + "Date": [ "Thu, 09 Jun 2022 15:46:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "7dbb461c-b875-4c40-b803-78967f1249a7" ], + "x-ms-client-request-id": [ "e0fab3d3-5611-46a4-900d-4b2d20edacb1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -986,38 +986,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "5003d32d-9381-4e89-b23b-2ae709f9a01b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090452Z:5003d32d-9381-4e89-b23b-2ae709f9a01b" ], - "Date": [ "Sat, 28 Aug 2021 09:04:51 GMT" ] + "x-ms-correlation-request-id": [ "322a08bc-5ec8-443c-a234-453c69ced72b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154626Z:322a08bc-5ec8-443c-a234-453c69ced72b" ], + "Date": [ "Thu, 09 Jun 2022 15:46:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "5fcef0fc-f0bc-47e9-8757-6a99dbd364fc" ], + "x-ms-client-request-id": [ "5b702c6c-b128-49aa-9506-c5b2175f36f5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1028,38 +1028,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e589f689-005a-4fb1-9aef-a24ec0cd998b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090457Z:e589f689-005a-4fb1-9aef-a24ec0cd998b" ], - "Date": [ "Sat, 28 Aug 2021 09:04:56 GMT" ] + "x-ms-correlation-request-id": [ "74d7a8f9-8c6b-4080-9df0-2e01ce71dd3f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154632Z:74d7a8f9-8c6b-4080-9df0-2e01ce71dd3f" ], + "Date": [ "Thu, 09 Jun 2022 15:46:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "7d8e3978-b8fd-4615-a842-e99ab1bd4ec0" ], + "x-ms-client-request-id": [ "88720a2e-8195-4777-a50e-63e2321a6f7b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1070,38 +1070,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "65973c56-45f9-4249-8b62-c010443f860c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090503Z:65973c56-45f9-4249-8b62-c010443f860c" ], - "Date": [ "Sat, 28 Aug 2021 09:05:02 GMT" ] + "x-ms-correlation-request-id": [ "07b21ba4-4e5c-4a11-b2df-604c6f1e6892" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154638Z:07b21ba4-4e5c-4a11-b2df-604c6f1e6892" ], + "Date": [ "Thu, 09 Jun 2022 15:46:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "43ce3eff-d996-4c3d-a935-c90d52710393" ], + "x-ms-client-request-id": [ "e277d5ac-f8bb-4827-a131-4ddce0793057" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1112,38 +1112,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "7691b088-1fe8-49aa-8d50-4d5a5f376830" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090509Z:7691b088-1fe8-49aa-8d50-4d5a5f376830" ], - "Date": [ "Sat, 28 Aug 2021 09:05:09 GMT" ] + "x-ms-correlation-request-id": [ "6d7a91f2-f2f1-49d5-97ee-3c6aeb103a3a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154644Z:6d7a91f2-f2f1-49d5-97ee-3c6aeb103a3a" ], + "Date": [ "Thu, 09 Jun 2022 15:46:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2044" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A44%3A00.7129998Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bd8043fc-a0a7-4d31-9184-59342ef95691?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "1d9619b2-b84e-4795-9498-0923d5018bd4" ], + "x-ms-client-request-id": [ "985c0afc-7dc0-4107-8686-00d2bfd59c7c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1154,38 +1154,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "81b30960-129c-4848-8dc7-62de91c5a021" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090515Z:81b30960-129c-4848-8dc7-62de91c5a021" ], - "Date": [ "Sat, 28 Aug 2021 09:05:15 GMT" ] + "x-ms-correlation-request-id": [ "e2347ff3-54bb-40fb-ae30-70a26fe069d5" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154650Z:e2347ff3-54bb-40fb-ae30-70a26fe069d5" ], + "Date": [ "Thu, 09 Jun 2022 15:46:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2190" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"52e5065d-7fef-4268-8420-bb826ddade0f\",\"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-09T15%3A46%3A46.0395793Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:44:00.0099798Z\",\"endTime\":\"2022-06-09T15:46:45.4263891Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M45.4164093S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"e4dc93560f2e424abfa623df7f204d1b\",\"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/bd8043fc-a0a7-4d31-9184-59342ef95691\",\"name\":\"bd8043fc-a0a7-4d31-9184-59342ef95691\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+29": { + "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-04-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/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "e8ce7a1d-48ab-4bcc-9954-1ffb33cb2a24" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "x-ms-client-request-id": [ "a11870e6-9797-4f63-8a1c-dcec4bfbd020" ], + "CommandName": [ "Get-AzDataProtectionBackupVault" ], + "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1196,38 +1196,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "214a1798-7961-43f7-8c49-ea237b2a94d3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090520Z:214a1798-7961-43f7-8c49-ea237b2a94d3" ], - "Date": [ "Sat, 28 Aug 2021 09:05:20 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-correlation-request-id": [ "68c893e6-4b9f-4139-a7a9-e7fb581c73f7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154653Z:68c893e6-4b9f-4139-a7a9-e7fb581c73f7" ], + "Date": [ "Thu, 09 Jun 2022 15:46:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "691" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+30": { + "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-04-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/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "cef617d5-e399-4bdd-8843-a456ea6e2f42" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "x-ms-client-request-id": [ "85e3fe92-299a-46c4-864e-99979e2d3ece" ], + "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], + "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1238,38 +1238,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e3bdbf2b-17dc-43ef-ad75-9fd79b55faec" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090526Z:e3bdbf2b-17dc-43ef-ad75-9fd79b55faec" ], - "Date": [ "Sat, 28 Aug 2021 09:05:25 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-correlation-request-id": [ "64cd62dc-4fc5-48f7-bf47-0bc38dd887e3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154653Z:64cd62dc-4fc5-48f7-bf47-0bc38dd887e3" ], + "Date": [ "Thu, 09 Jun 2022 15:46:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2939" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+31": { + "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-04-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/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "ae10220e-70ea-4625-9a61-4116842928d6" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "x-ms-client-request-id": [ "746f11f3-68f2-45e2-9735-ec02a9a95acb" ], + "CommandName": [ "Get-AzDataProtectionBackupInstance" ], + "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1280,81 +1280,77 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4e114161-746e-4544-8309-889900ea92c1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090532Z:4e114161-746e-4544-8309-889900ea92c1" ], - "Date": [ "Sat, 28 Aug 2021 09:05:31 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-correlation-request-id": [ "a5266729-5c21-4a96-a7c8-9ee7e46f9cff" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154654Z:a5266729-5c21-4a96-a7c8-9ee7e46f9cff" ], + "Date": [ "Thu, 09 Jun 2022 15:46:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "1860" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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\"}]}", "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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+32": { + "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-04-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/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, + "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-04-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": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "8f1147d3-15b3-478b-aa9d-b80cf1fad576" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "140" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 202, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-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": [ "173b03cb-0ac1-42f2-ac1d-f0a3b3acc0f8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090537Z:173b03cb-0ac1-42f2-ac1d-f0a3b3acc0f8" ], - "Date": [ "Sat, 28 Aug 2021 09:05:37 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "4fdfdc54-00a6-45de-bdd4-b577c922a39b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154655Z:4fdfdc54-00a6-45de-bdd4-b577c922a39b" ], + "Date": [ "Thu, 09 Jun 2022 15:46:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] + "Expires": [ "-1" ], + "Content-Length": [ "0" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/backupJobs/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+33": { + "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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "5ed81384-d663-478b-95a1-6111ad683fca" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "x-ms-client-request-id": [ "4d231ff8-48cc-4e1c-b50f-423af38fc776" ], + "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], + "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1364,39 +1360,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "22d9f417-cd2c-4445-8994-abfebb67e805" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090543Z:22d9f417-cd2c-4445-8994-abfebb67e805" ], - "Date": [ "Sat, 28 Aug 2021 09:05:43 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-correlation-request-id": [ "5354c248-bb99-406b-8bf9-687f4616b79b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154726Z:5354c248-bb99-406b-8bf9-687f4616b79b" ], + "Date": [ "Thu, 09 Jun 2022 15:47:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "737" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T15:46:55.4176607Z\",\"endTime\":\"2022-06-09T15:46:58Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+34": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "a317edda-da8a-4129-92b3-1a62fe043121" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "x-ms-client-request-id": [ "4d231ff8-48cc-4e1c-b50f-423af38fc776" ], + "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], + "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1406,38 +1402,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhOGE0ZGU1LTU5NjgtNGYyNy05N2RlLWUxYWQ3YjA5ZTA2MQ==?api-version=2022-04-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": [ "1c52aed4-85c5-4c04-905b-70f0b734e176" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090548Z:1c52aed4-85c5-4c04-905b-70f0b734e176" ], - "Date": [ "Sat, 28 Aug 2021 09:05:48 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], + "x-ms-correlation-request-id": [ "ec5fdeb3-9d76-401c-857b-9e1d1a4335b4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154726Z:ec5fdeb3-9d76-401c-857b-9e1d1a4335b4" ], + "Date": [ "Thu, 09 Jun 2022 15:47:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "245" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+35": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "23a6ee32-8d11-4903-969d-9841020163c7" ], + "x-ms-client-request-id": [ "c6be34d2-cc8b-4a35-9fb4-252d54f0f510" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1448,38 +1446,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a4a2414b-6306-4d2a-ac61-c910ac2324d1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090554Z:a4a2414b-6306-4d2a-ac61-c910ac2324d1" ], - "Date": [ "Sat, 28 Aug 2021 09:05:54 GMT" ] + "x-ms-correlation-request-id": [ "8fa4c729-30d2-4126-a969-f290ef4ceffc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154737Z:8fa4c729-30d2-4126-a969-f290ef4ceffc" ], + "Date": [ "Thu, 09 Jun 2022 15:47:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+36": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "ed16ce45-f781-4932-b0bb-caacabcadc96" ], + "x-ms-client-request-id": [ "431143e5-df34-429f-8da9-a679d0678aaa" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1490,38 +1488,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "9d9bf469-ef6a-45cc-8507-f47b79e96997" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090600Z:9d9bf469-ef6a-45cc-8507-f47b79e96997" ], - "Date": [ "Sat, 28 Aug 2021 09:05:59 GMT" ] + "x-ms-correlation-request-id": [ "da4964bd-e137-4c54-9d59-5bf8ea06c2cf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154748Z:da4964bd-e137-4c54-9d59-5bf8ea06c2cf" ], + "Date": [ "Thu, 09 Jun 2022 15:47:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+37": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "c1677e36-6128-42e7-bc9a-c111bffc69a8" ], + "x-ms-client-request-id": [ "0ecf4050-8282-48f4-91f3-3e556add0ce4" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1532,38 +1530,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "306fcbb4-21a1-4588-bfee-05347929db93" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090605Z:306fcbb4-21a1-4588-bfee-05347929db93" ], - "Date": [ "Sat, 28 Aug 2021 09:06:05 GMT" ] + "x-ms-correlation-request-id": [ "7bc11b21-b847-4a2e-abeb-24cb3228c76d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154758Z:7bc11b21-b847-4a2e-abeb-24cb3228c76d" ], + "Date": [ "Thu, 09 Jun 2022 15:47:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+38": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "44432804-7e2d-46ea-8a7b-0e0fbf79039b" ], + "x-ms-client-request-id": [ "b06a8a2e-0a52-43ee-acdc-9a7e6438b878" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1574,38 +1572,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "77f2fa98-83e3-424f-9af5-fce5450096c8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090611Z:77f2fa98-83e3-424f-9af5-fce5450096c8" ], - "Date": [ "Sat, 28 Aug 2021 09:06:11 GMT" ] + "x-ms-correlation-request-id": [ "4d62fe3e-b698-43eb-aea8-da62b81ab06e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154809Z:4d62fe3e-b698-43eb-aea8-da62b81ab06e" ], + "Date": [ "Thu, 09 Jun 2022 15:48:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+39": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "cb49442c-ad82-49ba-9978-0dfe634c8125" ], + "x-ms-client-request-id": [ "196b6b0b-2072-4b7e-8395-17ab8d25a62e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1616,38 +1614,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "963ddbf0-1848-4e5b-8b19-31ee811a415b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090617Z:963ddbf0-1848-4e5b-8b19-31ee811a415b" ], - "Date": [ "Sat, 28 Aug 2021 09:06:17 GMT" ] + "x-ms-correlation-request-id": [ "e86bb0fc-1f1e-49cc-a5ce-d6b7584e4f68" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154820Z:e86bb0fc-1f1e-49cc-a5ce-d6b7584e4f68" ], + "Date": [ "Thu, 09 Jun 2022 15:48:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+40": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "01e35dc8-72e9-4fcc-be7b-31b0c4abd4fa" ], + "x-ms-client-request-id": [ "4b7cdebe-1000-419d-8160-789935061e22" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1658,834 +1656,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "b8d354dc-859e-44e7-b39e-c5771e8cc52c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090623Z:b8d354dc-859e-44e7-b39e-c5771e8cc52c" ], - "Date": [ "Sat, 28 Aug 2021 09:06:22 GMT" ] + "x-ms-correlation-request-id": [ "2d22b922-f0de-4a81-afaf-a1289a9ce1a7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154831Z:2d22b922-f0de-4a81-afaf-a1289a9ce1a7" ], + "Date": [ "Thu, 09 Jun 2022 15:48:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A46%3A56.7576735Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01+41": { + "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/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/6175ebd5-b30a-4476-a8f0-05252c98aaa5?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "52bf4a12-ed42-4ced-8b21-78911dc25e09" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "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": [ "6463eb27-29c0-43d9-a37e-ccd4f1e3167e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090629Z:6463eb27-29c0-43d9-a37e-ccd4f1e3167e" ], - "Date": [ "Sat, 28 Aug 2021 09:06:28 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "b935a4f4-d106-4f94-9ae3-aba0fbdf57b3" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], - "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": [ "b32a013e-90b8-4ac2-8dcb-c57d199d65e6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090634Z:b32a013e-90b8-4ac2-8dcb-c57d199d65e6" ], - "Date": [ "Sat, 28 Aug 2021 09:06:34 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "961a76bc-67ad-42ca-8944-b8e37cdde503" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], - "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": [ "f4527fa5-ae3c-4d35-adfd-e907fed6df37" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090640Z:f4527fa5-ae3c-4d35-adfd-e907fed6df37" ], - "Date": [ "Sat, 28 Aug 2021 09:06:39 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "06e7406a-c041-410e-a44e-4973164c289c" ], + "x-ms-client-request-id": [ "3448a178-da05-4635-af0c-7b9b2a00c980" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], - "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": [ "3e14ed24-b516-45e9-8492-969a9ab38471" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090645Z:3e14ed24-b516-45e9-8492-969a9ab38471" ], - "Date": [ "Sat, 28 Aug 2021 09:06:44 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "e9c81921-9a35-4240-81c8-2db68c40550a" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], - "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": [ "f67a62ed-b110-491b-8f9b-304135f7c6d6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090650Z:f67a62ed-b110-491b-8f9b-304135f7c6d6" ], - "Date": [ "Sat, 28 Aug 2021 09:06:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "b0cc0de4-c1d4-4768-8a73-b7d5f7a4c041" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], - "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": [ "d9366f5d-535d-4d75-825e-339a663d3bc9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090656Z:d9366f5d-535d-4d75-825e-339a663d3bc9" ], - "Date": [ "Sat, 28 Aug 2021 09:06:55 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "e6cd1728-8afd-4835-820c-06db80d27d1d" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "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": [ "04cb65e1-751b-499f-aa96-80fbbde91f62" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090701Z:04cb65e1-751b-499f-aa96-80fbbde91f62" ], - "Date": [ "Sat, 28 Aug 2021 09:07:01 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2044" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A02%3A31.0106076Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-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/2e1c2964-65a0-440d-918c-a8c7648e1f2e?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "9ad6b206-67c5-4c9a-8b91-a2f73bc42225" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], - "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": [ "6f4157f7-e79f-45a6-82b9-364567104876" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090707Z:6f4157f7-e79f-45a6-82b9-364567104876" ], - "Date": [ "Sat, 28 Aug 2021 09:07:06 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2189" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"e0a08c83-c876-4c83-a847-66268058281c\",\"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\u00272021-08-28T09%3A07%3A05.6423296Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:02:30.7331406Z\",\"endTime\":\"2021-08-28T09:07:05.1369074Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT4M34.4037668S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"a4146fc555da4796b03a367cb98bd1a3\",\"recoveryPointTime\":\"0001-01-01T00:00:00\"},\"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/2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"name\":\"2e1c2964-65a0-440d-918c-a8c7648e1f2e\",\"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=2021-07-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=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "9f802bb5-27b5-4cf3-b030-2bb08de320bd" ], - "CommandName": [ "Get-AzDataProtectionBackupVault" ], - "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-correlation-request-id": [ "3b4da966-1698-4a27-800a-4720612f2360" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090707Z:3b4da966-1698-4a27-800a-4720612f2360" ], - "Date": [ "Sat, 28 Aug 2021 09:07:07 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "651" ], - "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\"}]},\"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=2021-07-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=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "dffa7b78-ca41-434f-810a-442c32a3764b" ], - "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], - "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "ce53b3bc-bfbb-42ae-91ce-624019d0a88a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090709Z:ce53b3bc-bfbb-42ae-91ce-624019d0a88a" ], - "Date": [ "Sat, 28 Aug 2021 09:07:08 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1508" ], - "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\"}]}", - "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=2021-07-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=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "59af8ed8-6150-4a46-989f-f09d8afc07c1" ], - "CommandName": [ "Get-AzDataProtectionBackupInstance" ], - "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "836e1d91-0f14-4105-b4b0-c0d632dfbd57" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090709Z:836e1d91-0f14-4105-b4b0-c0d632dfbd57" ], - "Date": [ "Sat, 28 Aug 2021 09:07:08 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1860" ], - "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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"name\":\"oss-pstest-server-postgres-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e/backup?api-version=2021-07-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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e/backup?api-version=2021-07-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01" ], - "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-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": [ "21a0e1bf-7150-4bd9-ab22-d92eec5af32c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090710Z:21a0e1bf-7150-4bd9-ab22-d92eec5af32c" ], - "Date": [ "Sat, 28 Aug 2021 09:07:09 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/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "2e5a1514-9278-4494-81cf-c7a4d0b4fd50" ], - "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], - "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "662de0cb-9a2f-4373-950d-1ff1020f0758" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090740Z:662de0cb-9a2f-4373-950d-1ff1020f0758" ], - "Date": [ "Sat, 28 Aug 2021 09:07:39 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "702" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T09:07:09.9637008Z\",\"endTime\":\"2021-08-28T09:07:12Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "2e5a1514-9278-4494-81cf-c7a4d0b4fd50" ], - "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], - "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU5ZTE1NDFjLTk5YjctNDkyNi04ZmQ4LTc0MzE2NDhiYzY0OA==?api-version=2021-07-01" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "01edca93-38e9-4203-a754-c5071ed99d33" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090741Z:01edca93-38e9-4203-a754-c5071ed99d33" ], - "Date": [ "Sat, 28 Aug 2021 09:07:40 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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "9496dd61-82be-4473-aa2a-a9a9e7713c8d" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1abf6ffe-54eb-4888-a0f2-8c9b28274e04" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090751Z:1abf6ffe-54eb-4888-a0f2-8c9b28274e04" ], - "Date": [ "Sat, 28 Aug 2021 09:07:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "82aa2652-f475-49e6-b52e-a4d4e578a326" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "220f7883-9042-4fcd-802e-cb2d85d033dc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090802Z:220f7883-9042-4fcd-802e-cb2d85d033dc" ], - "Date": [ "Sat, 28 Aug 2021 09:08:02 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "7c386e7f-f3de-4cfb-8ea3-71a3dfd7bdc4" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "c2f4e74b-cdc3-42e3-a603-c34f9a14a378" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090812Z:c2f4e74b-cdc3-42e3-a603-c34f9a14a378" ], - "Date": [ "Sat, 28 Aug 2021 09:08:12 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "4d376d9d-7389-429a-845a-774bfe63bcab" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "2c826225-5fdf-4610-af03-3793e9aba61a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090823Z:2c826225-5fdf-4610-af03-3793e9aba61a" ], - "Date": [ "Sat, 28 Aug 2021 09:08:22 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "11b27b09-bdfe-4883-b5b2-935a380ba1b4" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "0718d4c0-6714-4146-a785-c2418ab8a3d2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090833Z:0718d4c0-6714-4146-a785-c2418ab8a3d2" ], - "Date": [ "Sat, 28 Aug 2021 09:08:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "9039563c-7607-4400-a68e-855fccd53f0f" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2502,58 +1704,16 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "b8b8642b-485f-4516-968b-07955ff0ac25" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090844Z:b8b8642b-485f-4516-968b-07955ff0ac25" ], - "Date": [ "Sat, 28 Aug 2021 09:08:43 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A07%3A10.9899452Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "4afc43bc-0abd-4499-8b65-d5c886422e43" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "dbd01f8f-6976-4342-9f62-f0b793757ddf" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T090854Z:dbd01f8f-6976-4342-9f62-f0b793757ddf" ], - "Date": [ "Sat, 28 Aug 2021 09:08:54 GMT" ] + "x-ms-correlation-request-id": [ "9af4e6d4-b042-4175-9da3-1c95d16038d2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154841Z:9af4e6d4-b042-4175-9da3-1c95d16038d2" ], + "Date": [ "Thu, 09 Jun 2022 15:48:41 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2298" ], + "Content-Length": [ "2299" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2e5a1514-9278-4494-81cf-c7a4d0b4fd50\",\"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-6a6d23b3-604f-4bb5-b2a2-835dcb38de5e\",\"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\u00272021-08-28T09%3A08%3A46.8304784Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:07:10.5459031Z\",\"endTime\":\"2021-08-28T09:08:46.7041428Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M36.1582397S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"1438e4a596d449a69abb3dd48d1c6d09\",\"recoveryPointTime\":\"0001-01-01T00:00:00\"},\"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/e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"name\":\"e0b55d69-a0a8-40d5-96cc-9e9b71c55bff\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4d231ff8-48cc-4e1c-b50f-423af38fc776\",\"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-09T15%3A48%3A31.2430579Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:46:56.1658078Z\",\"endTime\":\"2022-06-09T15:48:31.0810985Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M34.9152907S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"a1d381321aee412480e8e9965514385f\",\"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/6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"name\":\"6175ebd5-b30a-4476-a8f0-05252c98aaa5\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/DiskBackupScenario.Recording.json b/src/DataProtection/test/DiskBackupScenario.Recording.json index d0132d67248c..3a6749258f37 100644 --- a/src/DataProtection/test/DiskBackupScenario.Recording.json +++ b/src/DataProtection/test/DiskBackupScenario.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "29eec06d-697e-41e6-a3f5-0c9571fce6bf" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "5e338891-c9b8-407e-80fd-78008b585e02" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,33 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "d72b319f-feeb-480e-aa2a-d04e28231771" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091529Z:d72b319f-feeb-480e-aa2a-d04e28231771" ], - "Date": [ "Sat, 28 Aug 2021 09:15:28 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "83fb697f-9602-431e-9539-59458dbeacf4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154843Z:83fb697f-9602-431e-9539-59458dbeacf4" ], + "Date": [ "Thu, 09 Jun 2022 15:48:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "523" ], + "Content-Length": [ "563" ], "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\"}]},\"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},\"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=2021-07-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-04-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "cdee701b-9871-4280-8dcd-edfaeaca1d50" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "ae90b994-e893-43f3-aca9-23918bebedc4" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -69,33 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "6ba91c12-e717-415e-8c6a-a91287c86e17" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091530Z:6ba91c12-e717-415e-8c6a-a91287c86e17" ], - "Date": [ "Sat, 28 Aug 2021 09:15:29 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-correlation-request-id": [ "7e59ed25-866b-4bd3-a1f8-a57aea9c81c6" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154843Z:7e59ed25-866b-4bd3-a1f8-a57aea9c81c6" ], + "Date": [ "Thu, 09 Jun 2022 15:48:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26957" ], + "Content-Length": [ "20876" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"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\":\"temp\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp\",\"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\":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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"name\":\"temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp6\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp6\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp6\",\"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-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/temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"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\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"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\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"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\"},{\"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\":\"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-4d64402b-290b-4428-ac2c-0121fec4d015\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-4d64402b-290b-4428-ac2c-0121fec4d015\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "153dae92-def7-4559-b9b9-eb2f9ec12d4b" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "e48d2350-5559-46c7-8871-2758079b878f" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -111,10 +111,10 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "1a6b5604-e542-4a55-a440-c749e6328ce1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091530Z:1a6b5604-e542-4a55-a440-c749e6328ce1" ], - "Date": [ "Sat, 28 Aug 2021 09:15:30 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-correlation-request-id": [ "142a5899-3663-4cc6-ada5-c377a2a471a3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154844Z:142a5899-3663-4cc6-ada5-c377a2a471a3" ], + "Date": [ "Thu, 09 Jun 2022 15:48:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1469" ], @@ -125,19 +125,19 @@ "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "dba43106-e7b8-4ae0-9d67-eee28f227a55" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "d1c3fb1f-04f7-419b-80c1-f7864f8a9358" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -153,24 +153,24 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "06aaadba-2387-484c-a9c8-1e7b3336621d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091531Z:06aaadba-2387-484c-a9c8-1e7b3336621d" ], - "Date": [ "Sat, 28 Aug 2021 09:15:30 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-correlation-request-id": [ "7d7c1e79-d8b1-4012-90c1-43f51776e792" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154845Z:7d7c1e79-d8b1-4012-90c1-43f51776e792" ], + "Date": [ "Thu, 09 Jun 2022 15:48:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20478" ], + "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\":\"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\":[{\"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\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-06-06T21: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/abcoss\",\"name\":\"abcoss\",\"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=2021-07-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-04-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=2021-07-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-04-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": { @@ -185,17 +185,17 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-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": [ "b482ea2e-fa15-426c-95ab-5b01e3d895cb" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091531Z:b482ea2e-fa15-426c-95ab-5b01e3d895cb" ], - "Date": [ "Sat, 28 Aug 2021 09:15:31 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "3f5487ed-b581-4bdc-bb7d-20111212fa74" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154846Z:3f5487ed-b581-4bdc-bb7d-20111212fa74" ], + "Date": [ "Thu, 09 Jun 2022 15:48:45 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -205,20 +205,20 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "9cecc3c1-64f4-4210-9437-015ee51e198a" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "f5a93b12-1b66-47e1-b99e-ecdcd26be7eb" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -231,36 +231,36 @@ "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "53a468b6-4c07-4763-970d-38ae0ad068f8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091602Z:53a468b6-4c07-4763-970d-38ae0ad068f8" ], - "Date": [ "Sat, 28 Aug 2021 09:16:01 GMT" ] + "x-ms-correlation-request-id": [ "3c12c5ec-79cc-4b33-9f07-610747b5a856" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154916Z:3c12c5ec-79cc-4b33-9f07-610747b5a856" ], + "Date": [ "Thu, 09 Jun 2022 15:49:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "694" ], + "Content-Length": [ "721" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T09:15:31.6855446Z\",\"endTime\":\"2021-08-28T09:15:35Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T15:48:45.9108384Z\",\"endTime\":\"2022-06-09T15:48:48Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"objectType\":\"OperationJobExtendedInfo\"}}", "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01+7": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "9cecc3c1-64f4-4210-9437-015ee51e198a" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "f5a93b12-1b66-47e1-b99e-ecdcd26be7eb" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -271,81 +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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Q0NWY4MDczLWNkMDEtNGI4Ny05NmVjLTdhOWY4ZmE5ODhhMA==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2ZkNTdjYjFlLTI3YzQtNDgyMi1hNjEzLWZjNjI0M2U5NjhmOQ==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "82a387cf-24a1-440a-9683-a703226aff3d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091602Z:82a387cf-24a1-440a-9683-a703226aff3d" ], - "Date": [ "Sat, 28 Aug 2021 09:16:02 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-correlation-request-id": [ "d56927ab-da2f-4435-9630-f6ab64a93d76" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154918Z:d56927ab-da2f-4435-9630-f6ab64a93d76" ], + "Date": [ "Thu, 09 Jun 2022 15:49:18 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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "b9b8b9e3-1c49-4a96-8a7d-e7a09bb5044f" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "269aed8d-1f0e-441d-bffc-a81b7d334fbc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091608Z:269aed8d-1f0e-441d-bffc-a81b7d334fbc" ], - "Date": [ "Sat, 28 Aug 2021 09:16:08 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2057" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "340abf40-342c-478a-934a-7ae9f5cae675" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "6e69c900-71d0-497b-b412-94e470e4d0fd" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -356,38 +314,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], "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": [ "e4ed0b60-575c-4455-b694-9ee1d5caaf27" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091614Z:e4ed0b60-575c-4455-b694-9ee1d5caaf27" ], - "Date": [ "Sat, 28 Aug 2021 09:16:13 GMT" ] + "x-ms-correlation-request-id": [ "28b5f602-51d7-474d-86f1-881f52da8662" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154924Z:28b5f602-51d7-474d-86f1-881f52da8662" ], + "Date": [ "Thu, 09 Jun 2022 15:49:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "2f93a401-ba51-41e0-ba2f-18f8bff8d71d" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "1600434e-2314-43de-87fd-b05e9dfa469d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -398,38 +356,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], "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": [ "f27b130b-b9b1-442a-b5d7-8bf5c95bcd33" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091619Z:f27b130b-b9b1-442a-b5d7-8bf5c95bcd33" ], - "Date": [ "Sat, 28 Aug 2021 09:16:19 GMT" ] + "x-ms-correlation-request-id": [ "49b92ed3-564c-4efa-a3dd-9fa05accd0ef" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154930Z:49b92ed3-564c-4efa-a3dd-9fa05accd0ef" ], + "Date": [ "Thu, 09 Jun 2022 15:49:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "a4558ad9-6ecd-470f-91c7-ee212fc872cb" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "8c16d774-50e0-4c9c-8565-76344e800f08" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -440,38 +398,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], "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": [ "6b884f39-acad-42d0-ade6-01953bb059c4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091625Z:6b884f39-acad-42d0-ade6-01953bb059c4" ], - "Date": [ "Sat, 28 Aug 2021 09:16:24 GMT" ] + "x-ms-correlation-request-id": [ "777adb92-7c6c-40f6-a1fc-0f35399b4a2a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154936Z:777adb92-7c6c-40f6-a1fc-0f35399b4a2a" ], + "Date": [ "Thu, 09 Jun 2022 15:49:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "b1f0528d-81e0-4f9b-8fa9-36fd1bd5d327" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "9beb9d5c-29a7-446a-b667-6d781756c88b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -482,38 +440,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], "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": [ "dca64bc8-a9f1-4600-bc44-874f67167aa9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091630Z:dca64bc8-a9f1-4600-bc44-874f67167aa9" ], - "Date": [ "Sat, 28 Aug 2021 09:16:30 GMT" ] + "x-ms-correlation-request-id": [ "a84c581e-35dc-4742-a75c-fe2c75a4491b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154941Z:a84c581e-35dc-4742-a75c-fe2c75a4491b" ], + "Date": [ "Thu, 09 Jun 2022 15:49:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "04a69d78-d567-43d7-84d7-02970a5611ef" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "f1de2449-0ddf-4f37-9118-4a88cb1de7f1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -524,38 +482,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], "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": [ "cee91ee1-b600-4338-a7b7-812e3e35f432" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091636Z:cee91ee1-b600-4338-a7b7-812e3e35f432" ], - "Date": [ "Sat, 28 Aug 2021 09:16:35 GMT" ] + "x-ms-correlation-request-id": [ "519f81a1-24f7-42f4-8b7f-e23182ec93d7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154948Z:519f81a1-24f7-42f4-8b7f-e23182ec93d7" ], + "Date": [ "Thu, 09 Jun 2022 15:49:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "bb6e16be-ac6a-49f6-bde7-e33f66dda9ac" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "22d396d5-355b-4911-80eb-52450aed9305" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -566,38 +524,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], "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": [ "17e464f3-5b8b-4d06-844e-59f245a24375" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091641Z:17e464f3-5b8b-4d06-844e-59f245a24375" ], - "Date": [ "Sat, 28 Aug 2021 09:16:41 GMT" ] + "x-ms-correlation-request-id": [ "a048ab2d-b89d-4099-ae02-12e8867c4e98" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154953Z:a048ab2d-b89d-4099-ae02-12e8867c4e98" ], + "Date": [ "Thu, 09 Jun 2022 15:49:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "4c15501b-1e87-4521-937a-144dbf01447e" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "e0b3fb96-c31a-4cd4-aaca-c3872e2b06f9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -608,38 +566,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], "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": [ "e016c4b1-fb22-426b-9a0f-6fccd76c3716" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091647Z:e016c4b1-fb22-426b-9a0f-6fccd76c3716" ], - "Date": [ "Sat, 28 Aug 2021 09:16:46 GMT" ] + "x-ms-correlation-request-id": [ "e2b76312-dc99-4347-b4cd-e83b6c9b520f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T154959Z:e2b76312-dc99-4347-b4cd-e83b6c9b520f" ], + "Date": [ "Thu, 09 Jun 2022 15:49:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "77" ], - "x-ms-client-request-id": [ "c9b1a6b5-b785-402a-9f92-5938d5b611c3" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "75c8bb1c-2919-4d77-9674-bc5d867d1376" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -650,38 +608,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], "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": [ "02ad36c0-ab12-4a39-bc8d-a02ebf0ff279" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091652Z:02ad36c0-ab12-4a39-bc8d-a02ebf0ff279" ], - "Date": [ "Sat, 28 Aug 2021 09:16:51 GMT" ] + "x-ms-correlation-request-id": [ "32b3c9e5-7f94-4076-b8e5-339cf0f3b440" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155005Z:32b3c9e5-7f94-4076-b8e5-339cf0f3b440" ], + "Date": [ "Thu, 09 Jun 2022 15:50:05 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "35050495-daa9-4901-916e-7ea1cb92201a" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "a21c56a7-5d57-4fab-94fe-8615e26a4489" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -692,38 +650,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], "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": [ "b05de003-67cf-4a5b-a836-2c309da7b50e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091658Z:b05de003-67cf-4a5b-a836-2c309da7b50e" ], - "Date": [ "Sat, 28 Aug 2021 09:16:57 GMT" ] + "x-ms-correlation-request-id": [ "81c52f4c-5ae7-475a-84f0-a285693cb220" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155011Z:81c52f4c-5ae7-475a-84f0-a285693cb220" ], + "Date": [ "Thu, 09 Jun 2022 15:50:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "79" ], - "x-ms-client-request-id": [ "9e10bf34-d107-4642-a8dc-77a27990999f" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "bf176c6e-487e-4b65-9f27-a3e25a8bedaf" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -734,38 +692,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], "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": [ "a4372bc5-c317-493f-ac36-2cdbe995c206" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091703Z:a4372bc5-c317-493f-ac36-2cdbe995c206" ], - "Date": [ "Sat, 28 Aug 2021 09:17:02 GMT" ] + "x-ms-correlation-request-id": [ "3b8f42c0-a977-482e-8123-b1b4d08c4264" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155017Z:3b8f42c0-a977-482e-8123-b1b4d08c4264" ], + "Date": [ "Thu, 09 Jun 2022 15:50:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "46356f9a-49dd-4d3f-84e8-faf39e552e8a" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "f939b235-4681-4db2-9930-23424a6ea811" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -776,38 +734,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], "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": [ "461d1f4e-c904-4ef5-9fd0-75633e212c6f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091709Z:461d1f4e-c904-4ef5-9fd0-75633e212c6f" ], - "Date": [ "Sat, 28 Aug 2021 09:17:08 GMT" ] + "x-ms-correlation-request-id": [ "d2ffdf6a-287b-41d7-bcdc-0b3bbf81fede" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155022Z:d2ffdf6a-287b-41d7-bcdc-0b3bbf81fede" ], + "Date": [ "Thu, 09 Jun 2022 15:50:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "1f7705a8-e795-4eaf-a812-20d37d993cbb" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "f2d52960-be0c-458a-9cdd-1801ede01ada" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -818,38 +776,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], "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": [ "49d224cc-30b3-449b-9379-f9add8dbe57b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091714Z:49d224cc-30b3-449b-9379-f9add8dbe57b" ], - "Date": [ "Sat, 28 Aug 2021 09:17:14 GMT" ] + "x-ms-correlation-request-id": [ "a9766b7b-82b8-4084-a2d9-b845deea0144" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155028Z:a9766b7b-82b8-4084-a2d9-b845deea0144" ], + "Date": [ "Thu, 09 Jun 2022 15:50:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "9bb57ee8-098f-415e-8920-283adc3e1853" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "eab93d5a-6335-41c5-b17c-810bc7d0f6c0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -860,38 +818,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], "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": [ "eb60602b-2a6a-4cba-8315-a9658f799e08" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091720Z:eb60602b-2a6a-4cba-8315-a9658f799e08" ], - "Date": [ "Sat, 28 Aug 2021 09:17:20 GMT" ] + "x-ms-correlation-request-id": [ "4b37a37b-c812-4099-9f6b-3fb541ea931d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155034Z:4b37a37b-c812-4099-9f6b-3fb541ea931d" ], + "Date": [ "Thu, 09 Jun 2022 15:50:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "83" ], - "x-ms-client-request-id": [ "07f7f610-7bb9-40ba-872f-cc31a6d6cc80" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "08fa65d7-a344-47da-9654-519426cc68c9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -902,38 +860,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], "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": [ "19ebf886-97af-4d5b-96c0-7ede2fef5506" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091725Z:19ebf886-97af-4d5b-96c0-7ede2fef5506" ], - "Date": [ "Sat, 28 Aug 2021 09:17:25 GMT" ] + "x-ms-correlation-request-id": [ "16b90ce3-c1e6-4fcd-abad-fedb67528c76" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155039Z:16b90ce3-c1e6-4fcd-abad-fedb67528c76" ], + "Date": [ "Thu, 09 Jun 2022 15:50:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "82afda4e-10ea-49eb-81bc-4dd056859bd4" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "798eb2af-42b7-419c-a54f-c2120f2b4de1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -944,38 +902,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], "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": [ "f67a487c-6961-4e52-8cbe-22c54468af32" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091731Z:f67a487c-6961-4e52-8cbe-22c54468af32" ], - "Date": [ "Sat, 28 Aug 2021 09:17:31 GMT" ] + "x-ms-correlation-request-id": [ "d6e2a46e-1265-4ddd-ad61-33861cc08f07" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155045Z:d6e2a46e-1265-4ddd-ad61-33861cc08f07" ], + "Date": [ "Thu, 09 Jun 2022 15:50:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "e14df3d7-407d-4464-b4ff-a45f9b79cf4a" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "53b1895a-fa10-4b88-bec7-55680e1e5f11" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -986,38 +944,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], "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": [ "433b007b-491f-42ef-b50e-1b0fc6da443a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091736Z:433b007b-491f-42ef-b50e-1b0fc6da443a" ], - "Date": [ "Sat, 28 Aug 2021 09:17:36 GMT" ] + "x-ms-correlation-request-id": [ "55b76912-01a5-44b3-9213-fddfda2aa487" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155051Z:55b76912-01a5-44b3-9213-fddfda2aa487" ], + "Date": [ "Thu, 09 Jun 2022 15:50:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "86" ], - "x-ms-client-request-id": [ "2f50870a-b614-4d17-a604-25809fad4f13" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "d61c1b26-aad0-4e68-9cf5-4b63e8198ee3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1028,38 +986,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], "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": [ "915c6abe-708a-46aa-bb17-34027ea7b1aa" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091742Z:915c6abe-708a-46aa-bb17-34027ea7b1aa" ], - "Date": [ "Sat, 28 Aug 2021 09:17:42 GMT" ] + "x-ms-correlation-request-id": [ "fa22a66b-63bd-4cb7-a28f-73e4244d8437" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155057Z:fa22a66b-63bd-4cb7-a28f-73e4244d8437" ], + "Date": [ "Thu, 09 Jun 2022 15:50:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "87" ], - "x-ms-client-request-id": [ "b223671d-4062-43c3-828e-996e6ad44559" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "c9aa6999-cb26-44f8-ac48-12dac4774233" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1070,38 +1028,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], "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": [ "ed314e23-0c3e-4e7e-b0fb-72e0cb9e778e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091747Z:ed314e23-0c3e-4e7e-b0fb-72e0cb9e778e" ], - "Date": [ "Sat, 28 Aug 2021 09:17:47 GMT" ] + "x-ms-correlation-request-id": [ "cba8bf51-a241-463c-ad3d-27bd41383b6a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155102Z:cba8bf51-a241-463c-ad3d-27bd41383b6a" ], + "Date": [ "Thu, 09 Jun 2022 15:51:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "88" ], - "x-ms-client-request-id": [ "c83cde19-f1ce-4ca2-a179-2d731d9d4d94" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "eebb2186-4670-44a3-8e2c-2aff2667bf97" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1112,38 +1070,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], "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": [ "6fc0240e-43c6-4853-9a66-c16bc08873a4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091753Z:6fc0240e-43c6-4853-9a66-c16bc08873a4" ], - "Date": [ "Sat, 28 Aug 2021 09:17:53 GMT" ] + "x-ms-correlation-request-id": [ "350f5ccf-003b-42ca-8f4f-9f319dc56d55" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155108Z:350f5ccf-003b-42ca-8f4f-9f319dc56d55" ], + "Date": [ "Thu, 09 Jun 2022 15:51:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "89" ], - "x-ms-client-request-id": [ "91762327-f0e1-4384-b7e6-5cb1da649a63" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "b5a97a73-c918-4312-8aba-f41239b7c4d1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1154,38 +1112,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], "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": [ "9fcd5702-d33b-4de7-8be2-313653269fe5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091758Z:9fcd5702-d33b-4de7-8be2-313653269fe5" ], - "Date": [ "Sat, 28 Aug 2021 09:17:58 GMT" ] + "x-ms-correlation-request-id": [ "bd4457d1-49af-411c-a3ee-f8f6e7c309f3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155114Z:bd4457d1-49af-411c-a3ee-f8f6e7c309f3" ], + "Date": [ "Thu, 09 Jun 2022 15:51:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "90" ], - "x-ms-client-request-id": [ "5f551857-299b-4af4-9363-5e5656232835" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "39f1affe-823f-45a0-8a87-6660bc5e189a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1196,38 +1154,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], "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": [ "c75f497f-2ff3-4cc3-814f-c393b552c4cd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091804Z:c75f497f-2ff3-4cc3-814f-c393b552c4cd" ], - "Date": [ "Sat, 28 Aug 2021 09:18:04 GMT" ] + "x-ms-correlation-request-id": [ "ce4c7cb7-cfe6-48c0-a822-5520024a082c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155119Z:ce4c7cb7-cfe6-48c0-a822-5520024a082c" ], + "Date": [ "Thu, 09 Jun 2022 15:51:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "91" ], - "x-ms-client-request-id": [ "9b12fd43-6120-44e7-8040-f3421910c858" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "428d6dd6-a8fb-410d-aa50-02867a1b4c10" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1238,38 +1196,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], "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": [ "5c86f309-51ea-42e6-963f-5ac7fff9374c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091809Z:5c86f309-51ea-42e6-963f-5ac7fff9374c" ], - "Date": [ "Sat, 28 Aug 2021 09:18:09 GMT" ] + "x-ms-correlation-request-id": [ "b4b2647f-8baf-4aa9-b66d-0d73ea6e5c78" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155125Z:b4b2647f-8baf-4aa9-b66d-0d73ea6e5c78" ], + "Date": [ "Thu, 09 Jun 2022 15:51:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "92" ], - "x-ms-client-request-id": [ "4a859b72-4401-4652-8e36-3f14532af740" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "010a3c36-4c16-44c2-80a3-10fbfb6365a2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1280,38 +1238,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], "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": [ "92ed0a8f-ac65-4dd3-89e4-8eea308c116b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091815Z:92ed0a8f-ac65-4dd3-89e4-8eea308c116b" ], - "Date": [ "Sat, 28 Aug 2021 09:18:15 GMT" ] + "x-ms-correlation-request-id": [ "9f429025-6aaa-4153-82c9-96dfcd5b6d87" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155131Z:9f429025-6aaa-4153-82c9-96dfcd5b6d87" ], + "Date": [ "Thu, 09 Jun 2022 15:51:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "93" ], - "x-ms-client-request-id": [ "d6b993cb-0750-4790-b713-dffe4f0cce92" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "c84c80f2-bbc6-4788-a5a0-4e85f96171f2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1322,38 +1280,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], "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": [ "dcbe2636-6dc4-41b8-a028-28accbccf594" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091820Z:dcbe2636-6dc4-41b8-a028-28accbccf594" ], - "Date": [ "Sat, 28 Aug 2021 09:18:20 GMT" ] + "x-ms-correlation-request-id": [ "a8160949-47e3-4c73-9f7b-648c17d92c8a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155137Z:a8160949-47e3-4c73-9f7b-648c17d92c8a" ], + "Date": [ "Thu, 09 Jun 2022 15:51:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "94" ], - "x-ms-client-request-id": [ "2f2f4903-368a-4666-a390-e5a58d580d09" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "ecf1bdce-9322-4602-8e6c-70fa8afa8351" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1364,38 +1322,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], "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": [ "e957c27c-8be5-4f6b-b85e-13558f606b26" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091827Z:e957c27c-8be5-4f6b-b85e-13558f606b26" ], - "Date": [ "Sat, 28 Aug 2021 09:18:26 GMT" ] + "x-ms-correlation-request-id": [ "fd51f0c0-a6af-4959-9f32-2af6824a2ebe" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155142Z:fd51f0c0-a6af-4959-9f32-2af6824a2ebe" ], + "Date": [ "Thu, 09 Jun 2022 15:51:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "95" ], - "x-ms-client-request-id": [ "5b148884-07a6-4d5a-8126-6aed63b0c215" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "c27b61d6-a373-4070-8d11-042477cf6acc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1406,38 +1364,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], "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": [ "6eb5427d-c09a-4222-b99b-b1dab95e02a4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091832Z:6eb5427d-c09a-4222-b99b-b1dab95e02a4" ], - "Date": [ "Sat, 28 Aug 2021 09:18:32 GMT" ] + "x-ms-correlation-request-id": [ "a98cba3f-2818-48b5-8a9f-5039b920a1e8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155148Z:a98cba3f-2818-48b5-8a9f-5039b920a1e8" ], + "Date": [ "Thu, 09 Jun 2022 15:51:47 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A15%3A32.7055401Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A48%3A46.7925409Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-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/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01+34": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/9aa68f70-112c-4a78-9a44-54ab07f1c6ad?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/a5de23cd-b41a-49f4-9325-7926ff25489b?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "96" ], - "x-ms-client-request-id": [ "bebf557e-110b-49a2-9f48-165ba6e5bf6d" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "b0b3ad41-2d0c-4cc3-8e4f-7e351265c1dc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1448,38 +1406,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], "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": [ "ee960fa1-c4cb-4028-802e-9e5df6dc0d6e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091838Z:ee960fa1-c4cb-4028-802e-9e5df6dc0d6e" ], - "Date": [ "Sat, 28 Aug 2021 09:18:37 GMT" ] + "x-ms-correlation-request-id": [ "7b048087-29e4-4dd7-b103-bc62d6c397d9" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155154Z:7b048087-29e4-4dd7-b103-bc62d6c397d9" ], + "Date": [ "Thu, 09 Jun 2022 15:51:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2201" ], + "Content-Length": [ "2202" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"9cecc3c1-64f4-4210-9437-015ee51e198a\",\"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\u00272021-08-28T09%3A18%3A38.0938663Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:15:32.2217702Z\",\"endTime\":\"2021-08-28T09:18:37.9105459Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M5.6887757S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"0001-01-01T00:00:00\"},\"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/9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"name\":\"9aa68f70-112c-4a78-9a44-54ab07f1c6ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"f5a93b12-1b66-47e1-b99e-ecdcd26be7eb\",\"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-09T15%3A51%3A52.7681527Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:48:46.3794954Z\",\"endTime\":\"2022-06-09T15:51:52.2039421Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M5.8244467S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"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/a5de23cd-b41a-49f4-9325-7926ff25489b\",\"name\":\"a5de23cd-b41a-49f4-9325-7926ff25489b\",\"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=2021-07-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/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2022-04-01+35": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "97" ], - "x-ms-client-request-id": [ "4e85ee82-874a-493b-b87a-2c9eb4e6cc06" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "696a9644-1680-4a76-9dde-e550b8618bb1" ], "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1495,25 +1453,25 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], - "x-ms-correlation-request-id": [ "e01c1873-9f47-4ae2-94ba-d8b790005e52" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091839Z:e01c1873-9f47-4ae2-94ba-d8b790005e52" ], - "Date": [ "Sat, 28 Aug 2021 09:18:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-correlation-request-id": [ "6e2d1551-3aa3-408d-bb47-c036757f188b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155155Z:6e2d1551-3aa3-408d-bb47-c036757f188b" ], + "Date": [ "Thu, 09 Jun 2022 15:51:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "14899" ], + "Content-Length": [ "12857" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"ac3906f2-03e8-4b83-b62b-434af478bc6d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-28T09:17:39.5203137Z\",\"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/d1bccc8de0ff450ba75bd13bd4d61ec1\",\"name\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c32b151577304704bb56052ea74283bf\",\"recoveryPointTime\":\"2021-08-28T06:30:28.0381060Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"32ad078c-82bc-4f8a-9aea-75a39e7cedcf\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-28T06:30:28.0381060Z\",\"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/c32b151577304704bb56052ea74283bf\",\"name\":\"c32b151577304704bb56052ea74283bf\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"453de6f3152f4bfc8cceb973d71e8adc\",\"recoveryPointTime\":\"2021-08-28T05:38:41.8174427Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"5d4414d4-8448-460d-8910-84a8b6479e72\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-28T05:38:41.8174427Z\",\"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/453de6f3152f4bfc8cceb973d71e8adc\",\"name\":\"453de6f3152f4bfc8cceb973d71e8adc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"aef63cdc04eb4913abfdad51b39fd79e\",\"recoveryPointTime\":\"2021-08-28T05:35:23.7876579Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"4812de47-8e8b-48bc-b940-f380ad1a7551\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-28T05:35:23.7876579Z\",\"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/aef63cdc04eb4913abfdad51b39fd79e\",\"name\":\"aef63cdc04eb4913abfdad51b39fd79e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a043191627c14eff9e121b9a0c2dabde\",\"recoveryPointTime\":\"2021-08-28T05:15:05.7587541Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"d0c9aef7-b6d9-454d-8833-8574684a9258\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-28T05:15:05.7587541Z\",\"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/a043191627c14eff9e121b9a0c2dabde\",\"name\":\"a043191627c14eff9e121b9a0c2dabde\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f3892af4440f42d7ae5cc5486482fc80\",\"recoveryPointTime\":\"2021-08-27T05:38:39.3883463Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"1245fcdb-5d1d-4b3b-a20a-1f7040c0dfd1\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-27T05:38:39.3883463Z\",\"expiryTime\":\"2021-09-03T05:38:39.3883463Z\",\"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/f3892af4440f42d7ae5cc5486482fc80\",\"name\":\"f3892af4440f42d7ae5cc5486482fc80\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e5bcfb6139dc4486aa3c2c6f067e6067\",\"recoveryPointTime\":\"2021-08-26T05:38:37.5467715Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"a8d22a15-5b9a-457d-8a96-baba45650c07\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-26T05:38:37.5467715Z\",\"expiryTime\":\"2021-09-02T05:38:37.5467715Z\",\"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/e5bcfb6139dc4486aa3c2c6f067e6067\",\"name\":\"e5bcfb6139dc4486aa3c2c6f067e6067\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"65dca9a9b53d4acabb62dfbc475848c7\",\"recoveryPointTime\":\"2021-08-25T05:39:12.2596020Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"035beb89-75f9-4439-bb72-dd8fa84597bb\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-25T05:39:12.2596020Z\",\"expiryTime\":\"2021-09-01T05:39:12.2596020Z\",\"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/65dca9a9b53d4acabb62dfbc475848c7\",\"name\":\"65dca9a9b53d4acabb62dfbc475848c7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f33715f778d84717855df30f1afe4323\",\"recoveryPointTime\":\"2021-08-24T05:38:50.1593057Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"ebe9c7fd-96b3-4751-bccd-faa77a6423d5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-24T05:38:50.1593057Z\",\"expiryTime\":\"2021-08-31T05:38:50.1593057Z\",\"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/f33715f778d84717855df30f1afe4323\",\"name\":\"f33715f778d84717855df30f1afe4323\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"55c494c7e9c04a2b97c0db98b3fe4a36\",\"recoveryPointTime\":\"2021-08-23T05:38:39.4065636Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"45dbb93e-5efa-49e4-a3d8-9ae79ba59972\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-23T05:38:39.4065636Z\",\"expiryTime\":\"2021-08-30T05:38:39.4065636Z\",\"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/55c494c7e9c04a2b97c0db98b3fe4a36\",\"name\":\"55c494c7e9c04a2b97c0db98b3fe4a36\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ff7fd7aa8a9d4c9db17e6d4bf879dd68\",\"recoveryPointTime\":\"2021-08-22T05:38:33.1708567Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"715e9164-8f76-4ad5-84bd-8e0297ea77f1\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-22T05:38:33.1708567Z\",\"expiryTime\":\"2021-09-19T05:38:33.1708567Z\",\"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/ff7fd7aa8a9d4c9db17e6d4bf879dd68\",\"name\":\"ff7fd7aa8a9d4c9db17e6d4bf879dd68\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"375c5db8b3fd46bc9b6b0342e961ac05\",\"recoveryPointTime\":\"2021-08-15T05:38:53.4663047Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"9f560ab9-be56-4058-8f2e-7e022bee99a5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-15T05:38:53.4663047Z\",\"expiryTime\":\"2021-09-12T05:38:53.4663047Z\",\"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/375c5db8b3fd46bc9b6b0342e961ac05\",\"name\":\"375c5db8b3fd46bc9b6b0342e961ac05\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"995f2f33cb494b0791f86b76bebc7ef3\",\"recoveryPointTime\":\"2021-08-08T05:38:59.4300602Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"39a435a4-63aa-4f5d-8e36-da25f9f3f8b6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-08T05:38:59.4300602Z\",\"expiryTime\":\"2021-09-05T05:38:59.4300602Z\",\"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/995f2f33cb494b0791f86b76bebc7ef3\",\"name\":\"995f2f33cb494b0791f86b76bebc7ef3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"5f05a10ad8a64ed9be151f02fa4beb09\",\"recoveryPointTime\":\"2021-08-01T05:38:31.0563243Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"a1af462a-d01f-4987-895d-7535737568b9\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2021-08-01T05:38:31.0563243Z\",\"expiryTime\":\"2021-08-29T05:38:31.0563243Z\",\"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/5f05a10ad8a64ed9be151f02fa4beb09\",\"name\":\"5f05a10ad8a64ed9be151f02fa4beb09\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"66f933d8-bf8c-47e3-9189-178f88dbe71d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-09T15:50:53.0514559Z\",\"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/8a1ad4b4a3f347219e7b998fea04e11c\",\"name\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"b9906b15799749118d0deae819e100ae\",\"recoveryPointTime\":\"2022-06-09T08:32:59.4040983Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"f0240de9-703c-44e7-8cf8-959010b731aa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-09T08:32:59.4040983Z\",\"expiryTime\":\"2022-06-16T08:32:59.4040983Z\",\"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/b9906b15799749118d0deae819e100ae\",\"name\":\"b9906b15799749118d0deae819e100ae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"321600d3d6e245c7b3662543caa75e93\",\"recoveryPointTime\":\"2022-06-09T05:39:01.0289550Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"f2818794-5754-4626-8451-be17246d62db\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-09T05:39:01.0289550Z\",\"expiryTime\":\"2022-06-16T05:39:01.0289550Z\",\"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/321600d3d6e245c7b3662543caa75e93\",\"name\":\"321600d3d6e245c7b3662543caa75e93\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"1c72298947e04ffb9498e726cc369939\",\"recoveryPointTime\":\"2022-06-08T05:38:51.0009484Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"a15f714b-4d2d-4fb9-8e12-7644869cfe32\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-08T05:38:51.0009484Z\",\"expiryTime\":\"2022-06-15T05:38:51.0009484Z\",\"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/1c72298947e04ffb9498e726cc369939\",\"name\":\"1c72298947e04ffb9498e726cc369939\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e9f15810700f423487987810611a5355\",\"recoveryPointTime\":\"2022-06-07T05:38:44.9760660Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"052d4d45-7222-4f1d-8de4-c7a73d3e60d0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-07T05:38:44.9760660Z\",\"expiryTime\":\"2022-06-14T05:38:44.9760660Z\",\"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/e9f15810700f423487987810611a5355\",\"name\":\"e9f15810700f423487987810611a5355\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"1a95fc58b63a4b23a6875a4e251d6662\",\"recoveryPointTime\":\"2022-06-06T05:38:38.0261568Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"d071d0f1-1386-437a-99d3-dc851aab8501\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-06T05:38:38.0261568Z\",\"expiryTime\":\"2022-06-13T05:38:38.0261568Z\",\"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/1a95fc58b63a4b23a6875a4e251d6662\",\"name\":\"1a95fc58b63a4b23a6875a4e251d6662\",\"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\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"4554b5a44ce644e69d902907f46fea00\",\"recoveryPointTime\":\"2022-06-04T05:38:58.1904142Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"6e4cc974-77e3-4ada-9e85-08e2d1258046\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-04T05:38:58.1904142Z\",\"expiryTime\":\"2022-06-11T05:38:58.1904142Z\",\"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/4554b5a44ce644e69d902907f46fea00\",\"name\":\"4554b5a44ce644e69d902907f46fea00\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7310f70d98bf417c96be38fb77842b28\",\"recoveryPointTime\":\"2022-06-03T05:39:20.0041842Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"1bc1abee-e1c1-44a8-9429-e830b0026774\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-03T05:39:20.0041842Z\",\"expiryTime\":\"2022-06-10T05:39:20.0041842Z\",\"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/7310f70d98bf417c96be38fb77842b28\",\"name\":\"7310f70d98bf417c96be38fb77842b28\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"97c565fd502347d182481d1dbfe1bb65\",\"recoveryPointTime\":\"2022-05-29T05:38:42.0920442Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"c9bb2e68-09bc-48b2-98ba-3b524b87bfbc\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-05-29T05:38:42.0920442Z\",\"expiryTime\":\"2022-06-26T05:38:42.0920442Z\",\"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/97c565fd502347d182481d1dbfe1bb65\",\"name\":\"97c565fd502347d182481d1dbfe1bb65\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6e7dcef00ef046dc8a21432c50d77d82\",\"recoveryPointTime\":\"2022-05-22T05:38:53.5538546Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"bba6e00b-0bf2-47ca-8509-6bb4184d3128\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-05-22T05:38:53.5538546Z\",\"expiryTime\":\"2022-06-19T05:38:53.5538546Z\",\"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/6e7dcef00ef046dc8a21432c50d77d82\",\"name\":\"6e7dcef00ef046dc8a21432c50d77d82\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"3ad344313bc24bd09f130871d0486c98\",\"recoveryPointTime\":\"2022-05-15T05:39:09.1132133Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"41466f99-c3a3-451d-856f-91181f705c7a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-05-15T05:39:09.1132133Z\",\"expiryTime\":\"2022-06-12T05:39:09.1132133Z\",\"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/3ad344313bc24bd09f130871d0486c98\",\"name\":\"3ad344313bc24bd09f130871d0486c98\",\"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=2021-07-01+37": { + "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-04-01+36": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/restore?api-version=2021-07-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-restoredtn63cg5qjb\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"sarathdisk2-restoredtn63cg5qjb\",\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-restoredtn63cg5qjb\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointId\": \"d1bccc8de0ff450ba75bd13bd4d61ec1\"\r\n}", + "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-04-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-restoredr2e7gpixh6\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"sarathdisk2-restoredr2e7gpixh6\",\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-restoredr2e7gpixh6\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointId\": \"8a1ad4b4a3f347219e7b998fea04e11c\"\r\n}", "isContentBase64": false, "Headers": { }, @@ -1527,17 +1485,17 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-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": [ "820f5188-1dbf-4dd7-9aeb-17d3fce52f8d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091839Z:820f5188-1dbf-4dd7-9aeb-17d3fce52f8d" ], - "Date": [ "Sat, 28 Aug 2021 09:18:39 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "b4ab3bfc-2289-4e07-8a7d-9aa0ec274b57" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155156Z:b4ab3bfc-2289-4e07-8a7d-9aa0ec274b57" ], + "Date": [ "Thu, 09 Jun 2022 15:51:55 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -1547,20 +1505,20 @@ "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01+37": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "99" ], - "x-ms-client-request-id": [ "b7e31d32-b8cc-49a8-b57d-5c1c63bed376" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "abcb0a3c-e9e4-44a2-ad52-5e59c777eddb" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1575,34 +1533,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], - "x-ms-correlation-request-id": [ "be504b9e-8c50-4267-a13a-844d1f2f928d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091910Z:be504b9e-8c50-4267-a13a-844d1f2f928d" ], - "Date": [ "Sat, 28 Aug 2021 09:19:09 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-correlation-request-id": [ "131184c5-0c9e-4b2a-9118-dea41b16735c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155227Z:131184c5-0c9e-4b2a-9118-dea41b16735c" ], + "Date": [ "Thu, 09 Jun 2022 15:52:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "694" ], + "Content-Length": [ "721" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T09:18:39.7364612Z\",\"endTime\":\"2021-08-28T09:18:42Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T15:51:56.2579372Z\",\"endTime\":\"2022-06-09T15:51:58Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"objectType\":\"OperationJobExtendedInfo\"}}", "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01+39": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "100" ], - "x-ms-client-request-id": [ "b7e31d32-b8cc-49a8-b57d-5c1c63bed376" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "abcb0a3c-e9e4-44a2-ad52-5e59c777eddb" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1613,39 +1571,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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzk0NzVlZTQ4LTU0MDYtNDc3Yy1iOGRjLTQ2NjkwNTk5ZjlhNQ==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzBlODJhMDRlLWExZjItNDE4My04ZDJiLWU0YTMzMjk5MjMwZA==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], - "x-ms-correlation-request-id": [ "91952427-7a31-4a5b-a0d8-45587e63bb59" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091910Z:91952427-7a31-4a5b-a0d8-45587e63bb59" ], - "Date": [ "Sat, 28 Aug 2021 09:19:10 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-correlation-request-id": [ "dd49d2dc-3897-413a-b187-ecd791001264" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155227Z:dd49d2dc-3897-413a-b187-ecd791001264" ], + "Date": [ "Thu, 09 Jun 2022 15:52:27 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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"objectType\":\"OperationJobExtendedInfo\"}", + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "101" ], - "x-ms-client-request-id": [ "562cc12d-ec7e-496a-8bc0-c116c084872c" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "f091adee-331e-4ee8-a93d-7687934c2e33" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1656,38 +1614,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], "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": [ "70761972-8b86-43a1-9d6a-039eff32d056" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091916Z:70761972-8b86-43a1-9d6a-039eff32d056" ], - "Date": [ "Sat, 28 Aug 2021 09:19:15 GMT" ] + "x-ms-correlation-request-id": [ "5ff32b7e-4c1e-4185-a490-3affab070756" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155233Z:5ff32b7e-4c1e-4185-a490-3affab070756" ], + "Date": [ "Thu, 09 Jun 2022 15:52:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "102" ], - "x-ms-client-request-id": [ "4e91aa96-c2ae-453a-b1bd-988852841ebb" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "0cd5383a-ebfe-44f4-836b-4eb7df367c62" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1698,38 +1656,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], "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": [ "e8191ec9-26e8-49b0-a47e-dae4f11174f5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091921Z:e8191ec9-26e8-49b0-a47e-dae4f11174f5" ], - "Date": [ "Sat, 28 Aug 2021 09:19:21 GMT" ] + "x-ms-correlation-request-id": [ "01942e22-653e-4c2f-8197-b76d18df5d3a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155239Z:01942e22-653e-4c2f-8197-b76d18df5d3a" ], + "Date": [ "Thu, 09 Jun 2022 15:52:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "103" ], - "x-ms-client-request-id": [ "00171298-b7ca-4fc6-bdcf-33a37d04231a" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "bc04376a-365c-4c68-83f2-439e46141e7c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1740,38 +1698,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], "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": [ "66fbb746-2bfc-4793-a968-8982082d314b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091927Z:66fbb746-2bfc-4793-a968-8982082d314b" ], - "Date": [ "Sat, 28 Aug 2021 09:19:26 GMT" ] + "x-ms-correlation-request-id": [ "54b94b95-a05c-4b4f-90b5-8f101c0dad4d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155245Z:54b94b95-a05c-4b4f-90b5-8f101c0dad4d" ], + "Date": [ "Thu, 09 Jun 2022 15:52:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "104" ], - "x-ms-client-request-id": [ "7490b1b1-f205-43e5-8aa9-21ffaed8886e" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "980e31c2-71a9-4508-9525-6b5fe4f18347" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1782,38 +1740,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], "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": [ "4a041709-fc13-45f4-ade6-751a45363f79" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091932Z:4a041709-fc13-45f4-ade6-751a45363f79" ], - "Date": [ "Sat, 28 Aug 2021 09:19:32 GMT" ] + "x-ms-correlation-request-id": [ "2cbc0e37-18bf-4ed4-abde-2ec7f0f389a6" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155251Z:2cbc0e37-18bf-4ed4-abde-2ec7f0f389a6" ], + "Date": [ "Thu, 09 Jun 2022 15:52:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "105" ], - "x-ms-client-request-id": [ "d4112599-a82f-4d0d-a23f-91e041977bd8" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "8bc5d77a-6f4a-4b6a-9797-79237b26e0c3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1824,38 +1782,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], "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": [ "41794964-2b23-48da-af70-d7283b4fbaf6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091938Z:41794964-2b23-48da-af70-d7283b4fbaf6" ], - "Date": [ "Sat, 28 Aug 2021 09:19:37 GMT" ] + "x-ms-correlation-request-id": [ "48c38a85-5c66-4fe6-a108-d141f934ce7e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155256Z:48c38a85-5c66-4fe6-a108-d141f934ce7e" ], + "Date": [ "Thu, 09 Jun 2022 15:52:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "106" ], - "x-ms-client-request-id": [ "2d2585aa-36d5-42a0-8179-72244f2c7a59" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "b3b1bc89-36f0-40f2-8275-01c35029820d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1866,38 +1824,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], "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": [ "23889494-79bb-4521-a733-b6f025fc7db5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091943Z:23889494-79bb-4521-a733-b6f025fc7db5" ], - "Date": [ "Sat, 28 Aug 2021 09:19:43 GMT" ] + "x-ms-correlation-request-id": [ "01b65698-c36f-403b-9797-c3f70ae5b931" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155302Z:01b65698-c36f-403b-9797-c3f70ae5b931" ], + "Date": [ "Thu, 09 Jun 2022 15:53:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "107" ], - "x-ms-client-request-id": [ "b0fca335-7440-4797-919a-c9e5604abafb" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "9aec9b5d-155a-4835-bf0c-d59019309e89" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1908,38 +1866,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], "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": [ "883b5abe-4aea-4ce1-ac5a-07b17327ab30" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091949Z:883b5abe-4aea-4ce1-ac5a-07b17327ab30" ], - "Date": [ "Sat, 28 Aug 2021 09:19:48 GMT" ] + "x-ms-correlation-request-id": [ "5631ab3c-9177-494e-a173-f0d157c96d34" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155308Z:5631ab3c-9177-494e-a173-f0d157c96d34" ], + "Date": [ "Thu, 09 Jun 2022 15:53:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "108" ], - "x-ms-client-request-id": [ "fbb63083-0e38-48b8-962a-54f47e5abdc0" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "3cedecc7-1586-4846-847d-39f17ffd5c28" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1950,38 +1908,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], "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": [ "97da4ced-6ed3-4880-a35b-5d1aa30bfeaa" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T091955Z:97da4ced-6ed3-4880-a35b-5d1aa30bfeaa" ], - "Date": [ "Sat, 28 Aug 2021 09:19:54 GMT" ] + "x-ms-correlation-request-id": [ "36e9d527-dd4e-4833-b416-95351b889794" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155314Z:36e9d527-dd4e-4833-b416-95351b889794" ], + "Date": [ "Thu, 09 Jun 2022 15:53:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "109" ], - "x-ms-client-request-id": [ "d8f9c844-f0e1-4038-b5cc-f0aafec6f9fd" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "72cd6910-b665-4521-931f-92dcb689ad83" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1992,38 +1950,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], "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": [ "fc7881ce-f5bf-4519-9686-bbf0f5b93436" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092000Z:fc7881ce-f5bf-4519-9686-bbf0f5b93436" ], - "Date": [ "Sat, 28 Aug 2021 09:19:59 GMT" ] + "x-ms-correlation-request-id": [ "59c63a84-d6b1-4edb-a328-3c5cddda0906" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155319Z:59c63a84-d6b1-4edb-a328-3c5cddda0906" ], + "Date": [ "Thu, 09 Jun 2022 15:53:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "110" ], - "x-ms-client-request-id": [ "47371137-0189-45a9-a559-b1a3fa83d17f" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "e6bd8225-68c3-43e8-80be-876ba2620a5c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2034,38 +1992,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "x-ms-correlation-request-id": [ "07fe79c2-0a79-4afd-8565-a61438da2187" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092006Z:07fe79c2-0a79-4afd-8565-a61438da2187" ], - "Date": [ "Sat, 28 Aug 2021 09:20:05 GMT" ] + "x-ms-correlation-request-id": [ "76b87a94-cbfa-4bcd-8556-1dfbbd170ecf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155325Z:76b87a94-cbfa-4bcd-8556-1dfbbd170ecf" ], + "Date": [ "Thu, 09 Jun 2022 15:53:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "111" ], - "x-ms-client-request-id": [ "14292469-f118-4f3f-8b5c-3af204d28866" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "be0d7fe3-4a49-4d51-996d-171c7dec7422" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2076,38 +2034,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], "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": [ "bfbd9271-88f9-4650-ab06-53d5bcd90741" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092012Z:bfbd9271-88f9-4650-ab06-53d5bcd90741" ], - "Date": [ "Sat, 28 Aug 2021 09:20:11 GMT" ] + "x-ms-correlation-request-id": [ "0163b75d-42a3-4f85-a90d-1164ddbca42b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155331Z:0163b75d-42a3-4f85-a90d-1164ddbca42b" ], + "Date": [ "Thu, 09 Jun 2022 15:53:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "112" ], - "x-ms-client-request-id": [ "48b71335-ea6c-48e3-9069-655c07b38e89" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "51fce8ad-56a2-429e-b01d-2fe098c6ef4e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2118,38 +2076,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], "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": [ "b661c273-b2b3-4e73-80df-6b64a54d7188" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092018Z:b661c273-b2b3-4e73-80df-6b64a54d7188" ], - "Date": [ "Sat, 28 Aug 2021 09:20:17 GMT" ] + "x-ms-correlation-request-id": [ "8a2c0f16-94c9-430f-98b4-4f94b6320acc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155337Z:8a2c0f16-94c9-430f-98b4-4f94b6320acc" ], + "Date": [ "Thu, 09 Jun 2022 15:53:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "113" ], - "x-ms-client-request-id": [ "68ba7dc4-ff95-48da-9e1b-a947a43355fd" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "bfd397fc-6037-4bf3-b516-ca5adb48c776" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2160,38 +2118,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], "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": [ "28e98f08-2a2b-4e60-982f-2e2599141a95" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092023Z:28e98f08-2a2b-4e60-982f-2e2599141a95" ], - "Date": [ "Sat, 28 Aug 2021 09:20:23 GMT" ] + "x-ms-correlation-request-id": [ "76179f9d-c98c-4c22-8f01-8da0a13b2e3d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155343Z:76179f9d-c98c-4c22-8f01-8da0a13b2e3d" ], + "Date": [ "Thu, 09 Jun 2022 15:53:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "114" ], - "x-ms-client-request-id": [ "984a9f69-d5dd-4bf7-b4b0-bef669186d22" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "efddbac9-246e-42ea-832a-8a080f59ac79" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2202,38 +2160,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], "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": [ "c1b7e944-87f9-43d4-82b2-1ea9a5374280" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092029Z:c1b7e944-87f9-43d4-82b2-1ea9a5374280" ], - "Date": [ "Sat, 28 Aug 2021 09:20:29 GMT" ] + "x-ms-correlation-request-id": [ "2f524d30-a36b-422d-9b3b-2789453b3349" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155348Z:2f524d30-a36b-422d-9b3b-2789453b3349" ], + "Date": [ "Thu, 09 Jun 2022 15:53:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "115" ], - "x-ms-client-request-id": [ "63a38e13-80b3-4cf2-bc3e-7af16c5f2b4a" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "e2cae39e-9d6e-4944-8b09-038b4a2994e5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2244,38 +2202,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], "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": [ "34859bcb-6347-4658-b294-dcb6ff529dfb" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092034Z:34859bcb-6347-4658-b294-dcb6ff529dfb" ], - "Date": [ "Sat, 28 Aug 2021 09:20:34 GMT" ] + "x-ms-correlation-request-id": [ "b981eaac-c9e8-4e27-9c57-450868dba63d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155354Z:b981eaac-c9e8-4e27-9c57-450868dba63d" ], + "Date": [ "Thu, 09 Jun 2022 15:53:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "116" ], - "x-ms-client-request-id": [ "a9497df3-dd20-43ff-b6ad-68fffc22588f" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "3276703a-6089-4735-9936-cc07b04fa964" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2286,38 +2244,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], "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": [ "ce36b1c6-517a-49d7-8c6e-b3f164c2c652" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092040Z:ce36b1c6-517a-49d7-8c6e-b3f164c2c652" ], - "Date": [ "Sat, 28 Aug 2021 09:20:40 GMT" ] + "x-ms-correlation-request-id": [ "1b4f7542-8bf0-478c-bf25-857e4d94ee4f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155400Z:1b4f7542-8bf0-478c-bf25-857e4d94ee4f" ], + "Date": [ "Thu, 09 Jun 2022 15:54:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "117" ], - "x-ms-client-request-id": [ "ebdbd807-702a-4891-b71c-741c7379654b" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "9c44ee07-b650-4779-9d56-e8d3da0f553f" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2328,38 +2286,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], "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": [ "8896087e-95a1-448e-a294-71d0e8618cf4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092045Z:8896087e-95a1-448e-a294-71d0e8618cf4" ], - "Date": [ "Sat, 28 Aug 2021 09:20:45 GMT" ] + "x-ms-correlation-request-id": [ "73606f2e-0238-491e-b223-d31b6f2215b9" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155406Z:73606f2e-0238-491e-b223-d31b6f2215b9" ], + "Date": [ "Thu, 09 Jun 2022 15:54:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "118" ], - "x-ms-client-request-id": [ "1453b725-c6cb-4d81-bbc0-43a0a021074c" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "368feafc-05e6-40c1-b11b-a06a3bbb7a7a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2370,38 +2328,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], "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": [ "83e39ce1-e92a-4bfe-b63d-687cc0f44fde" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092051Z:83e39ce1-e92a-4bfe-b63d-687cc0f44fde" ], - "Date": [ "Sat, 28 Aug 2021 09:20:51 GMT" ] + "x-ms-correlation-request-id": [ "c65c261b-f619-4ba9-a856-c5f0524524b1" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155412Z:c65c261b-f619-4ba9-a856-c5f0524524b1" ], + "Date": [ "Thu, 09 Jun 2022 15:54:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "119" ], - "x-ms-client-request-id": [ "641f0f27-a982-4f6c-8c18-4042cbc24292" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "93f9cd90-6731-4304-b34b-cfe796e9731a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2412,38 +2370,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], "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": [ "c2af2ac3-8f59-4eac-8908-09c78c874452" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092056Z:c2af2ac3-8f59-4eac-8908-09c78c874452" ], - "Date": [ "Sat, 28 Aug 2021 09:20:56 GMT" ] + "x-ms-correlation-request-id": [ "4cd80664-4e72-44a9-8032-b71934ab45a7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155417Z:4cd80664-4e72-44a9-8032-b71934ab45a7" ], + "Date": [ "Thu, 09 Jun 2022 15:54:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "120" ], - "x-ms-client-request-id": [ "f6770684-62a3-41b5-a268-2cde08feb5b1" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "c5b66810-f01b-49f4-b850-66d1dd45efa5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2454,38 +2412,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], "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": [ "cfb32c7e-54ec-4058-a3e0-db17fe6a6451" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092102Z:cfb32c7e-54ec-4058-a3e0-db17fe6a6451" ], - "Date": [ "Sat, 28 Aug 2021 09:21:02 GMT" ] + "x-ms-correlation-request-id": [ "a1ef2aaf-2a06-4afe-812c-4eae7872dbef" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155423Z:a1ef2aaf-2a06-4afe-812c-4eae7872dbef" ], + "Date": [ "Thu, 09 Jun 2022 15:54:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "121" ], - "x-ms-client-request-id": [ "542092f7-e00d-4ca8-b9f8-c0ac8c93eb05" ], + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "036fd8e3-4fe6-4fc2-88c1-a197873f635f" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2496,38 +2454,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], "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": [ "c2d8c112-9a87-4867-84db-d378827a945f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092107Z:c2d8c112-9a87-4867-84db-d378827a945f" ], - "Date": [ "Sat, 28 Aug 2021 09:21:07 GMT" ] + "x-ms-correlation-request-id": [ "c3feab8e-bca1-4f2c-8f95-20ee9129a3f5" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155429Z:c3feab8e-bca1-4f2c-8f95-20ee9129a3f5" ], + "Date": [ "Thu, 09 Jun 2022 15:54:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "122" ], - "x-ms-client-request-id": [ "a4fd73b8-899a-4f71-9c07-c9f60a8e0f27" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "553e204a-b162-4d87-9bda-ffbd60b65677" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2538,38 +2496,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], "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": [ "522013c9-7c9d-46a9-a2ca-f21cc1e6dbc1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092113Z:522013c9-7c9d-46a9-a2ca-f21cc1e6dbc1" ], - "Date": [ "Sat, 28 Aug 2021 09:21:13 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], + "x-ms-correlation-request-id": [ "3afea04d-761d-445f-8c9b-fe663658fa51" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155435Z:3afea04d-761d-445f-8c9b-fe663658fa51" ], + "Date": [ "Thu, 09 Jun 2022 15:54:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "123" ], - "x-ms-client-request-id": [ "83c57fc3-3a97-4169-b9a5-d3a503851c05" ], + "x-ms-unique-id": [ "102" ], + "x-ms-client-request-id": [ "e9b267eb-a894-4288-bc22-74743a1b99c4" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2580,38 +2538,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11940" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], "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": [ "8361159b-0332-4886-aac8-55e7a477cd6e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092118Z:8361159b-0332-4886-aac8-55e7a477cd6e" ], - "Date": [ "Sat, 28 Aug 2021 09:21:18 GMT" ] + "x-ms-correlation-request-id": [ "a7280567-7bbd-46b1-a282-805c2bc760e0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155442Z:a7280567-7bbd-46b1-a282-805c2bc760e0" ], + "Date": [ "Thu, 09 Jun 2022 15:54:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "124" ], - "x-ms-client-request-id": [ "41463705-bc77-4cbd-89ba-36317c3a3717" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "a8c0ea57-4a61-4995-940d-3d788396930c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2622,38 +2580,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11939" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], "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": [ "7452b7eb-c08a-4b8a-ac97-4790e0d16ba6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092124Z:7452b7eb-c08a-4b8a-ac97-4790e0d16ba6" ], - "Date": [ "Sat, 28 Aug 2021 09:21:24 GMT" ] + "x-ms-correlation-request-id": [ "2661f739-7f75-4a44-95ff-9da55ead3d56" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155448Z:2661f739-7f75-4a44-95ff-9da55ead3d56" ], + "Date": [ "Thu, 09 Jun 2022 15:54:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "125" ], - "x-ms-client-request-id": [ "72dd40ca-7420-460c-a372-ebb9a8246669" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "b7284387-2ada-4f93-bb7e-16427c4d8b5d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2664,38 +2622,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11938" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], "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": [ "ad62b77d-dc20-4170-bc38-c67037c8a863" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092129Z:ad62b77d-dc20-4170-bc38-c67037c8a863" ], - "Date": [ "Sat, 28 Aug 2021 09:21:29 GMT" ] + "x-ms-correlation-request-id": [ "f95b303e-c7b3-4874-9ec6-43b526daa6d2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155453Z:f95b303e-c7b3-4874-9ec6-43b526daa6d2" ], + "Date": [ "Thu, 09 Jun 2022 15:54:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "126" ], - "x-ms-client-request-id": [ "2fb7e2af-ea14-4e67-8e03-691f2a8c5917" ], + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "1b234f08-7a90-4ccc-9521-cba542bdad7a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2706,38 +2664,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11937" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], "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": [ "e1007f91-0555-42aa-8837-b29c7057b0cc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092135Z:e1007f91-0555-42aa-8837-b29c7057b0cc" ], - "Date": [ "Sat, 28 Aug 2021 09:21:35 GMT" ] + "x-ms-correlation-request-id": [ "c8be2880-f171-41d1-9f04-442a6280cbe2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155459Z:c8be2880-f171-41d1-9f04-442a6280cbe2" ], + "Date": [ "Thu, 09 Jun 2022 15:54:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "127" ], - "x-ms-client-request-id": [ "2806d664-ce50-409e-bffe-efb9f861373f" ], + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "6260c86d-c546-4694-8411-3cad867aa55d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2748,38 +2706,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11936" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], "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": [ "941944fe-b288-47ee-854b-7ed8a68d64ec" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092140Z:941944fe-b288-47ee-854b-7ed8a68d64ec" ], - "Date": [ "Sat, 28 Aug 2021 09:21:40 GMT" ] + "x-ms-correlation-request-id": [ "0a9b352c-9eeb-472c-91e2-4e38ba954b99" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155505Z:0a9b352c-9eeb-472c-91e2-4e38ba954b99" ], + "Date": [ "Thu, 09 Jun 2022 15:55:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "128" ], - "x-ms-client-request-id": [ "2c70c985-4551-4e2e-bf94-34c88fa5bd01" ], + "x-ms-unique-id": [ "107" ], + "x-ms-client-request-id": [ "26855491-8f6f-4ba2-a288-4ffaad4e6a6c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2790,38 +2748,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11935" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], "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": [ "dca6c0fa-12b9-498d-9289-49b60ed832e6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092146Z:dca6c0fa-12b9-498d-9289-49b60ed832e6" ], - "Date": [ "Sat, 28 Aug 2021 09:21:45 GMT" ] + "x-ms-correlation-request-id": [ "f488e090-580f-4120-8b27-4bbc0bb86af8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155511Z:f488e090-580f-4120-8b27-4bbc0bb86af8" ], + "Date": [ "Thu, 09 Jun 2022 15:55:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "129" ], - "x-ms-client-request-id": [ "74655748-a56b-412d-a11b-697ae88cd6b5" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "7ec4232f-05b7-404f-8d68-f0f92d150d6f" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2832,38 +2790,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11934" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], "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": [ "3abca518-dbef-4c83-b53b-c85b818f7ab1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092151Z:3abca518-dbef-4c83-b53b-c85b818f7ab1" ], - "Date": [ "Sat, 28 Aug 2021 09:21:51 GMT" ] + "x-ms-correlation-request-id": [ "ebc51b3e-ef2b-46fe-8485-0e7e5a1f0cd0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155516Z:ebc51b3e-ef2b-46fe-8485-0e7e5a1f0cd0" ], + "Date": [ "Thu, 09 Jun 2022 15:55:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "130" ], - "x-ms-client-request-id": [ "8b2f7af9-b3d3-415b-ba72-5209905e62b0" ], + "x-ms-unique-id": [ "109" ], + "x-ms-client-request-id": [ "3ad7e810-5c00-46d3-bbf8-5fdda3bf236e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2874,38 +2832,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11933" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], "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": [ "6bd8d320-7ff7-4421-8956-7fb5a8163fb6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092157Z:6bd8d320-7ff7-4421-8956-7fb5a8163fb6" ], - "Date": [ "Sat, 28 Aug 2021 09:21:56 GMT" ] + "x-ms-correlation-request-id": [ "7271326c-f910-45fa-a861-a8878c5f3ace" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155522Z:7271326c-f910-45fa-a861-a8878c5f3ace" ], + "Date": [ "Thu, 09 Jun 2022 15:55:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "131" ], - "x-ms-client-request-id": [ "9ce7c260-9af0-426b-b1c2-36f83a2bafbd" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "75f9d06c-989c-47b9-a15e-3d83fa5e0af1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2916,38 +2874,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11932" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], "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": [ "e07cd7fb-a4d0-4aa9-892a-b7d887718be3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092202Z:e07cd7fb-a4d0-4aa9-892a-b7d887718be3" ], - "Date": [ "Sat, 28 Aug 2021 09:22:02 GMT" ] + "x-ms-correlation-request-id": [ "b17d1f30-b6ac-49b9-89cb-70bd094961aa" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155528Z:b17d1f30-b6ac-49b9-89cb-70bd094961aa" ], + "Date": [ "Thu, 09 Jun 2022 15:55:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "132" ], - "x-ms-client-request-id": [ "fe9f1570-8778-4e50-9057-8229e122ee22" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "7e5b6aef-6e2e-4628-8796-7f3bc6f01424" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2958,38 +2916,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11931" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], "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": [ "9c1e3416-b86c-475f-94a4-4b3a28f64863" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092208Z:9c1e3416-b86c-475f-94a4-4b3a28f64863" ], - "Date": [ "Sat, 28 Aug 2021 09:22:07 GMT" ] + "x-ms-correlation-request-id": [ "a3514387-83fe-4b0a-8ed3-fb8a5dec21fe" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155534Z:a3514387-83fe-4b0a-8ed3-fb8a5dec21fe" ], + "Date": [ "Thu, 09 Jun 2022 15:55:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "133" ], - "x-ms-client-request-id": [ "a029d51b-d8d8-4b5c-9fac-203c25b926f9" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "d37ebaad-0a91-45ba-ac3e-295ba0eedef1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3000,38 +2958,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11930" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], "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": [ "bb73fe6c-af61-4f5d-8065-fb834ab8391a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092213Z:bb73fe6c-af61-4f5d-8065-fb834ab8391a" ], - "Date": [ "Sat, 28 Aug 2021 09:22:13 GMT" ] + "x-ms-correlation-request-id": [ "9b286d14-1243-4f8f-9c06-574bac65b4ed" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155539Z:9b286d14-1243-4f8f-9c06-574bac65b4ed" ], + "Date": [ "Thu, 09 Jun 2022 15:55:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "134" ], - "x-ms-client-request-id": [ "2b1759f0-386e-4fef-92f4-1effe2fb093b" ], + "x-ms-unique-id": [ "113" ], + "x-ms-client-request-id": [ "3cf91a16-b727-4985-9780-317310bd8f84" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3042,38 +3000,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11929" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], "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": [ "b2f78b3d-26ac-43fe-912c-7a859e2d1986" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092219Z:b2f78b3d-26ac-43fe-912c-7a859e2d1986" ], - "Date": [ "Sat, 28 Aug 2021 09:22:18 GMT" ] + "x-ms-correlation-request-id": [ "7ddab118-6522-4e37-ab95-1d25f6dddb30" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155545Z:7ddab118-6522-4e37-ab95-1d25f6dddb30" ], + "Date": [ "Thu, 09 Jun 2022 15:55:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "135" ], - "x-ms-client-request-id": [ "30b50335-e5ba-42ff-a10a-fe9b5b9ad6bd" ], + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "8eb9e5b8-0d92-4fdf-8ba6-61bc6a215823" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3084,38 +3042,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11928" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], "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": [ "459f3ba4-cdc4-4e8c-9461-313daddb4ce7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092224Z:459f3ba4-cdc4-4e8c-9461-313daddb4ce7" ], - "Date": [ "Sat, 28 Aug 2021 09:22:24 GMT" ] + "x-ms-correlation-request-id": [ "612bd1a2-c979-48d9-bb20-8c31f3f24dc4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155551Z:612bd1a2-c979-48d9-bb20-8c31f3f24dc4" ], + "Date": [ "Thu, 09 Jun 2022 15:55:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "136" ], - "x-ms-client-request-id": [ "d79746aa-7e24-47b6-96f4-36e3833dc227" ], + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "ae623b9f-b79c-4e3f-b5bf-e580ac9666c3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3126,38 +3084,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11927" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], "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": [ "acfa4606-2b06-4ac0-a517-59de8dfc979f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092230Z:acfa4606-2b06-4ac0-a517-59de8dfc979f" ], - "Date": [ "Sat, 28 Aug 2021 09:22:29 GMT" ] + "x-ms-correlation-request-id": [ "1b645152-38dc-4a3d-a36b-49b74d9c6d87" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155556Z:1b645152-38dc-4a3d-a36b-49b74d9c6d87" ], + "Date": [ "Thu, 09 Jun 2022 15:55:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "137" ], - "x-ms-client-request-id": [ "b5ddc7ad-af91-4fdd-8952-48301ebf9944" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "cc2b3e6e-c20c-4ac0-b74b-8c694bc72de5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3168,38 +3126,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11926" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], "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": [ "4c736b7f-82a4-4bd9-8415-271e3614663d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092235Z:4c736b7f-82a4-4bd9-8415-271e3614663d" ], - "Date": [ "Sat, 28 Aug 2021 09:22:35 GMT" ] + "x-ms-correlation-request-id": [ "788f8e15-fc14-4c7d-b4c3-816fe6d82cde" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155602Z:788f8e15-fc14-4c7d-b4c3-816fe6d82cde" ], + "Date": [ "Thu, 09 Jun 2022 15:56:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "138" ], - "x-ms-client-request-id": [ "9ece9e15-3165-4539-8cc5-7a2d35a41927" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "02381c2f-5dfc-4434-beb9-2a904100c8e1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3210,38 +3168,542 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11925" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], + "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": [ "2bc02d04-6ea3-4543-9f9f-40a51a342b14" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155608Z:2bc02d04-6ea3-4543-9f9f-40a51a342b14" ], + "Date": [ "Thu, 09 Jun 2022 15:56:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "22dc9977-ed07-4276-a49f-598ef2e3150f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], + "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": [ "aa723e6c-86e7-4781-b714-e87519c77cfd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155614Z:aa723e6c-86e7-4781-b714-e87519c77cfd" ], + "Date": [ "Thu, 09 Jun 2022 15:56:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "a52fe00a-165b-4aa3-9f45-8be34a857153" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], + "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": [ "ce330115-f4a8-4b87-9573-9305972c0f05" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155619Z:ce330115-f4a8-4b87-9573-9305972c0f05" ], + "Date": [ "Thu, 09 Jun 2022 15:56:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "120" ], + "x-ms-client-request-id": [ "86b2303d-e6a2-4f14-8741-228579c44198" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11896" ], + "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": [ "96705e75-621f-4265-bede-755593197607" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155625Z:96705e75-621f-4265-bede-755593197607" ], + "Date": [ "Thu, 09 Jun 2022 15:56:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "121" ], + "x-ms-client-request-id": [ "0520a5d7-7476-48d9-afdf-520210ff1f72" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11895" ], + "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": [ "7e7e45e3-c9aa-4bbc-afdf-26ad15de25c3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155631Z:7e7e45e3-c9aa-4bbc-afdf-26ad15de25c3" ], + "Date": [ "Thu, 09 Jun 2022 15:56:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "1546040f-6970-49d0-b859-2d9011629f6b" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "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": [ "1140a938-1cf5-47bf-a385-6bdae33906a5" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155637Z:1140a938-1cf5-47bf-a385-6bdae33906a5" ], + "Date": [ "Thu, 09 Jun 2022 15:56:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "0e7eb780-a69b-495a-869e-77409ccd5b12" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11893" ], + "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": [ "e3a792b9-1933-4e4d-b897-ca775f25ce11" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155642Z:e3a792b9-1933-4e4d-b897-ca775f25ce11" ], + "Date": [ "Thu, 09 Jun 2022 15:56:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "cfc52a4f-d3b6-414e-94c3-14c9edaaef63" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11892" ], + "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": [ "8e37e21e-f6d4-4b00-a487-9bf6c1bb7e0e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155648Z:8e37e21e-f6d4-4b00-a487-9bf6c1bb7e0e" ], + "Date": [ "Thu, 09 Jun 2022 15:56:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "396056bb-0b32-46e4-975a-9b9300681998" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11891" ], + "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": [ "559be0da-c23a-4e78-97ab-94d4e387e706" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155654Z:559be0da-c23a-4e78-97ab-94d4e387e706" ], + "Date": [ "Thu, 09 Jun 2022 15:56:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "1fc92a53-8bdf-4ab0-bf50-b0f0a5448a1c" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11890" ], + "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": [ "1bdb6ce6-548d-431c-aa77-966a9903597a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155700Z:1bdb6ce6-548d-431c-aa77-966a9903597a" ], + "Date": [ "Thu, 09 Jun 2022 15:56:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "29e2ce8d-620b-45be-bcb6-734ee68cb06b" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11889" ], + "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": [ "4fa832ee-4c69-47d2-99fd-49bb40e135ce" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155706Z:4fa832ee-4c69-47d2-99fd-49bb40e135ce" ], + "Date": [ "Thu, 09 Jun 2022 15:57:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "cf56dcfa-292b-464f-aa5e-26b1433a0633" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11888" ], + "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": [ "3dd42079-a3e3-42ac-aa4b-d5f5cd0e822a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155712Z:3dd42079-a3e3-42ac-aa4b-d5f5cd0e822a" ], + "Date": [ "Thu, 09 Jun 2022 15:57:11 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "f8045121-fdce-447d-a17d-76dfe47f6742" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11887" ], "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": [ "14cac88a-6c46-4e41-a6b0-82f75df0bc31" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092241Z:14cac88a-6c46-4e41-a6b0-82f75df0bc31" ], - "Date": [ "Sat, 28 Aug 2021 09:22:40 GMT" ] + "x-ms-correlation-request-id": [ "2082f9a2-0106-439f-b735-2adc5e4f9279" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155718Z:2082f9a2-0106-439f-b735-2adc5e4f9279" ], + "Date": [ "Thu, 09 Jun 2022 15:57:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "2290" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A18%3A40.5614714Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"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\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/956e8378-6e46-4ef2-8b54-2479c37c0fd0?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "139" ], - "x-ms-client-request-id": [ "8a3c6ae7-74aa-4fd3-ad70-d8321c8979b0" ], + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "dc487d05-1a9b-444d-842c-80b7c9b469bb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3252,22 +3714,316 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11924" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11886" ], + "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": [ "fac2845e-f238-432c-a709-d48704a18666" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155723Z:fac2845e-f238-432c-a709-d48704a18666" ], + "Date": [ "Thu, 09 Jun 2022 15:57:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "131" ], + "x-ms-client-request-id": [ "2110b730-a820-4d9e-a6a7-e801fae52bce" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11885" ], + "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": [ "d7fee5fc-8447-4f0e-bc20-e2e8bf61278e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155729Z:d7fee5fc-8447-4f0e-bc20-e2e8bf61278e" ], + "Date": [ "Thu, 09 Jun 2022 15:57:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "132" ], + "x-ms-client-request-id": [ "22e8a063-31b8-4415-9a06-54c23750574a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11884" ], + "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": [ "70d77288-2cf3-45f2-969e-b928fe6f6cf0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155735Z:70d77288-2cf3-45f2-969e-b928fe6f6cf0" ], + "Date": [ "Thu, 09 Jun 2022 15:57:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "133" ], + "x-ms-client-request-id": [ "2192b418-177e-4e45-80ce-d120ad90da67" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11883" ], + "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": [ "f331e442-1241-4272-8012-93699125521a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155741Z:f331e442-1241-4272-8012-93699125521a" ], + "Date": [ "Thu, 09 Jun 2022 15:57:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "134" ], + "x-ms-client-request-id": [ "e50d43ee-7018-4c4a-952d-3e45b9e98439" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11882" ], + "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": [ "dc2fc838-8eb8-4f5b-98bc-5ad9faa8105a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155746Z:dc2fc838-8eb8-4f5b-98bc-5ad9faa8105a" ], + "Date": [ "Thu, 09 Jun 2022 15:57:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "135" ], + "x-ms-client-request-id": [ "c721a21b-8b91-4789-b630-ccb505f9ed1a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11881" ], + "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": [ "de7e6665-6517-4935-b0c9-c38586fcacbd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155752Z:de7e6665-6517-4935-b0c9-c38586fcacbd" ], + "Date": [ "Thu, 09 Jun 2022 15:57:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "136" ], + "x-ms-client-request-id": [ "d6d732c7-897c-42c6-b3ab-5fb3b3118fd7" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11880" ], + "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": [ "bccd9002-0a2f-42e3-8941-759481595f74" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155758Z:bccd9002-0a2f-42e3-8941-759481595f74" ], + "Date": [ "Thu, 09 Jun 2022 15:57:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2290" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A51%3A57.0347134Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"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\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-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/ca0a7f02-cf11-4237-b76c-baffff7316df?api-version=2022-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "137" ], + "x-ms-client-request-id": [ "964e866e-0b56-4fff-8e0b-3ba029e4fd3d" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11879" ], "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": [ "93522cdb-6e1b-4cc3-8863-3d262ac3f398" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092246Z:93522cdb-6e1b-4cc3-8863-3d262ac3f398" ], - "Date": [ "Sat, 28 Aug 2021 09:22:46 GMT" ] + "x-ms-correlation-request-id": [ "5d65c17f-59c1-46ff-b562-7a921752c24c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155804Z:5d65c17f-59c1-46ff-b562-7a921752c24c" ], + "Date": [ "Thu, 09 Jun 2022 15:58:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2325" ], + "Content-Length": [ "2323" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b7e31d32-b8cc-49a8-b57d-5c1c63bed376\",\"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\u00272021-08-28T09%3A22%3A43.7290243Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T09:18:40.3264318Z\",\"endTime\":\"2021-08-28T09:22:43.4898131Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT4M3.1633813S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"d1bccc8de0ff450ba75bd13bd4d61ec1\",\"recoveryPointTime\":\"2021-08-28T09:17:39.5203137Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredtn63cg5qjb\",\"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/956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"name\":\"956e8378-6e46-4ef2-8b54-2479c37c0fd0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"abcb0a3c-e9e4-44a2-ad52-5e59c777eddb\",\"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-09T15%3A58%3A03.945064Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T15:51:56.653675Z\",\"endTime\":\"2022-06-09T15:58:03.4913454Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT6M6.8376704S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"8a1ad4b4a3f347219e7b998fea04e11c\",\"recoveryPointTime\":\"2022-06-09T15:50:53.0514559Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6\",\"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/ca0a7f02-cf11-4237-b76c-baffff7316df\",\"name\":\"ca0a7f02-cf11-4237-b76c-baffff7316df\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json index 9fb0f4063957..4e74d162614d 100644 --- a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json +++ b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "140" ], - "x-ms-client-request-id": [ "1474e6df-cee6-4210-b985-6c15d8bc7664" ], + "x-ms-unique-id": [ "138" ], + "x-ms-client-request-id": [ "54b460d5-802c-43ef-a641-1b9b057064df" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,30 +22,29 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11878" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "8d13588f-35bb-48ed-8677-6d1beb0f6814" ], + "x-ms-correlation-request-id": [ "8d13588f-35bb-48ed-8677-6d1beb0f6814" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155806Z:8d13588f-35bb-48ed-8677-6d1beb0f6814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11923" ], - "x-ms-correlation-request-id": [ "d7ad5337-1860-4541-8894-69dbe517ee82" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092249Z:d7ad5337-1860-4541-8894-69dbe517ee82" ], - "Date": [ "Sat, 28 Aug 2021 09:22:48 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "8140" ], - "Content-Type": [ "application/json" ], + "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\"}]}", "isContentBase64": false } }, - "Find-AzDataProtectionRestorableTimeRange+[NoContext]+PostExpanded+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-07-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-04-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-07-01", - "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2021-07-29T14:52:49.0000000Z\",\r\n \"endTime\": \"2021-08-28T14:52:49.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-04-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-05-10T21:28:06.0000000Z\",\r\n \"endTime\": \"2022-06-09T21:28:06.0000000Z\"\r\n}", "isContentBase64": false, "Headers": { }, @@ -59,22 +58,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "689d5249-d297-4632-8732-a1c62fc08009" ], + "x-ms-correlation-request-id": [ "689d5249-d297-4632-8732-a1c62fc08009" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155808Z:689d5249-d297-4632-8732-a1c62fc08009" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-correlation-request-id": [ "07eca05d-21c1-4f8a-97d3-5a5acfd50f88" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092252Z:07eca05d-21c1-4f8a-97d3-5a5acfd50f88" ], - "Date": [ "Sat, 28 Aug 2021 09:22:52 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "389" ], - "Content-Type": [ "application/json" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2021-07-29T14:52:49.0000000Z\",\"endTime\":\"2021-08-28T09:22:52.5730595Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}", + "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-05-10T21:28:06.0000000Z\",\"endTime\":\"2022-06-09T15:58:08.3743957Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json index dcfbdd32cdd3..862ffd64a926 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "a75144e9-427b-4dee-9406-da0df51e207b" ], + "x-ms-unique-id": [ "140" ], + "x-ms-client-request-id": [ "a30e05d5-1b46-4d02-b0fe-c90b007f0c00" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,33 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "bf8954c2-fcc0-42ef-b36f-3b0b043e1664" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105143Z:bf8954c2-fcc0-42ef-b36f-3b0b043e1664" ], - "Date": [ "Sat, 28 Aug 2021 10:51:42 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11877" ], + "x-ms-correlation-request-id": [ "f57a150a-091e-4ff9-8822-22c8820236f5" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155809Z:f57a150a-091e-4ff9-8822-22c8820236f5" ], + "Date": [ "Thu, 09 Jun 2022 15:58:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26957" ], + "Content-Length": [ "20876" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"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\":\"temp\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp\",\"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\":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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"name\":\"temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp6\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp6\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp6\",\"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-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/temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"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\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"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\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"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\"},{\"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\":\"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-4d64402b-290b-4428-ac2c-0121fec4d015\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-4d64402b-290b-4428-ac2c-0121fec4d015\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "isContentBase64": false } }, - "Get-AzDataProtectionBackupInstance+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "7112e396-f0f2-4ce2-99c2-eb1692f72777" ], + "x-ms-unique-id": [ "141" ], + "x-ms-client-request-id": [ "31ebf796-389a-4e6e-b979-a8c593284a7a" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -69,33 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "d287a5e9-053c-42ac-ab39-51257403d6ba" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105144Z:d287a5e9-053c-42ac-ab39-51257403d6ba" ], - "Date": [ "Sat, 28 Aug 2021 10:51:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11876" ], + "x-ms-correlation-request-id": [ "8100b0c8-8cb8-4a7b-abee-5a8b086db751" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155810Z:8100b0c8-8cb8-4a7b-abee-5a8b086db751" ], + "Date": [ "Thu, 09 Jun 2022 15:58:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26957" ], + "Content-Length": [ "20876" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"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\":\"temp\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp\",\"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\":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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"name\":\"temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp6\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp6\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp6\",\"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-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/temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"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\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"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\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"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\"},{\"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\":\"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-4d64402b-290b-4428-ac2c-0121fec4d015\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-4d64402b-290b-4428-ac2c-0121fec4d015\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "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/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91?api-version=2021-07-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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097?api-version=2022-04-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/pstestdisk2-pstestdisk2-b72ef488-fc30-4257-a2f0-b30528ee8e91?api-version=2021-07-01", + "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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "f6a0f6d5-d73a-4eea-adbd-51a62126610b" ], + "x-ms-unique-id": [ "142" ], + "x-ms-client-request-id": [ "e5151450-9621-435b-8e84-74339833997b" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -111,17 +111,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "aa1b27b4-6faf-4ef9-a60d-5d3959f4ab31" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105144Z:aa1b27b4-6faf-4ef9-a60d-5d3959f4ab31" ], - "Date": [ "Sat, 28 Aug 2021 10:51:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11875" ], + "x-ms-correlation-request-id": [ "33d3a6af-0338-4a6e-8d0e-b033301c6d33" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155811Z:33d3a6af-0338-4a6e-8d0e-b033301c6d33" ], + "Date": [ "Thu, 09 Jun 2022 15:58:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1456" ], + "Content-Length": [ "1495" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"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\"}", + "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\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupInstanceOperationResult.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionBackupInstanceOperationResult.Tests.ps1 new file mode 100644 index 000000000000..3a89ddf98d0f --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionBackupInstanceOperationResult.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionBackupInstanceOperationResult')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionBackupInstanceOperationResult.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 'Get-AzDataProtectionBackupInstanceOperationResult' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json index 479b592d7795..273bf2525e13 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "9a8ac769-722b-431b-a35b-4b525507bbaa" ], + "x-ms-unique-id": [ "143" ], + "x-ms-client-request-id": [ "a0a22e5e-1001-4c4c-a0a8-7292e75299a0" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,17 +27,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "0bb8c2ba-1bb8-424b-a558-74e0dab4997c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105146Z:0bb8c2ba-1bb8-424b-a558-74e0dab4997c" ], - "Date": [ "Sat, 28 Aug 2021 10:51:45 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11874" ], + "x-ms-correlation-request-id": [ "8493997b-0cf8-4bb5-b25c-3cd530db0873" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155812Z:8493997b-0cf8-4bb5-b25c-3cd530db0873" ], + "Date": [ "Thu, 09 Jun 2022 15:58:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "26957" ], + "Content-Length": [ "20876" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"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\":\"temp\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp\",\"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\":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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-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\":\"3b7bacaf-2ef3-4f3e-9fb7-8257d827d07e-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"name\":\"temp-temp-7d67c4b6-bc86-11eb-a650-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp6\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp6\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp6\",\"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-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/temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp6-temp6-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"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\":\"pstest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/pstest\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"pstest\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"name\":\"pstest-pstest-447b59f3-3835-4399-b929-10f0154c583c\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"name\":\"sarath-disk3-sarath-disk3-cbfbeccf-fa0b-4953-9853-a07a68f6eec6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"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\":\"sarathdisk5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk5\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarathdisk5\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"name\":\"sarathdisk5-sarathdisk5-d566a2ae-ee7c-4f3e-a326-212914a65a37\",\"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\"},{\"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\":\"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-4d64402b-290b-4428-ac2c-0121fec4d015\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-4d64402b-290b-4428-ac2c-0121fec4d015\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json index e60d2a2733b2..18d8fbc52d5f 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "c1a05a29-79c2-4f86-bcff-c7f02dd1f58f" ], + "x-ms-unique-id": [ "144" ], + "x-ms-client-request-id": [ "aa6d1ef9-5ba5-445f-836c-d9b6641fa6e5" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,17 +27,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-correlation-request-id": [ "0c25eac3-a754-4578-913d-286a2ec4eb55" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105147Z:0c25eac3-a754-4578-913d-286a2ec4eb55" ], - "Date": [ "Sat, 28 Aug 2021 10:51:46 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11873" ], + "x-ms-correlation-request-id": [ "a9ffe284-e843-4a84-85a2-c820dbb3ed15" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155813Z:a9ffe284-e843-4a84-85a2-c820dbb3ed15" ], + "Date": [ "Thu, 09 Jun 2022 15:58:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "523" ], + "Content-Length": [ "563" ], "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\"}]},\"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},\"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 } } diff --git a/src/DataProtection/test/Get-AzDataProtectionOperationStatusBackupVaultContext.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionOperationStatusBackupVaultContext.Tests.ps1 new file mode 100644 index 000000000000..4973ddc444ff --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionOperationStatusBackupVaultContext.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionOperationStatusBackupVaultContext')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionOperationStatusBackupVaultContext.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 'Get-AzDataProtectionOperationStatusBackupVaultContext' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionOperationStatusResourceGroupContext.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionOperationStatusResourceGroupContext.Tests.ps1 new file mode 100644 index 000000000000..6e0f18cc5e1a --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionOperationStatusResourceGroupContext.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionOperationStatusResourceGroupContext')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionOperationStatusResourceGroupContext.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 'Get-AzDataProtectionOperationStatusResourceGroupContext' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuard.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuard.Tests.ps1 new file mode 100644 index 000000000000..325ed8a8e663 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuard.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuard')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuard.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 'Get-AzDataProtectionResourceGuard' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject.Tests.ps1 new file mode 100644 index 000000000000..65416b40a950 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject.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 'Get-AzDataProtectionResourceGuardBackupSecurityPinRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject.Tests.ps1 new file mode 100644 index 000000000000..882933534eeb --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultBackupSecurityPinRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject.Tests.ps1 new file mode 100644 index 000000000000..1c54deb8d978 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultDeleteProtectedItemRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject.Tests.ps1 new file mode 100644 index 000000000000..ea469825a88a --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultDeleteResourceGuardProxyRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject.Tests.ps1 new file mode 100644 index 000000000000..bc9e7e14c9dd --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultDisableSoftDeleteRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject.Tests.ps1 new file mode 100644 index 000000000000..3ecdad483a76 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectedItemRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject.Tests.ps1 new file mode 100644 index 000000000000..2d916f571e29 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject.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 'Get-AzDataProtectionResourceGuardDefaultUpdateProtectionPolicyRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject.Tests.ps1 new file mode 100644 index 000000000000..10f5a90801f6 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject.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 'Get-AzDataProtectionResourceGuardDeleteProtectedItemRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject.Tests.ps1 new file mode 100644 index 000000000000..bb8e2977a42b --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject.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 'Get-AzDataProtectionResourceGuardDeleteResourceGuardProxyRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject.Tests.ps1 new file mode 100644 index 000000000000..c19809b6d599 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject.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 'Get-AzDataProtectionResourceGuardDisableSoftDeleteRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardResource.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardResource.Tests.ps1 new file mode 100644 index 000000000000..7899c3123af4 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardResource.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardResource')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardResource.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 'Get-AzDataProtectionResourceGuardResource' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity1' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject.Tests.ps1 new file mode 100644 index 000000000000..dbd596fd4dde --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject.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 'Get-AzDataProtectionResourceGuardUpdateProtectedItemRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject.Tests.ps1 b/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject.Tests.ps1 new file mode 100644 index 000000000000..41e1878bdf95 --- /dev/null +++ b/src/DataProtection/test/Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject.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 'Get-AzDataProtectionResourceGuardUpdateProtectionPolicyRequestObject' { + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json index 4dc1296f7c16..42c0c0064095 100644 --- a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json +++ b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json @@ -1,17 +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=2021-07-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-04-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "146" ], - "x-ms-client-request-id": [ "4643a391-9154-4e78-9b6d-acf6650c9467" ], + "x-ms-unique-id": [ "145" ], + "x-ms-client-request-id": [ "42d169c7-7b50-4f25-87e3-ef5b7d71fc54" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,30 +22,29 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11872" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "808a30a9-1f9f-4e0d-8eac-da1710e4707e" ], + "x-ms-correlation-request-id": [ "808a30a9-1f9f-4e0d-8eac-da1710e4707e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155823Z:808a30a9-1f9f-4e0d-8eac-da1710e4707e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11922" ], - "x-ms-correlation-request-id": [ "4b1c6efb-b941-499f-8fbb-6ab21b234b75" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092306Z:4b1c6efb-b941-499f-8fbb-6ab21b234b75" ], - "Date": [ "Sat, 28 Aug 2021 09:23:05 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "8140" ], - "Content-Type": [ "application/json" ], + "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\"}]}", "isContentBase64": false } }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-07-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-04-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/findRestorableTimeRanges?api-version=2021-07-01", - "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2021-07-29T14:53:06.0000000Z\",\r\n \"endTime\": \"2021-08-28T14:53:06.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-04-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-05-10T21:28:22.0000000Z\",\r\n \"endTime\": \"2022-06-09T21:28:22.0000000Z\"\r\n}", "isContentBase64": false, "Headers": { }, @@ -59,38 +58,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "f5a04bd6-547a-4e4e-9343-032844d69c2f" ], + "x-ms-correlation-request-id": [ "f5a04bd6-547a-4e4e-9343-032844d69c2f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155825Z:f5a04bd6-547a-4e4e-9343-032844d69c2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], - "x-ms-correlation-request-id": [ "0033e7ee-3e19-4545-8904-1a6115aa621c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092307Z:0033e7ee-3e19-4545-8904-1a6115aa621c" ], - "Date": [ "Sat, 28 Aug 2021 09:23:06 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "389" ], - "Content-Type": [ "application/json" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2021-07-29T14:53:06.0000000Z\",\"endTime\":\"2021-08-28T09:23:06.9026038Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}", + "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-05-10T21:28:22.0000000Z\",\"endTime\":\"2022-06-09T15:58:24.9091958Z\",\"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=2021-07-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-04-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "148" ], - "x-ms-client-request-id": [ "5b56c2a0-702e-48d7-8566-d029ffec413e" ], + "x-ms-unique-id": [ "147" ], + "x-ms-client-request-id": [ "3e7a4e4f-304a-4d9f-8fb9-dd1dadf2d0df" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,30 +99,29 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11871" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "ca8f5c24-0b6b-4900-b7ad-9767db731918" ], + "x-ms-correlation-request-id": [ "ca8f5c24-0b6b-4900-b7ad-9767db731918" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155825Z:ca8f5c24-0b6b-4900-b7ad-9767db731918" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11921" ], - "x-ms-correlation-request-id": [ "f7522b67-73f6-4963-8d16-cdb93ee9b039" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092307Z:f7522b67-73f6-4963-8d16-cdb93ee9b039" ], - "Date": [ "Sat, 28 Aug 2021 09:23:06 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "529" ], - "Content-Type": [ "application/json" ], + "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\"}]},\"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=2021-07-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-04-01+4": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b/restore?api-version=2021-07-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\": \"2021-08-28T09:23:06.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-04-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-09T15:58:24.0000000Z\"\r\n}", "isContentBase64": false, "Headers": { }, @@ -138,17 +135,17 @@ "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/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01" ], + "Server": [ "Kestrel" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "x-ms-request-id": [ "28a80fd3-c47a-468f-ab37-0b04bd45c0fb" ], + "x-ms-correlation-request-id": [ "28a80fd3-c47a-468f-ab37-0b04bd45c0fb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155826Z:28a80fd3-c47a-468f-ab37-0b04bd45c0fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], - "x-ms-correlation-request-id": [ "7f1658c0-0a91-4a61-96b7-fca6fad1d56e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092308Z:7f1658c0-0a91-4a61-96b7-fca6fad1d56e" ], - "Date": [ "Sat, 28 Aug 2021 09:23:07 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:26 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -158,20 +155,20 @@ "isContentBase64": false } }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-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/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "150" ], - "x-ms-client-request-id": [ "b9970a35-2ac5-45e1-ae99-61ccc59fb9df" ], + "x-ms-unique-id": [ "149" ], + "x-ms-client-request-id": [ "4f792923-98a2-4cf4-a474-af91c6265b04" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -181,39 +178,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11870" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "1b585e45-be8e-423b-a1b1-11274fa28457" ], + "x-ms-correlation-request-id": [ "1b585e45-be8e-423b-a1b1-11274fa28457" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155857Z:1b585e45-be8e-423b-a1b1-11274fa28457" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11920" ], - "x-ms-correlation-request-id": [ "0031e394-9dc1-4660-9cd5-d3bc3d5bf8c6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092338Z:0031e394-9dc1-4660-9cd5-d3bc3d5bf8c6" ], - "Date": [ "Sat, 28 Aug 2021 09:23:38 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:57 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "704" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "745" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==\",\"name\":\"Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T09:23:07.9363467Z\",\"endTime\":\"2021-08-28T09:23:13Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==\",\"name\":\"Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T15:58:26.2876458Z\",\"endTime\":\"2022-06-09T15:58:28Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01+6": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "151" ], - "x-ms-client-request-id": [ "b9970a35-2ac5-45e1-ae99-61ccc59fb9df" ], + "x-ms-unique-id": [ "150" ], + "x-ms-client-request-id": [ "4f792923-98a2-4cf4-a474-af91c6265b04" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -224,39 +220,38 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzJjMDU2MGM4LTNmMjEtNDRiMC04YzdhLTc3OWU0ZmQwYjNhNg==?api-version=2021-07-01" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11869" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2Ozg5NGE1MDgxLWI0OGUtNDY5YS1iMGRhLWQwZjRiNzNhZTM2OA==?api-version=2022-04-01" ], + "Server": [ "Kestrel" ], + "x-ms-request-id": [ "c526279f-a339-4c45-88b5-5b72b26465ce" ], + "x-ms-correlation-request-id": [ "c526279f-a339-4c45-88b5-5b72b26465ce" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155857Z:c526279f-a339-4c45-88b5-5b72b26465ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ "Microsoft-IIS/10.0" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11919" ], - "x-ms-correlation-request-id": [ "9417e1bc-96aa-4866-b07f-47f4da6b99d1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092338Z:9417e1bc-96aa-4866-b07f-47f4da6b99d1" ], - "Date": [ "Sat, 28 Aug 2021 09:23:38 GMT" ] + "Date": [ "Thu, 09 Jun 2022 15:58:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "249" ], - "Content-Type": [ "application/json" ], + "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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"objectType\":\"OperationJobExtendedInfo\"}", + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+7": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "152" ], - "x-ms-client-request-id": [ "5ae13f1a-8d85-431f-a132-9f26b8c68f06" ], + "x-ms-unique-id": [ "151" ], + "x-ms-client-request-id": [ "4079dbb4-afcf-459c-9e69-b290e9d1adbf" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,80 +262,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11918" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "7f00c5c9-e500-4dc6-9693-671dad1a3126" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092350Z:7f00c5c9-e500-4dc6-9693-671dad1a3126" ], - "Date": [ "Sat, 28 Aug 2021 09:23:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "153" ], - "x-ms-client-request-id": [ "126a03e7-00c1-4c7c-b6ae-8bc7767fac10" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11917" ], - "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": [ "04c1f988-f0ea-4c57-8def-39ceb4cc7b26" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092400Z:04c1f988-f0ea-4c57-8def-39ceb4cc7b26" ], - "Date": [ "Sat, 28 Aug 2021 09:24:00 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11868" ], + "x-ms-request-id": [ "63eeb4a1-fc18-459a-a3fe-1c49396eaa40" ], + "x-ms-correlation-request-id": [ "63eeb4a1-fc18-459a-a3fe-1c49396eaa40" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155913Z:63eeb4a1-fc18-459a-a3fe-1c49396eaa40" ], + "Date": [ "Thu, 09 Jun 2022 15:59:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+9": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "154" ], - "x-ms-client-request-id": [ "73fd8dbf-2781-4629-bf9c-b01b71ecde9c" ], + "x-ms-unique-id": [ "152" ], + "x-ms-client-request-id": [ "6225300f-57d9-41e2-ac5b-c2a918117e2a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -351,38 +304,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11916" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "0e49fbf0-ebb4-45d2-aaba-5a9270762ebf" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092410Z:0e49fbf0-ebb4-45d2-aaba-5a9270762ebf" ], - "Date": [ "Sat, 28 Aug 2021 09:24:10 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11867" ], + "x-ms-request-id": [ "4ceb930b-9057-4c10-97f8-d5d36cd448f3" ], + "x-ms-correlation-request-id": [ "4ceb930b-9057-4c10-97f8-d5d36cd448f3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155924Z:4ceb930b-9057-4c10-97f8-d5d36cd448f3" ], + "Date": [ "Thu, 09 Jun 2022 15:59:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+10": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "155" ], - "x-ms-client-request-id": [ "18aba86e-a63d-459f-af38-cf40b53f84e8" ], + "x-ms-unique-id": [ "153" ], + "x-ms-client-request-id": [ "ca72a277-d1eb-48d1-907d-6dbf3397605e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -393,38 +346,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11915" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "146b1c49-bc75-40c7-a85d-688994ce0a44" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092421Z:146b1c49-bc75-40c7-a85d-688994ce0a44" ], - "Date": [ "Sat, 28 Aug 2021 09:24:21 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11866" ], + "x-ms-request-id": [ "7e49c222-f92d-4ba2-b791-597d99e675cd" ], + "x-ms-correlation-request-id": [ "7e49c222-f92d-4ba2-b791-597d99e675cd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155934Z:7e49c222-f92d-4ba2-b791-597d99e675cd" ], + "Date": [ "Thu, 09 Jun 2022 15:59:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+11": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "156" ], - "x-ms-client-request-id": [ "50a23fad-d346-4155-887c-297aeabc9416" ], + "x-ms-unique-id": [ "154" ], + "x-ms-client-request-id": [ "92a7bfb7-8a2e-42e0-99d2-bf1ee665a42c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -435,38 +388,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11914" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "1c9b0a7d-db59-4833-bc6a-c6ab4dc52898" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092432Z:1c9b0a7d-db59-4833-bc6a-c6ab4dc52898" ], - "Date": [ "Sat, 28 Aug 2021 09:24:32 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11865" ], + "x-ms-request-id": [ "d5591a59-931f-4c75-8529-7106987f510c" ], + "x-ms-correlation-request-id": [ "d5591a59-931f-4c75-8529-7106987f510c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155945Z:d5591a59-931f-4c75-8529-7106987f510c" ], + "Date": [ "Thu, 09 Jun 2022 15:59:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+12": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "157" ], - "x-ms-client-request-id": [ "fdb61b63-2ae5-4aa6-a227-9015cd7d8262" ], + "x-ms-unique-id": [ "155" ], + "x-ms-client-request-id": [ "498941c3-b781-4e5b-b704-1a0e5ebdf62a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -477,38 +430,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11913" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "98f1f9e5-7347-4320-b2f2-77d4c4e44076" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092442Z:98f1f9e5-7347-4320-b2f2-77d4c4e44076" ], - "Date": [ "Sat, 28 Aug 2021 09:24:42 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11864" ], + "x-ms-request-id": [ "3e261e17-ffe8-4859-b880-5fda129ea210" ], + "x-ms-correlation-request-id": [ "3e261e17-ffe8-4859-b880-5fda129ea210" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T155956Z:3e261e17-ffe8-4859-b880-5fda129ea210" ], + "Date": [ "Thu, 09 Jun 2022 15:59:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+13": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "158" ], - "x-ms-client-request-id": [ "40152223-ba0b-45b6-9518-fd4c2fe11a21" ], + "x-ms-unique-id": [ "156" ], + "x-ms-client-request-id": [ "5f45bbf2-bf1f-42e6-9595-fdc6dbdaa867" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -519,38 +472,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11912" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "4c5de0ba-3ee5-4b10-8d37-f99d74a793c4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092453Z:4c5de0ba-3ee5-4b10-8d37-f99d74a793c4" ], - "Date": [ "Sat, 28 Aug 2021 09:24:52 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11863" ], + "x-ms-request-id": [ "e37950d7-5501-4908-9f97-84a3da8fc5ef" ], + "x-ms-correlation-request-id": [ "e37950d7-5501-4908-9f97-84a3da8fc5ef" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160006Z:e37950d7-5501-4908-9f97-84a3da8fc5ef" ], + "Date": [ "Thu, 09 Jun 2022 16:00:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+14": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "159" ], - "x-ms-client-request-id": [ "cefed301-a9ff-4ef5-aa40-3d53ff72d9ae" ], + "x-ms-unique-id": [ "157" ], + "x-ms-client-request-id": [ "848203c5-0298-42c2-9446-a91b87da8bfc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -561,38 +514,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11911" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "06dd4402-cedd-4524-91a3-42a374434ad1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092503Z:06dd4402-cedd-4524-91a3-42a374434ad1" ], - "Date": [ "Sat, 28 Aug 2021 09:25:03 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11862" ], + "x-ms-request-id": [ "55bc96d1-1502-42b9-878f-c8894c17c4b8" ], + "x-ms-correlation-request-id": [ "55bc96d1-1502-42b9-878f-c8894c17c4b8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160017Z:55bc96d1-1502-42b9-878f-c8894c17c4b8" ], + "Date": [ "Thu, 09 Jun 2022 16:00:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01+15": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "160" ], - "x-ms-client-request-id": [ "fdc13009-ced8-48a4-ae46-fe52e00a62b4" ], + "x-ms-unique-id": [ "158" ], + "x-ms-client-request-id": [ "b30a7b45-ad32-435d-aa74-56fa6c9a9e36" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -603,38 +556,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11910" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "33efaada-10ff-4505-bf7a-b1ab93b0b9a2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092514Z:33efaada-10ff-4505-bf7a-b1ab93b0b9a2" ], - "Date": [ "Sat, 28 Aug 2021 09:25:13 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11861" ], + "x-ms-request-id": [ "339fcf89-74aa-4210-a774-0d64627f942b" ], + "x-ms-correlation-request-id": [ "339fcf89-74aa-4210-a774-0d64627f942b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160028Z:339fcf89-74aa-4210-a774-0d64627f942b" ], + "Date": [ "Thu, 09 Jun 2022 16:00:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "161" ], - "x-ms-client-request-id": [ "6895a6e5-cf26-422b-9ead-2be1e9b551cf" ], + "x-ms-unique-id": [ "159" ], + "x-ms-client-request-id": [ "4d8d5020-5e97-4194-b206-8d45409db323" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -645,38 +598,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11909" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "0b6997f1-4d64-4cf7-b155-fa83eeb859fd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092524Z:0b6997f1-4d64-4cf7-b155-fa83eeb859fd" ], - "Date": [ "Sat, 28 Aug 2021 09:25:24 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11860" ], + "x-ms-request-id": [ "1b96f196-5dab-45e1-a891-59e7e70b2bd3" ], + "x-ms-correlation-request-id": [ "1b96f196-5dab-45e1-a891-59e7e70b2bd3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160038Z:1b96f196-5dab-45e1-a891-59e7e70b2bd3" ], + "Date": [ "Thu, 09 Jun 2022 16:00:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "162" ], - "x-ms-client-request-id": [ "b6412aa0-caa4-42f4-9430-67ae28dd4c4a" ], + "x-ms-unique-id": [ "160" ], + "x-ms-client-request-id": [ "cc983bdc-d364-4a41-b7cb-0f573874c87e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -687,38 +640,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11908" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "0c366c61-19ac-40eb-a87f-a19cbe94073b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092535Z:0c366c61-19ac-40eb-a87f-a19cbe94073b" ], - "Date": [ "Sat, 28 Aug 2021 09:25:34 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11859" ], + "x-ms-request-id": [ "23d3611b-5189-47e2-8e68-0833a4a6508f" ], + "x-ms-correlation-request-id": [ "23d3611b-5189-47e2-8e68-0833a4a6508f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160049Z:23d3611b-5189-47e2-8e68-0833a4a6508f" ], + "Date": [ "Thu, 09 Jun 2022 16:00:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "163" ], - "x-ms-client-request-id": [ "899d2d70-3af4-4c70-a553-82e411fa3686" ], + "x-ms-unique-id": [ "161" ], + "x-ms-client-request-id": [ "7dfeb5ee-a4ec-4167-adb5-5f1192ffa946" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -729,38 +682,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11907" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "38807164-6157-4199-973f-df3e2ff37c2a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092545Z:38807164-6157-4199-973f-df3e2ff37c2a" ], - "Date": [ "Sat, 28 Aug 2021 09:25:45 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11858" ], + "x-ms-request-id": [ "004a9243-c5f1-41e8-bae4-057f9a68e2cd" ], + "x-ms-correlation-request-id": [ "004a9243-c5f1-41e8-bae4-057f9a68e2cd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160100Z:004a9243-c5f1-41e8-bae4-057f9a68e2cd" ], + "Date": [ "Thu, 09 Jun 2022 16:01:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "164" ], - "x-ms-client-request-id": [ "8409bf33-f566-4caa-9c07-fd25b45de373" ], + "x-ms-unique-id": [ "162" ], + "x-ms-client-request-id": [ "859eeda3-f131-4a17-8482-5056ddda509a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -771,38 +724,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11906" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "badf15c3-1cf8-4825-9ede-1ac91a36555f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092556Z:badf15c3-1cf8-4825-9ede-1ac91a36555f" ], - "Date": [ "Sat, 28 Aug 2021 09:25:55 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11857" ], + "x-ms-request-id": [ "85c4edd9-3446-4a8d-a133-1142e38f1eea" ], + "x-ms-correlation-request-id": [ "85c4edd9-3446-4a8d-a133-1142e38f1eea" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160111Z:85c4edd9-3446-4a8d-a133-1142e38f1eea" ], + "Date": [ "Thu, 09 Jun 2022 16:01:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "165" ], - "x-ms-client-request-id": [ "150cad20-2b73-4d8a-bbc9-82fb6409d6f0" ], + "x-ms-unique-id": [ "163" ], + "x-ms-client-request-id": [ "c10227ef-dc57-40cc-b197-e3234619e2d3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -813,38 +766,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11905" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "231465de-d5e2-41ae-bcd1-44bf77cca2a3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092606Z:231465de-d5e2-41ae-bcd1-44bf77cca2a3" ], - "Date": [ "Sat, 28 Aug 2021 09:26:06 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11856" ], + "x-ms-request-id": [ "8b369abe-e1c2-4bd6-b201-cd502f6ae205" ], + "x-ms-correlation-request-id": [ "8b369abe-e1c2-4bd6-b201-cd502f6ae205" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160121Z:8b369abe-e1c2-4bd6-b201-cd502f6ae205" ], + "Date": [ "Thu, 09 Jun 2022 16:01:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "166" ], - "x-ms-client-request-id": [ "f85848df-97f5-4d68-a0a7-78cca692452b" ], + "x-ms-unique-id": [ "164" ], + "x-ms-client-request-id": [ "9ecc1a3d-e23b-4681-bb18-1b1ebc62f255" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -855,38 +808,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11904" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "83e4d9a8-595a-4330-8c71-d11634bd750b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092617Z:83e4d9a8-595a-4330-8c71-d11634bd750b" ], - "Date": [ "Sat, 28 Aug 2021 09:26:16 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11855" ], + "x-ms-request-id": [ "1422d93b-2f91-4cf9-bc8b-85efb0dc1a91" ], + "x-ms-correlation-request-id": [ "1422d93b-2f91-4cf9-bc8b-85efb0dc1a91" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160132Z:1422d93b-2f91-4cf9-bc8b-85efb0dc1a91" ], + "Date": [ "Thu, 09 Jun 2022 16:01:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "167" ], - "x-ms-client-request-id": [ "3c3d8216-6246-4ae7-902b-ac9e42c8ac10" ], + "x-ms-unique-id": [ "165" ], + "x-ms-client-request-id": [ "65b012bf-b846-4dfd-9faf-a3d60755f8d9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -897,38 +850,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11903" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "5fcf178a-7e5c-41de-b1af-3219845b5c01" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092627Z:5fcf178a-7e5c-41de-b1af-3219845b5c01" ], - "Date": [ "Sat, 28 Aug 2021 09:26:26 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11854" ], + "x-ms-request-id": [ "57fafcec-b440-4938-8d11-eb03fe35e0f8" ], + "x-ms-correlation-request-id": [ "57fafcec-b440-4938-8d11-eb03fe35e0f8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160143Z:57fafcec-b440-4938-8d11-eb03fe35e0f8" ], + "Date": [ "Thu, 09 Jun 2022 16:01:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "168" ], - "x-ms-client-request-id": [ "07552d01-c9e5-4906-a474-c90e8fa1a719" ], + "x-ms-unique-id": [ "166" ], + "x-ms-client-request-id": [ "33fa9ec9-e816-4ea9-bbd5-68e03ea9ca6c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -939,38 +892,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11902" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "33e39601-b8a5-4f6b-8048-42102a4fe696" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092638Z:33e39601-b8a5-4f6b-8048-42102a4fe696" ], - "Date": [ "Sat, 28 Aug 2021 09:26:37 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11853" ], + "x-ms-request-id": [ "52cad88a-76f0-4218-abf7-aad2621e74ba" ], + "x-ms-correlation-request-id": [ "52cad88a-76f0-4218-abf7-aad2621e74ba" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160153Z:52cad88a-76f0-4218-abf7-aad2621e74ba" ], + "Date": [ "Thu, 09 Jun 2022 16:01:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "169" ], - "x-ms-client-request-id": [ "23ef2233-ff41-416c-a303-d2d03d0f7ba6" ], + "x-ms-unique-id": [ "167" ], + "x-ms-client-request-id": [ "8519c394-4995-444c-8f2a-ca07c730c880" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -981,38 +934,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11901" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "13918fbe-c240-4f13-a39c-65daa2739362" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092648Z:13918fbe-c240-4f13-a39c-65daa2739362" ], - "Date": [ "Sat, 28 Aug 2021 09:26:47 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11852" ], + "x-ms-request-id": [ "8e8661c6-6623-4d9d-9dc9-c0ab1f9d8134" ], + "x-ms-correlation-request-id": [ "8e8661c6-6623-4d9d-9dc9-c0ab1f9d8134" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160204Z:8e8661c6-6623-4d9d-9dc9-c0ab1f9d8134" ], + "Date": [ "Thu, 09 Jun 2022 16:02:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "170" ], - "x-ms-client-request-id": [ "a0dfd814-3216-400c-b770-97545de60430" ], + "x-ms-unique-id": [ "168" ], + "x-ms-client-request-id": [ "6b214457-e758-4a1a-8efd-2ade2e6530a7" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1023,38 +976,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11900" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "468d90fe-a406-4b92-a2c8-01d5797d135d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092659Z:468d90fe-a406-4b92-a2c8-01d5797d135d" ], - "Date": [ "Sat, 28 Aug 2021 09:26:58 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11851" ], + "x-ms-request-id": [ "5b21aa01-cfa1-46a1-89e2-000691e70b39" ], + "x-ms-correlation-request-id": [ "5b21aa01-cfa1-46a1-89e2-000691e70b39" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160215Z:5b21aa01-cfa1-46a1-89e2-000691e70b39" ], + "Date": [ "Thu, 09 Jun 2022 16:02:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "171" ], - "x-ms-client-request-id": [ "d1f2cf4b-ac9e-4804-97f9-3d9851f20730" ], + "x-ms-unique-id": [ "169" ], + "x-ms-client-request-id": [ "f059daad-d631-4051-848e-b8c8b24e82ac" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1065,38 +1018,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11899" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "e33fb1a3-6711-456e-acf7-716f00570358" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092709Z:e33fb1a3-6711-456e-acf7-716f00570358" ], - "Date": [ "Sat, 28 Aug 2021 09:27:08 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11850" ], + "x-ms-request-id": [ "84fb4530-0fbb-43d7-844b-6344d9c1eb86" ], + "x-ms-correlation-request-id": [ "84fb4530-0fbb-43d7-844b-6344d9c1eb86" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160226Z:84fb4530-0fbb-43d7-844b-6344d9c1eb86" ], + "Date": [ "Thu, 09 Jun 2022 16:02:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "172" ], - "x-ms-client-request-id": [ "f45fc03f-78b3-498f-a2c7-c79178605510" ], + "x-ms-unique-id": [ "170" ], + "x-ms-client-request-id": [ "8f6f0450-b53d-4cf6-a0aa-39f84f258dcb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1107,38 +1060,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11898" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "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": [ "b913d423-81f0-40b7-b035-356f12fa2528" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092720Z:b913d423-81f0-40b7-b035-356f12fa2528" ], - "Date": [ "Sat, 28 Aug 2021 09:27:20 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11849" ], + "x-ms-request-id": [ "bb6e849d-f1b4-405a-beeb-0d5f96602279" ], + "x-ms-correlation-request-id": [ "bb6e849d-f1b4-405a-beeb-0d5f96602279" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160236Z:bb6e849d-f1b4-405a-beeb-0d5f96602279" ], + "Date": [ "Thu, 09 Jun 2022 16:02:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2380" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A23%3A08.7564963Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T15%3A58%3A27.1029347Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"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/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/25b869f5-d4d9-43ad-845f-4a6946dd1e7d?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "173" ], - "x-ms-client-request-id": [ "e4027c96-ef36-4f99-bc56-bbea27a48c8c" ], + "x-ms-unique-id": [ "171" ], + "x-ms-client-request-id": [ "9211ed84-fe1e-4904-8956-d34593bed076" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1149,22 +1102,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11897" ], - "x-ms-correlation-request-id": [ "facf2aff-4d79-46a9-a23a-2c4da2eac9bd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T092730Z:facf2aff-4d79-46a9-a23a-2c4da2eac9bd" ], - "Date": [ "Sat, 28 Aug 2021 09:27:30 GMT" ] + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11848" ], + "x-ms-request-id": [ "7c6e54c0-9e3e-4376-8188-bb6cd5d92497" ], + "x-ms-correlation-request-id": [ "7c6e54c0-9e3e-4376-8188-bb6cd5d92497" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160247Z:7c6e54c0-9e3e-4376-8188-bb6cd5d92497" ], + "Date": [ "Thu, 09 Jun 2022 16:02:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2415" ], - "Content-Type": [ "application/json" ], + "Content-Length": [ "2071" ], + "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b9970a35-2ac5-45e1-ae99-61ccc59fb9df\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/retention60days\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"vaultName\":\"jecECYBlobVault\",\"backupInstanceFriendlyName\":\"Microsoft.Storage/storageAccounts\",\"policyName\":\"retention60days\",\"sourceResourceGroup\":\"BlobBackup-BugBash\",\"dataSourceSetName\":null,\"dataSourceName\":\"jececyblobstorage\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272021-08-28T09%3A27%3A27.1955919Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2021-08-28T09:23:08.1722855Z\",\"endTime\":\"2021-08-28T09:27:26.8039124Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT4M18.6316269S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2021-08-28T09:23:06Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"name\":\"30a9a17c-c2f4-4949-84ec-1d3bad1394da\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"4f792923-98a2-4cf4-a474-af91c6265b04\",\"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-09T16%3A02%3A41.1152818Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-09T15:58:26.6444966Z\",\"endTime\":\"2022-06-09T16:02:40.5943449Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT4M13.9498483S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-09T15:58:24Z\"},\"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/25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"name\":\"25b869f5-d4d9-43ad-845f-4a6946dd1e7d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json index bbc992973b01..f9a79285f8e8 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json @@ -1,17 +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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "c29468ee-d9a2-49a5-b696-027dbcbcdc6b" ], + "x-ms-unique-id": [ "172" ], + "x-ms-client-request-id": [ "567b2f81-bbc3-4fce-b82d-289dbdce732a" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,33 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "066f9762-03d6-4cf8-b82c-534056017875" ], - "x-ms-routing-request-id": [ "CENTRALINDIA:20210830T072825Z:066f9762-03d6-4cf8-b82c-534056017875" ], - "Date": [ "Mon, 30 Aug 2021 07:28:25 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-correlation-request-id": [ "e1dce003-7350-4431-8f41-c99d43685fa8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160250Z:e1dce003-7350-4431-8f41-c99d43685fa8" ], + "Date": [ "Thu, 09 Jun 2022 16:02:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "651" ], + "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\"}]},\"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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "179836a9-2d8b-469e-9cca-5b5e960fc515" ], + "x-ms-unique-id": [ "173" ], + "x-ms-client-request-id": [ "7d465079-f95e-424e-a507-4f429505b222" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -69,33 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "eeecff1c-9beb-499d-8c4c-882c016ed837" ], - "x-ms-routing-request-id": [ "CENTRALINDIA:20210830T072827Z:eeecff1c-9beb-499d-8c4c-882c016ed837" ], - "Date": [ "Mon, 30 Aug 2021 07:28:27 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-correlation-request-id": [ "84c840f8-8588-4238-9afe-1db5dd93fce3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160251Z:84c840f8-8588-4238-9afe-1db5dd93fce3" ], + "Date": [ "Thu, 09 Jun 2022 16:02:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1508" ], + "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\"}]}", + "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "a2c63d97-995b-49ee-9d0c-bc0a1998a16e" ], + "x-ms-unique-id": [ "174" ], + "x-ms-client-request-id": [ "0dbbd32e-d321-4678-934c-11641914ad61" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -111,33 +111,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "a3ceca6d-2023-431c-b224-5374b4338a85" ], - "x-ms-routing-request-id": [ "CENTRALINDIA:20210830T072828Z:a3ceca6d-2023-431c-b224-5374b4338a85" ], - "Date": [ "Mon, 30 Aug 2021 07:28:28 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-correlation-request-id": [ "de8d50b9-0024-4c24-9649-e2a63f09114a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160251Z:de8d50b9-0024-4c24-9649-e2a63f09114a" ], + "Date": [ "Thu, 09 Jun 2022 16:02:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1860" ], "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-93d821f0-525b-4091-8018-05531313992a\",\"name\":\"oss-pstest-server-postgres-93d821f0-525b-4091-8018-05531313992a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "14f5b359-9cc3-4403-b3c6-0d7228ffe25e" ], + "x-ms-unique-id": [ "175" ], + "x-ms-client-request-id": [ "d0d7375c-245b-49b5-8bed-e9106b6f4862" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -153,17 +153,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "45d065a2-7e18-49bd-8395-fecb234f4ca8" ], - "x-ms-routing-request-id": [ "CENTRALINDIA:20210830T072828Z:45d065a2-7e18-49bd-8395-fecb234f4ca8" ], - "Date": [ "Mon, 30 Aug 2021 07:28:28 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-correlation-request-id": [ "0c3b73e2-2692-4f11-b416-4b14ab6a0693" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160252Z:0c3b73e2-2692-4f11-b416-4b14ab6a0693" ], + "Date": [ "Thu, 09 Jun 2022 16:02:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1860" ], "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-93d821f0-525b-4091-8018-05531313992a\",\"name\":\"oss-pstest-server-postgres-93d821f0-525b-4091-8018-05531313992a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "isContentBase64": false } } diff --git a/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json index 473b84e13dd9..5d169f4fa840 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json @@ -1,8 +1,8 @@ { - "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=2021-07-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-04-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=2021-07-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-04-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": { @@ -22,10 +22,10 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-correlation-request-id": [ "bff781de-0965-4744-89a7-412bd6e636ff" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T093021Z:bff781de-0965-4744-89a7-412bd6e636ff" ], - "Date": [ "Sat, 28 Aug 2021 09:30:20 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "c6613253-7c40-4599-a77f-cc4e06d90684" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160254Z:c6613253-7c40-4599-a77f-cc4e06d90684" ], + "Date": [ "Thu, 09 Jun 2022 16:02:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2217" ], @@ -36,19 +36,19 @@ "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "191" ], - "x-ms-client-request-id": [ "f4fa29c8-b507-42fa-a6bf-1bcaca6be8e5" ], + "x-ms-unique-id": [ "177" ], + "x-ms-client-request-id": [ "46e75ee4-8e24-449a-bef3-2fda86dc6841" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -64,33 +64,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "387ab468-d47b-4b7f-aa7c-dfaacd79e5fa" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T093021Z:387ab468-d47b-4b7f-aa7c-dfaacd79e5fa" ], - "Date": [ "Sat, 28 Aug 2021 09:30:21 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-correlation-request-id": [ "e52cdb2b-dc4f-4785-b309-042f293ce126" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160254Z:e52cdb2b-dc4f-4785-b309-042f293ce126" ], + "Date": [ "Thu, 09 Jun 2022 16:02:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3726" ], + "Content-Length": [ "5157" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "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\"}]}", + "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "192" ], - "x-ms-client-request-id": [ "fc7da6e8-a43a-4bc1-9061-122690bb408f" ], + "x-ms-unique-id": [ "178" ], + "x-ms-client-request-id": [ "3995efa9-7625-43b9-be1d-e0fc972428ba" ], "CommandName": [ "Remove-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Remove-AzDataProtectionBackupPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -105,10 +105,10 @@ "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-correlation-request-id": [ "874ff7ff-d1a1-4d1f-962c-77125df6ec5b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T093022Z:874ff7ff-d1a1-4d1f-962c-77125df6ec5b" ], - "Date": [ "Sat, 28 Aug 2021 09:30:22 GMT" ] + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-correlation-request-id": [ "20dd2bc4-0422-435d-96a8-208e37771654" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160256Z:20dd2bc4-0422-435d-96a8-208e37771654" ], + "Date": [ "Thu, 09 Jun 2022 16:02:56 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -118,19 +118,19 @@ "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "193" ], - "x-ms-client-request-id": [ "85c362dc-833e-46bd-ae43-066242d55241" ], + "x-ms-unique-id": [ "179" ], + "x-ms-client-request-id": [ "95a41ea5-4927-44d8-b986-ea18dd27263d" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -146,17 +146,17 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "f6720401-f6cc-4fbf-b717-b6d43f6b45f2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T093022Z:f6720401-f6cc-4fbf-b717-b6d43f6b45f2" ], - "Date": [ "Sat, 28 Aug 2021 09:30:22 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-correlation-request-id": [ "5d54f85a-929f-46a3-819e-7936f638aa9b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160256Z:5d54f85a-929f-46a3-819e-7936f638aa9b" ], + "Date": [ "Thu, 09 Jun 2022 16:02:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1508" ], + "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\"}]}", + "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 } } diff --git a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json index 2c1768adbdfe..f93229e9f2ea 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id?api-version=2021-07-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-04-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id?api-version=2021-07-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-04-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}", "isContentBase64": false, "Headers": { @@ -18,40 +18,41 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzOzBiZDQ5ZDcyLWEyYjgtNDlhYS05ODA2LTdkYjc4YmU1MWU2ZQ==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3Ozc3MWE3NjE3LWQ0OTQtNGMxMC1iZmUyLWJlMWQ4MGExY2QxMw==?api-version=2022-04-01" ], + "x-ms-arm-resource-system-data": [ "{\"createdBy\":\"hiaga@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-06-09T16:03:03.3903035Z\",\"lastModifiedBy\":\"hiaga@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-06-09T16:03:03.3903035Z\"}" ], "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": [ "a78e9fe3-8ee7-4964-b2d5-247e1a81ef85" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210829T083124Z:a78e9fe3-8ee7-4964-b2d5-247e1a81ef85" ], - "Date": [ "Sun, 29 Aug 2021 08:31:23 GMT" ] + "x-ms-correlation-request-id": [ "ad03c73a-b220-46d8-828c-6fb6e15c2c0e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160308Z:ad03c73a-b220-46d8-828c-6fb6e15c2c0e" ], + "Date": [ "Thu, 09 Jun 2022 16:03:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "401" ], + "Content-Length": [ "417" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"properties\":{\"provisioningState\":\"Provisioning\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}]},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id\",\"name\":\"new-testing-vault-k7yfhae8id\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "Content": "{\"location\":\"centraluseuap\",\"properties\":{\"provisioningState\":\"Provisioning\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"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/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzOzBiZDQ5ZDcyLWEyYjgtNDlhYS05ODA2LTdkYjc4YmU1MWU2ZQ==?api-version=2021-07-01+2": { + "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/operationStatus/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3Ozc3MWE3NjE3LWQ0OTQtNGMxMC1iZmUyLWJlMWQ4MGExY2QxMw==?api-version=2022-04-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzOzBiZDQ5ZDcyLWEyYjgtNDlhYS05ODA2LTdkYjc4YmU1MWU2ZQ==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3Ozc3MWE3NjE3LWQ0OTQtNGMxMC1iZmUyLWJlMWQ4MGExY2QxMw==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "fb5bf13a-23e6-414a-ad94-f625d10f9f93" ], + "x-ms-unique-id": [ "181" ], + "x-ms-client-request-id": [ "392b6ae8-4154-400c-985d-dc1c13f57526" ], "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -66,34 +67,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "ab09c5a7-48c1-4de9-aa40-5641fefe07a1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210829T083134Z:ab09c5a7-48c1-4de9-aa40-5641fefe07a1" ], - "Date": [ "Sun, 29 Aug 2021 08:31:33 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], + "x-ms-correlation-request-id": [ "873767d9-6a83-4781-b4e8-5324cb13596a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160318Z:873767d9-6a83-4781-b4e8-5324cb13596a" ], + "Date": [ "Thu, 09 Jun 2022 16:03:18 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "443" ], + "Content-Length": [ "474" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzOzBiZDQ5ZDcyLWEyYjgtNDlhYS05ODA2LTdkYjc4YmU1MWU2ZQ==\",\"name\":\"MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzOzBiZDQ5ZDcyLWEyYjgtNDlhYS05ODA2LTdkYjc4YmU1MWU2ZQ==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-29T08:31:22.5510715Z\",\"endTime\":\"2021-08-29T08:31:23Z\"}", + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3Ozc3MWE3NjE3LWQ0OTQtNGMxMC1iZmUyLWJlMWQ4MGExY2QxMw==\",\"name\":\"Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3Ozc3MWE3NjE3LWQ0OTQtNGMxMC1iZmUyLWJlMWQ4MGExY2QxMw==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T16:03:05.9303744Z\",\"endTime\":\"2022-06-09T16:03:07Z\"}", "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-testing-vault-k7yfhae8id?api-version=2021-07-01+3": { + "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-04-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "fb5bf13a-23e6-414a-ad94-f625d10f9f93" ], + "x-ms-unique-id": [ "182" ], + "x-ms-client-request-id": [ "392b6ae8-4154-400c-985d-dc1c13f57526" ], "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -108,33 +109,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "1f2ad4af-0fb8-4e4a-8b3d-992347fe2e65" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210829T083135Z:1f2ad4af-0fb8-4e4a-8b3d-992347fe2e65" ], - "Date": [ "Sun, 29 Aug 2021 08:31:34 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-correlation-request-id": [ "a95a7c9f-f4dd-46b9-9062-f98595018728" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160319Z:a95a7c9f-f4dd-46b9-9062-f98595018728" ], + "Date": [ "Thu, 09 Jun 2022 16:03:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "538" ], + "Content-Length": [ "554" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"4449fb75-7e4e-40a4-8959-f62288035fed\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}]},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id\",\"name\":\"new-testing-vault-k7yfhae8id\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"4e47db80-4a84-4dad-963d-1d3982a9b434\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"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-testing-vault-k7yfhae8id?api-version=2021-07-01+4": { + "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-04-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "e7c774d1-36bf-4ce3-842d-645a4e2d7c43" ], + "x-ms-unique-id": [ "183" ], + "x-ms-client-request-id": [ "0142cd3b-e333-4adf-861d-ad9410b3d18e" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -150,33 +151,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "633abae8-4562-47ba-a9c5-e5c3db2ac6ba" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210829T083135Z:633abae8-4562-47ba-a9c5-e5c3db2ac6ba" ], - "Date": [ "Sun, 29 Aug 2021 08:31:34 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-correlation-request-id": [ "4a01470e-ea32-4a70-abbd-4a8101926eee" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160320Z:4a01470e-ea32-4a70-abbd-4a8101926eee" ], + "Date": [ "Thu, 09 Jun 2022 16:03:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "538" ], + "Content-Length": [ "554" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"4449fb75-7e4e-40a4-8959-f62288035fed\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}]},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id\",\"name\":\"new-testing-vault-k7yfhae8id\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"4e47db80-4a84-4dad-963d-1d3982a9b434\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"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-testing-vault-k7yfhae8id?api-version=2021-07-01+5": { + "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-04-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-testing-vault-k7yfhae8id?api-version=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "a309bec4-805d-4a77-859b-702f72326125" ], + "x-ms-unique-id": [ "184" ], + "x-ms-client-request-id": [ "c4c59cee-f654-454f-a905-f73923daff1d" ], "CommandName": [ "Remove-AzDataProtectionBackupVault" ], "FullCommandName": [ "Remove-AzDataProtectionBackupVault_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -187,17 +188,17 @@ "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/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzO2JhMDNhNGQ3LTgzYjYtNGYwYS05OGQwLTJkMGYxMDdhYTRlMA==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3OzBmODgyZmEzLTU2NzYtNDhiNy1iMGQ1LTFjNTE0YTIwZWQ4Yw==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MjJjZmJjN2MtMTUwNi00Y2EzLWFmNWQtNWIwMzRhZmM3MGEzO2JhMDNhNGQ3LTgzYjYtNGYwYS05OGQwLTJkMGYxMDdhYTRlMA==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2Q3MDFmYzktNTQwOS00ZTM4LThhMjItOWQ2MjUxZGI1MTM3OzBmODgyZmEzLTU2NzYtNDhiNy1iMGQ1LTFjNTE0YTIwZWQ4Yw==?api-version=2022-04-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": [ "ec1dbb11-b615-4496-b76d-85bfbdc366ff" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210829T083136Z:ec1dbb11-b615-4496-b76d-85bfbdc366ff" ], - "Date": [ "Sun, 29 Aug 2021 08:31:35 GMT" ] + "x-ms-correlation-request-id": [ "bc9bfbae-38f1-48a7-bf37-ccfe87a2da9b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160321Z:bc9bfbae-38f1-48a7-bf37-ccfe87a2da9b" ], + "Date": [ "Thu, 09 Jun 2022 16:03:20 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json new file mode 100644 index 000000000000..2d1da9eeedfa --- /dev/null +++ b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json @@ -0,0 +1,163 @@ +{ + "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-04-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-04-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}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "154" ] + } + }, + "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": [ "99" ], + "x-ms-correlation-request-id": [ "a49bbd0d-cb92-459d-9b47-ec01db9e13f7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160327Z:a49bbd0d-cb92-459d-9b47-ec01db9e13f7" ], + "Date": [ "Thu, 09 Jun 2022 16:03:27 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\"}", + "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-04-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-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "186" ], + "x-ms-client-request-id": [ "b06f28e7-a27e-4c8c-b6d8-cd1fe6608e9a" ], + "CommandName": [ "Get-AzDataProtectionResourceGuard" ], + "FullCommandName": [ "Get-AzDataProtectionResourceGuard_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "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-reads": [ "11978" ], + "x-ms-correlation-request-id": [ "e824ffab-a2d4-44b6-a63a-e9b2e499af9b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160328Z:e824ffab-a2d4-44b6-a63a-e9b2e499af9b" ], + "Date": [ "Thu, 09 Jun 2022 16:03:28 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\"}", + "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-04-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-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "187" ], + "x-ms-client-request-id": [ "ed026510-b699-4b4f-838c-4412f028c9cc" ], + "CommandName": [ "Remove-AzDataProtectionResourceGuard" ], + "FullCommandName": [ "Remove-AzDataProtectionResourceGuard_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "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" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], + "x-ms-correlation-request-id": [ "73bc9fd1-a210-4d34-a850-e65b60b0ebc4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160332Z:73bc9fd1-a210-4d34-a850-e65b60b0ebc4" ], + "Date": [ "Thu, 09 Jun 2022 16:03:32 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "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-04-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-04-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "188" ], + "x-ms-client-request-id": [ "b02ebf95-0733-4866-b07f-c02dc4a5e8da" ], + "CommandName": [ "Get-AzDataProtectionResourceGuard" ], + "FullCommandName": [ "Get-AzDataProtectionResourceGuard_Get1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "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-reads": [ "11977" ], + "x-ms-correlation-request-id": [ "befd99d0-7779-4c08-b209-70e7d981a8ef" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160333Z:befd99d0-7779-4c08-b209-70e7d981a8ef" ], + "Date": [ "Thu, 09 Jun 2022 16:03:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1799" ], + "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\"}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionResourceGuard.Tests.ps1 b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Tests.ps1 new file mode 100644 index 000000000000..47513c734c91 --- /dev/null +++ b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Tests.ps1 @@ -0,0 +1,53 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDataProtectionResourceGuard')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDataProtectionResourceGuard.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-AzDataProtectionResourceGuard' { + It 'PutExpanded' { + $subId = $env.TestResourceGuard.SubscriptionId + $rgName = $env.TestResourceGuard.ResourceGroupName + $resGuardName = $env.TestResourceGuard.ResourceGuardName + $location = $env.TestResourceGuard.Location + $tag = @{"MABUsed"="Yes";"Owner"="hiaga";"Purpose"="testing";"DeleteBy"="01-2099"} + + # create resource guard + $resourceGuard = New-AzDataProtectionResourceGuard -SubscriptionId $subId -ResourceGroupName $rgName -Name $resGuardName -Location $location -Tag $tag + $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId $subId -ResourceGroupName $rgName -Name $resGuardName + $criticalOperations = $resourceGuard.ResourceGuardOperation.VaultCriticalOperation + + $criticalOperations -contains "Microsoft.RecoveryServices/vaults/backupPolicies/write" | Should be $true + $criticalOperations -contains "Microsoft.RecoveryServices/vaults/backupSecurityPIN/action" | Should be $true + $criticalOperations -contains "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write" | Should be $true + + # remove resource guard + Remove-AzDataProtectionResourceGuard -Name $resourceGuard.Name -ResourceGroupName $rgName -SubscriptionId $subId + + # resource guard should be null + $resourceGuard = Get-AzDataProtectionResourceGuard -SubscriptionId $subId -ResourceGroupName $rgName + ($resourceGuard -eq $null -or $resourceGuard.Name -notcontains $resGuardName) | Should be $true + } + + It 'Put' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PutViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PutViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Remove-AzDataProtectionResourceGuard.Tests.ps1 b/src/DataProtection/test/Remove-AzDataProtectionResourceGuard.Tests.ps1 new file mode 100644 index 000000000000..cbb7fe2eb222 --- /dev/null +++ b/src/DataProtection/test/Remove-AzDataProtectionResourceGuard.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDataProtectionResourceGuard')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDataProtectionResourceGuard.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 'Remove-AzDataProtectionResourceGuard' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceBackup.Tests.ps1 b/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceBackup.Tests.ps1 new file mode 100644 index 000000000000..a73ac9b3f4b6 --- /dev/null +++ b/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceBackup.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Resume-AzDataProtectionBackupInstanceBackup')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Resume-AzDataProtectionBackupInstanceBackup.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 'Resume-AzDataProtectionBackupInstanceBackup' { + It 'Resume' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ResumeViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceProtection.Tests.ps1 b/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceProtection.Tests.ps1 new file mode 100644 index 000000000000..d278cc306a7e --- /dev/null +++ b/src/DataProtection/test/Resume-AzDataProtectionBackupInstanceProtection.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Resume-AzDataProtectionBackupInstanceProtection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Resume-AzDataProtectionBackupInstanceProtection.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 'Resume-AzDataProtectionBackupInstanceProtection' { + It 'Resume' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ResumeViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json index f6aa8198b244..f8c0ac50f480 100644 --- a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json +++ b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json @@ -1,17 +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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "4ab5c64c-3268-4cc8-80fe-bc3f0513ac41" ], + "x-ms-unique-id": [ "189" ], + "x-ms-client-request-id": [ "7e6aba5b-8378-4ae4-b3a9-1b6ea7e2a956" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,33 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "ad773b5e-bda4-425a-b642-4c442d9c4789" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105148Z:ad773b5e-bda4-425a-b642-4c442d9c4789" ], - "Date": [ "Sat, 28 Aug 2021 10:51:47 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-correlation-request-id": [ "9ac23a12-1a6e-4990-a99d-4452e8f6c161" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160351Z:9ac23a12-1a6e-4990-a99d-4452e8f6c161" ], + "Date": [ "Thu, 09 Jun 2022 16:03:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "651" ], + "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\"}]},\"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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "bc04eeb0-a4ea-411a-a61b-3f3b71add1af" ], + "x-ms-unique-id": [ "190" ], + "x-ms-client-request-id": [ "c0c5d244-4185-4b1a-8aa7-a18ab0739ed6" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -69,33 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-correlation-request-id": [ "c0a278ca-6b02-4f29-af6d-56f4504f4697" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105149Z:c0a278ca-6b02-4f29-af6d-56f4504f4697" ], - "Date": [ "Sat, 28 Aug 2021 10:51:48 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-correlation-request-id": [ "91d28864-a45f-473a-90e5-a39f17c646bf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160351Z:91d28864-a45f-473a-90e5-a39f17c646bf" ], + "Date": [ "Thu, 09 Jun 2022 16:03:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1860" ], "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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"name\":\"oss-pstest-server-postgres-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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\"}]}", "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=2021-07-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-04-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=2021-07-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-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "fd94999b-b082-4bb5-a248-2d5700a41a35" ], + "x-ms-unique-id": [ "191" ], + "x-ms-client-request-id": [ "99ae6704-3dbb-46a2-844e-b1f847a9dee8" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -111,24 +111,24 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-correlation-request-id": [ "4a77a2d5-4f2a-4ca6-b75b-50359709703d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105149Z:4a77a2d5-4f2a-4ca6-b75b-50359709703d" ], - "Date": [ "Sat, 28 Aug 2021 10:51:48 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], + "x-ms-correlation-request-id": [ "7c4aa2bd-1905-4f4b-a5ae-3b7a224817aa" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160352Z:7c4aa2bd-1905-4f4b-a5ae-3b7a224817aa" ], + "Date": [ "Thu, 09 Jun 2022 16:03:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1508" ], + "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\"}]}", + "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-45a33101-ec2b-47ed-8d05-3a067d208ef3/backup?api-version=2021-07-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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-04-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-45a33101-ec2b-47ed-8d05-3a067d208ef3/backup?api-version=2021-07-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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-04-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": { @@ -143,17 +143,17 @@ "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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-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": [ "eed9f774-641e-4db0-b8b8-13b51948d719" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105150Z:eed9f774-641e-4db0-b8b8-13b51948d719" ], - "Date": [ "Sat, 28 Aug 2021 10:51:49 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-correlation-request-id": [ "7f6a2454-5e1f-431a-b0cc-376b711dc9b0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160353Z:7f6a2454-5e1f-431a-b0cc-376b711dc9b0" ], + "Date": [ "Thu, 09 Jun 2022 16:03:52 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -163,20 +163,20 @@ "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "c362194d-54c9-41c7-ab17-6bfc0a413e94" ], + "x-ms-unique-id": [ "193" ], + "x-ms-client-request-id": [ "1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -191,34 +191,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-correlation-request-id": [ "c4be0226-1b52-4a90-b616-647cb787b155" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105220Z:c4be0226-1b52-4a90-b616-647cb787b155" ], - "Date": [ "Sat, 28 Aug 2021 10:52:20 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-correlation-request-id": [ "0e6a4d42-442f-4e9e-8729-3c7917878f12" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160424Z:0e6a4d42-442f-4e9e-8729-3c7917878f12" ], + "Date": [ "Thu, 09 Jun 2022 16:04:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "702" ], + "Content-Length": [ "736" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T10:51:50.2635236Z\",\"endTime\":\"2021-08-28T10:51:52Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T16:03:53.153353Z\",\"endTime\":\"2022-06-09T16:03:56Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-01+6": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "c362194d-54c9-41c7-ab17-6bfc0a413e94" ], + "x-ms-unique-id": [ "194" ], + "x-ms-client-request-id": [ "1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -229,207 +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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzk0YWRhYmE3LThiMGItNGIxMy04MWY3LTBhZmU5NzJmZWJlOA==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2MwMGJiN2U3LThhNTgtNGY3Ny05NWE4LTc2OTY2NDcxNWY4OA==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-correlation-request-id": [ "b73e6af2-9236-455a-99e3-9d086dcc467d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105221Z:b73e6af2-9236-455a-99e3-9d086dcc467d" ], - "Date": [ "Sat, 28 Aug 2021 10:52:21 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-correlation-request-id": [ "cd5996fd-a70f-4022-b505-ed18378d3599" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160424Z:cd5996fd-a70f-4022-b505-ed18378d3599" ], + "Date": [ "Thu, 09 Jun 2022 16:04: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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "02984dca-9da7-40c1-af59-7b4a9246ab82" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "de1a3ed3-0b7b-4a31-bac6-e944836c5e10" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105231Z:de1a3ed3-0b7b-4a31-bac6-e944836c5e10" ], - "Date": [ "Sat, 28 Aug 2021 10:52:31 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "b39aa3d7-2b3c-406f-8ad4-b8486df8a760" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a98e4eb2-f9b9-43f6-ad39-b24b0af5face" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105242Z:a98e4eb2-f9b9-43f6-ad39-b24b0af5face" ], - "Date": [ "Sat, 28 Aug 2021 10:52:42 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "bc21c770-1271-4e99-b9b8-2580efe9b7de" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "207677fb-d19b-4677-b6d8-84bbcf65c11d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105253Z:207677fb-d19b-4677-b6d8-84bbcf65c11d" ], - "Date": [ "Sat, 28 Aug 2021 10:52:52 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "406e0c7d-5ccb-4ea9-8479-45e3fa7a5524" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e2e37755-5132-4d2f-a146-b5884acb2eb6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105303Z:e2e37755-5132-4d2f-a146-b5884acb2eb6" ], - "Date": [ "Sat, 28 Aug 2021 10:53:03 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "97a83a48-4264-4517-a91c-4c0d6df936d6" ], + "x-ms-unique-id": [ "195" ], + "x-ms-client-request-id": [ "193198fc-44ee-49be-ac6f-503fcf81582a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -440,80 +272,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "x-ms-request-id": [ "" ], - "X-Powered-By": [ "ASP.NET" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "f7079e8b-a1d0-4e41-9dd3-44d673c9b43e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105314Z:f7079e8b-a1d0-4e41-9dd3-44d673c9b43e" ], - "Date": [ "Sat, 28 Aug 2021 10:53:13 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2171" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "f58c0962-775f-4185-9944-9e7d38665511" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "00803931-efe6-4749-84cc-2acca8dd2a55" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105324Z:00803931-efe6-4749-84cc-2acca8dd2a55" ], - "Date": [ "Sat, 28 Aug 2021 10:53:24 GMT" ] + "x-ms-correlation-request-id": [ "426b5441-5bb8-464e-9a22-9ce9463833bf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160435Z:426b5441-5bb8-464e-9a22-9ce9463833bf" ], + "Date": [ "Thu, 09 Jun 2022 16:04:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "3a138098-489f-4f76-be0b-15e50ca6949f" ], + "x-ms-unique-id": [ "196" ], + "x-ms-client-request-id": [ "2d0a56b6-1cfc-497f-b9c0-d085704590d5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -524,38 +314,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e645389c-1bbb-442d-8494-8e5898115fb2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105335Z:e645389c-1bbb-442d-8494-8e5898115fb2" ], - "Date": [ "Sat, 28 Aug 2021 10:53:34 GMT" ] + "x-ms-correlation-request-id": [ "17932b94-cbf4-43b7-88d6-3b36a446bbf2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160446Z:17932b94-cbf4-43b7-88d6-3b36a446bbf2" ], + "Date": [ "Thu, 09 Jun 2022 16:04:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "a24f0bc0-f838-41d6-a8be-4ae2dc9ab86e" ], + "x-ms-unique-id": [ "197" ], + "x-ms-client-request-id": [ "25edef91-99a0-4e90-b896-1b828428cac5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -566,38 +356,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "c99e6f57-67cf-40dc-baf3-7ee7b495d66a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105345Z:c99e6f57-67cf-40dc-baf3-7ee7b495d66a" ], - "Date": [ "Sat, 28 Aug 2021 10:53:44 GMT" ] + "x-ms-correlation-request-id": [ "7156e299-3f64-4cca-b583-de006a40ed55" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160456Z:7156e299-3f64-4cca-b583-de006a40ed55" ], + "Date": [ "Thu, 09 Jun 2022 16:04:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01+15": { + "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/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "8e451476-f515-4c93-8346-25769941e42d" ], + "x-ms-unique-id": [ "198" ], + "x-ms-client-request-id": [ "4b97873d-8e89-4dcd-955c-3bccda7e1c7a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -608,38 +398,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4663e011-fc6e-4c76-b82e-ed048236ddaf" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105355Z:4663e011-fc6e-4c76-b82e-ed048236ddaf" ], - "Date": [ "Sat, 28 Aug 2021 10:53:55 GMT" ] + "x-ms-correlation-request-id": [ "b5ca3af8-bf9d-48b9-90e1-577d6b8e49f7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160507Z:b5ca3af8-bf9d-48b9-90e1-577d6b8e49f7" ], + "Date": [ "Thu, 09 Jun 2022 16:05:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "56d51b48-b8e7-4fbe-bf6d-b05793f242bc" ], + "x-ms-unique-id": [ "199" ], + "x-ms-client-request-id": [ "344772d8-82c5-409b-9b2c-2b30c84f6b69" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -650,38 +440,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4d3e30bc-174a-41ab-acc3-a0ea5377551b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105406Z:4d3e30bc-174a-41ab-acc3-a0ea5377551b" ], - "Date": [ "Sat, 28 Aug 2021 10:54:05 GMT" ] + "x-ms-correlation-request-id": [ "84c79479-ec28-40cd-852c-e9b4856e7f69" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160518Z:84c79479-ec28-40cd-852c-e9b4856e7f69" ], + "Date": [ "Thu, 09 Jun 2022 16:05:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01+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/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "0482b95f-86f5-45a8-9980-7279c6108dc4" ], + "x-ms-unique-id": [ "200" ], + "x-ms-client-request-id": [ "00e6e7fd-13d3-447b-b9dc-1e0cdd5d0fe5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -692,38 +482,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], "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": [ "c858d789-6035-49a8-a4d2-8c6e7a0d76f7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105417Z:c858d789-6035-49a8-a4d2-8c6e7a0d76f7" ], - "Date": [ "Sat, 28 Aug 2021 10:54:16 GMT" ] + "x-ms-correlation-request-id": [ "276e8629-bbe1-4e6a-92e7-f296bf29db2b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160528Z:276e8629-bbe1-4e6a-92e7-f296bf29db2b" ], + "Date": [ "Thu, 09 Jun 2022 16:05:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2171" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A51%3A51.0578322Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A03%3A53.8376651Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-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/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f224cb70-f83d-4234-b9bc-9776dec884cb?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "97eb3135-2752-4bc9-9aef-3e40bcf83697" ], + "x-ms-unique-id": [ "201" ], + "x-ms-client-request-id": [ "cae7d4d7-686b-4b63-b2bd-59c379253bbc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -734,38 +524,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], "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": [ "3132ea9f-eb5a-4b78-a813-0abfa2c7482a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105427Z:3132ea9f-eb5a-4b78-a813-0abfa2c7482a" ], - "Date": [ "Sat, 28 Aug 2021 10:54:26 GMT" ] + "x-ms-correlation-request-id": [ "b9e39754-c8f3-4a38-9739-4b5da6686789" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160539Z:b9e39754-c8f3-4a38-9739-4b5da6686789" ], + "Date": [ "Thu, 09 Jun 2022 16:05:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2298" ], + "Content-Length": [ "2299" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"c362194d-54c9-41c7-ab17-6bfc0a413e94\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A26.9113462Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:51:50.6808887Z\",\"endTime\":\"2021-08-28T10:54:26.5527232Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M35.8718345S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"0001-01-01T00:00:00\"},\"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/1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"name\":\"1e78fd45-43cc-4cd6-9fde-5ceeaf7fa627\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"1e4ab0bc-75a3-4d6a-a9dc-6eafdc50fd8c\",\"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-09T16%3A05%3A30.3299148Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:03:53.4568089Z\",\"endTime\":\"2022-06-09T16:05:29.9047303Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M36.4479214S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"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/f224cb70-f83d-4234-b9bc-9776dec884cb\",\"name\":\"f224cb70-f83d-4234-b9bc-9776dec884cb\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints?api-version=2021-07-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/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-04-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-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints?api-version=2021-07-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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "001e4f3c-3dcf-4e16-99bc-7192ecc41c8a" ], + "x-ms-unique-id": [ "202" ], + "x-ms-client-request-id": [ "4e5a911c-450b-44d6-8a12-f8f2baf7d4e4" ], "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -781,31 +571,31 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-correlation-request-id": [ "7a8ba489-07bd-4c35-8226-5a9c71b92997" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105433Z:7a8ba489-07bd-4c35-8226-5a9c71b92997" ], - "Date": [ "Sat, 28 Aug 2021 10:54:32 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-correlation-request-id": [ "0490e32c-c52d-4048-86e8-bfa86ea1a531" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160545Z:0490e32c-c52d-4048-86e8-bfa86ea1a531" ], + "Date": [ "Thu, 09 Jun 2022 16:05:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1054" ], + "Content-Length": [ "54390" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"aa795753eeb346cfb4e6fb1395a853a2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2021-08-28T10:53:26.9190023Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637657398028302873\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints/776d074b5b5b4a07a591aa5ffe9a4be1\",\"name\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "Content": "{\"value\":[{\"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\":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/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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-27T22:00:38.1879390Z\",\"expiryTime\":\"2022-06-27T22:00:38.1879390Z\",\"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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-27T04:30:47.0190796Z\",\"expiryTime\":\"2022-06-27T04:30:47.0190796Z\",\"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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-20T22:01:53.2766364Z\",\"expiryTime\":\"2022-06-20T22:01:53.2766364Z\",\"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\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"25f012bc71a64e49a6637e951917dc7e\",\"recoveryPointTime\":\"2022-03-17T04:30:41.1904784Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b0f72e218bfd45e2b0ca7b131690b604\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-17T04:30:41.1904784Z\",\"expiryTime\":\"2022-06-17T04:30:41.1904784Z\",\"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/25f012bc71a64e49a6637e951917dc7e\",\"name\":\"25f012bc71a64e49a6637e951917dc7e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"5906aedc0f4148aaa12dad0e1986cc8f\",\"recoveryPointTime\":\"2022-03-13T22:00:01.9168741Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"38071c99370e4dfe890333bbc07da8c2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-13T22:00:01.9168741Z\",\"expiryTime\":\"2022-06-13T22:00:01.9168741Z\",\"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/5906aedc0f4148aaa12dad0e1986cc8f\",\"name\":\"5906aedc0f4148aaa12dad0e1986cc8f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"afb9f5fc037c4fb5aa18bb8d4dc90931\",\"recoveryPointTime\":\"2022-03-13T04:30:51.1594723Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"62a751ecc1704bf7ac017fc8e59c1c74\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-13T04:30:51.1594723Z\",\"expiryTime\":\"2022-06-13T04:30:51.1594723Z\",\"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/afb9f5fc037c4fb5aa18bb8d4dc90931\",\"name\":\"afb9f5fc037c4fb5aa18bb8d4dc90931\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9c716d4e8a774969a522d560f2b48f8e\",\"recoveryPointTime\":\"2022-03-11T06:21:06.3303246Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c61e473bce724a2d92376f979685ca14\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-11T06:21:06.3303246Z\",\"expiryTime\":\"2022-06-11T06:21:06.3303246Z\",\"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/9c716d4e8a774969a522d560f2b48f8e\",\"name\":\"9c716d4e8a774969a522d560f2b48f8e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"23905793f5624805a34f40b9c6218858\",\"recoveryPointTime\":\"2022-03-10T04:30:44.2458349Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2309019c91ec4fad81abaf1d422a2709\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-10T04:30:44.2458349Z\",\"expiryTime\":\"2022-06-10T04:30:44.2458349Z\",\"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/23905793f5624805a34f40b9c6218858\",\"name\":\"23905793f5624805a34f40b9c6218858\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"751f68a265a14524b1c81da8db9b4c5b\",\"recoveryPointTime\":\"2022-03-06T22:01:11.0688922Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f0f1f5766ede446baa4e3bdcce7d5291\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-06T22:19:12.5475216Z\",\"expiryTime\":\"2022-12-06T22:19:12.5475216Z\",\"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/751f68a265a14524b1c81da8db9b4c5b\",\"name\":\"751f68a265a14524b1c81da8db9b4c5b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6a5c726920aa4a2b9660857ede161e5a\",\"recoveryPointTime\":\"2022-03-06T04:30:47.7877625Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5a072bca72d74a658d6f32198bb372b0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-06T16:49:16.3616191Z\",\"expiryTime\":\"2022-12-06T16:49:16.3616191Z\",\"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/6a5c726920aa4a2b9660857ede161e5a\",\"name\":\"6a5c726920aa4a2b9660857ede161e5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"3876f79e489843298ad7e9bf0ee3aaa8\",\"recoveryPointTime\":\"2022-03-03T04:30:42.5330761Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5f5336838a2442bd80ccc43922bae88b\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-03T04:59:55.7318964Z\",\"expiryTime\":\"2022-12-03T04:59:55.7318964Z\",\"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/3876f79e489843298ad7e9bf0ee3aaa8\",\"name\":\"3876f79e489843298ad7e9bf0ee3aaa8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e959fc4258004b3694a8435893533745\",\"recoveryPointTime\":\"2022-02-27T22:04:39.8114480Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3625268d821048088a5656c7e83c72b3\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-05-27T22:15:48.4980094Z\",\"expiryTime\":\"2022-11-27T22:15:48.4980094Z\",\"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/e959fc4258004b3694a8435893533745\",\"name\":\"e959fc4258004b3694a8435893533745\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9645c9b9a0e142d7b993e4127c115f1f\",\"recoveryPointTime\":\"2022-02-27T04:30:43.8912302Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4a3d1a5af76d438897fb723cf0da655a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-05-27T04:44:27.1063146Z\",\"expiryTime\":\"2022-11-27T04:44:27.1063146Z\",\"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/9645c9b9a0e142d7b993e4127c115f1f\",\"name\":\"9645c9b9a0e142d7b993e4127c115f1f\",\"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-04-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!cGl0aW5kZXg1XzBfMjUxNzU2NjIzNzU3MDc1Njg0OF8wXzZjN2NmYzhjYWU4YTQ2NGI5YmYzZGFmMjQyZDQ5MjgwXzBfMzc2ZjhiOWQtOGFiMC00ODE0LWE4OTctMTZjOGVhNTNhODcz%3c%2fNextRowKey%3e%0d%0a++++%3cTargetLocation%3ePrimary%3c%2fTargetLocation%3e%0d%0a++%3c%2fContinuationToken%3e%0d%0a%3c%2fContinuationToken%3e\"}", "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-45a33101-ec2b-47ed-8d05-3a067d208ef3/restore?api-version=2021-07-01+20": { + "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-04-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-45a33101-ec2b-47ed-8d05-3a067d208ef3/restore?api-version=2021-07-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-27-08-2021-10-1-11\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-dbrestore-27-08-2021-10-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\": \"776d074b5b5b4a07a591aa5ffe9a4be1\"\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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-04-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-09-06-2022-9-1-11\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-dbrestore-09-06-2022-9-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\": \"90a7ed8ec5cc432498ed28f5bd211427\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1626" ] + "Content-Length": [ "1624" ] } }, "Response": { @@ -813,17 +603,17 @@ "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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-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": [ "e41cc4fd-32d6-4e80-bf5d-efd79dea3f71" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105433Z:e41cc4fd-32d6-4e80-bf5d-efd79dea3f71" ], - "Date": [ "Sat, 28 Aug 2021 10:54:33 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-correlation-request-id": [ "40e9d979-40e6-4ff2-9a3f-cef050f600d0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160546Z:40e9d979-40e6-4ff2-9a3f-cef050f600d0" ], + "Date": [ "Thu, 09 Jun 2022 16:05:45 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -833,20 +623,20 @@ "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-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/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "36a7583d-4e71-4b21-855b-1733f75abdcc" ], + "x-ms-unique-id": [ "204" ], + "x-ms-client-request-id": [ "0d0906db-cdbb-43b4-ada7-0c03a116d6c0" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -861,34 +651,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-correlation-request-id": [ "23027510-72c2-49cd-922a-96673278cb25" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105504Z:23027510-72c2-49cd-922a-96673278cb25" ], - "Date": [ "Sat, 28 Aug 2021 10:55:03 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-correlation-request-id": [ "1e495d75-df71-4195-8a89-5b18e773ed44" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160617Z:1e495d75-df71-4195-8a89-5b18e773ed44" ], + "Date": [ "Thu, 09 Jun 2022 16:06:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "702" ], + "Content-Length": [ "737" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T10:54:33.7503346Z\",\"endTime\":\"2021-08-28T10:54:36Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/38123534-1e21-40ef-8e61-8a7901b3e440\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T16:05:46.6053473Z\",\"endTime\":\"2022-06-09T16:05:50Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-01+22": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "36a7583d-4e71-4b21-855b-1733f75abdcc" ], + "x-ms-unique-id": [ "205" ], + "x-ms-client-request-id": [ "0d0906db-cdbb-43b4-ada7-0c03a116d6c0" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -899,39 +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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzlmY2Y5NDgzLTQ1NWItNDE3MS04ZTM2LTQxNDM5MTA2Mjc1Yw==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzI5YjNkNzY0LWM2YTYtNDAyMC04OTQ4LTk4ZWQ4OTAxMDI1YQ==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-correlation-request-id": [ "69c9be1b-3728-493c-a776-4563a3aabad9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105504Z:69c9be1b-3728-493c-a776-4563a3aabad9" ], - "Date": [ "Sat, 28 Aug 2021 10:55:03 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-correlation-request-id": [ "e6fb3c82-1696-42d7-8a95-88b60047d8e2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160618Z:e6fb3c82-1696-42d7-8a95-88b60047d8e2" ], + "Date": [ "Thu, 09 Jun 2022 16:06:17 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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"objectType\":\"OperationJobExtendedInfo\"}", + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "a3691cf4-82c6-48b7-a45f-19946190a746" ], + "x-ms-unique-id": [ "206" ], + "x-ms-client-request-id": [ "2a433f5f-a36d-497d-b93a-fab70c270190" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -942,38 +732,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], "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": [ "750b718a-2681-4376-ae31-c5cbc79b6fc4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105525Z:750b718a-2681-4376-ae31-c5cbc79b6fc4" ], - "Date": [ "Sat, 28 Aug 2021 10:55:25 GMT" ] + "x-ms-correlation-request-id": [ "49f1cf77-7c31-4eca-8d3c-86599742ace6" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160638Z:49f1cf77-7c31-4eca-8d3c-86599742ace6" ], + "Date": [ "Thu, 09 Jun 2022 16:06:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "bbb66a64-789a-4fea-b1df-a39daa25a6f3" ], + "x-ms-unique-id": [ "207" ], + "x-ms-client-request-id": [ "db879588-aed8-4973-8a23-f174773ea10a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -984,38 +774,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], "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": [ "8316b754-660e-498e-b232-8afb63303bf8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105535Z:8316b754-660e-498e-b232-8afb63303bf8" ], - "Date": [ "Sat, 28 Aug 2021 10:55:35 GMT" ] + "x-ms-correlation-request-id": [ "cbcc7546-dab9-4b45-a008-a4918c8d9c8c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160649Z:cbcc7546-dab9-4b45-a008-a4918c8d9c8c" ], + "Date": [ "Thu, 09 Jun 2022 16:06:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "bb2e0ca5-520a-4c28-85bb-bee5190b1bc5" ], + "x-ms-unique-id": [ "208" ], + "x-ms-client-request-id": [ "571be4e7-fc3e-4658-a78d-14516166900e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1026,38 +816,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], "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": [ "a168832c-d9e5-410e-ae8d-e73602c36952" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105546Z:a168832c-d9e5-410e-ae8d-e73602c36952" ], - "Date": [ "Sat, 28 Aug 2021 10:55:46 GMT" ] + "x-ms-correlation-request-id": [ "933ed640-91d7-487e-9e00-ca5b80072b17" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160700Z:933ed640-91d7-487e-9e00-ca5b80072b17" ], + "Date": [ "Thu, 09 Jun 2022 16:06:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "a9013fca-2a04-4808-802f-7d48180b1dd3" ], + "x-ms-unique-id": [ "209" ], + "x-ms-client-request-id": [ "73c1fb06-646c-4f07-8018-508ebc70365a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1068,38 +858,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], "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": [ "f3619812-d15c-489f-a44d-edafe708c32f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105556Z:f3619812-d15c-489f-a44d-edafe708c32f" ], - "Date": [ "Sat, 28 Aug 2021 10:55:56 GMT" ] + "x-ms-correlation-request-id": [ "90900779-95b8-42bb-bc5b-163b12886583" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160710Z:90900779-95b8-42bb-bc5b-163b12886583" ], + "Date": [ "Thu, 09 Jun 2022 16:07:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "56f5fbaa-9dc5-4655-b55f-d4f98c3f297d" ], + "x-ms-unique-id": [ "210" ], + "x-ms-client-request-id": [ "6ebf270a-aaea-4567-bcc6-8141014ca1d8" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1110,38 +900,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], "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": [ "304ef99d-189a-4d80-a6c8-17a08eb234e6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105607Z:304ef99d-189a-4d80-a6c8-17a08eb234e6" ], - "Date": [ "Sat, 28 Aug 2021 10:56:06 GMT" ] + "x-ms-correlation-request-id": [ "6f634aaa-6e1f-49ba-85c9-618251b8fb82" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160721Z:6f634aaa-6e1f-49ba-85c9-618251b8fb82" ], + "Date": [ "Thu, 09 Jun 2022 16:07:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "49348aec-6971-4f25-bb4f-c3398f161440" ], + "x-ms-unique-id": [ "211" ], + "x-ms-client-request-id": [ "e800140f-9799-441e-9e4d-a8067f66d0b0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1152,38 +942,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-correlation-request-id": [ "2113c0ff-5b93-42ad-84a1-70d96720e5b9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105617Z:2113c0ff-5b93-42ad-84a1-70d96720e5b9" ], - "Date": [ "Sat, 28 Aug 2021 10:56:17 GMT" ] + "x-ms-correlation-request-id": [ "d19eae6e-e292-43a5-b818-1bc08838ed1d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160732Z:d19eae6e-e292-43a5-b818-1bc08838ed1d" ], + "Date": [ "Thu, 09 Jun 2022 16:07:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "d426584d-fe03-440c-9d34-c9534d9f8b3a" ], + "x-ms-unique-id": [ "212" ], + "x-ms-client-request-id": [ "d0240de0-4b24-4802-9e6f-45c6abf15357" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1194,38 +984,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "74c1a939-5af1-4019-96f0-60ba4b9b0493" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105629Z:74c1a939-5af1-4019-96f0-60ba4b9b0493" ], - "Date": [ "Sat, 28 Aug 2021 10:56:28 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], + "x-ms-correlation-request-id": [ "4bbe208e-de3c-43bb-95c9-f6f9beeab46d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160743Z:4bbe208e-de3c-43bb-95c9-f6f9beeab46d" ], + "Date": [ "Thu, 09 Jun 2022 16:07:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-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/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "e09f4cb7-7847-43f8-9b2f-f624c2adbb3f" ], + "x-ms-unique-id": [ "213" ], + "x-ms-client-request-id": [ "e6dd4373-890e-487b-b7f5-48f82defffdc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1236,38 +1026,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], "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": [ "2d8c4228-445b-4294-839b-d89dbc725d95" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105639Z:2d8c4228-445b-4294-839b-d89dbc725d95" ], - "Date": [ "Sat, 28 Aug 2021 10:56:39 GMT" ] + "x-ms-correlation-request-id": [ "2943e06f-06ab-40f3-acdd-e593eb26edb4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160754Z:2943e06f-06ab-40f3-acdd-e593eb26edb4" ], + "Date": [ "Thu, 09 Jun 2022 16:07:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2437" ], + "Content-Length": [ "2435" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A54%3A34.5810087Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A05%3A47.617103Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01+31": { + "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/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-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/38123534-1e21-40ef-8e61-8a7901b3e440?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/47dde974-3c1e-48e1-b253-b8d9fadf7683?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "5bf4af2a-81cb-4b71-8351-29addac0ff18" ], + "x-ms-unique-id": [ "214" ], + "x-ms-client-request-id": [ "a6c8a6f1-3712-4aad-9b9c-65ebdd5eccc9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1278,38 +1068,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], "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": [ "46b7a182-45b9-4052-b741-a0b1b7ad26b4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105650Z:46b7a182-45b9-4052-b741-a0b1b7ad26b4" ], - "Date": [ "Sat, 28 Aug 2021 10:56:50 GMT" ] + "x-ms-correlation-request-id": [ "b16d4375-9fd6-4011-98bb-9242f9d39ddb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160805Z:b16d4375-9fd6-4011-98bb-9242f9d39ddb" ], + "Date": [ "Thu, 09 Jun 2022 16:08:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2471" ], + "Content-Length": [ "2470" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"36a7583d-4e71-4b21-855b-1733f75abdcc\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A49.0018946Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:54:34.3479249Z\",\"endTime\":\"2021-08-28T10:56:48.701069Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M14.3531441S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-27-08-2021-10-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/38123534-1e21-40ef-8e61-8a7901b3e440\",\"name\":\"38123534-1e21-40ef-8e61-8a7901b3e440\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"0d0906db-cdbb-43b4-ada7-0c03a116d6c0\",\"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-09T16%3A08%3A03.8667601Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:05:47.1825045Z\",\"endTime\":\"2022-06-09T16:08:03.470561Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M16.2880565S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-09-06-2022-9-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/47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"name\":\"47dde974-3c1e-48e1-b253-b8d9fadf7683\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints?api-version=2021-07-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/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-04-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/backupInstances/oss-pstest-server-postgres-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints?api-version=2021-07-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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "09a4eac9-95f8-4790-8dc3-c103729f9af1" ], + "x-ms-unique-id": [ "215" ], + "x-ms-client-request-id": [ "c6e9f3a5-5f92-448c-b1ea-16d2ab85f57e" ], "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1325,31 +1115,31 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "x-ms-correlation-request-id": [ "d2f4cd10-baa2-4123-bb01-18dd78fc7bb4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105656Z:d2f4cd10-baa2-4123-bb01-18dd78fc7bb4" ], - "Date": [ "Sat, 28 Aug 2021 10:56:55 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], + "x-ms-correlation-request-id": [ "922509bb-ee71-49e0-9cd7-e41ce2b823a3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160812Z:922509bb-ee71-49e0-9cd7-e41ce2b823a3" ], + "Date": [ "Thu, 09 Jun 2022 16:08:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1054" ], + "Content-Length": [ "54390" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"aa795753eeb346cfb4e6fb1395a853a2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2021-08-28T10:53:26.9190023Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637657398028302873\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3/recoveryPoints/776d074b5b5b4a07a591aa5ffe9a4be1\",\"name\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "Content": "{\"value\":[{\"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\":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/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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-27T22:00:38.1879390Z\",\"expiryTime\":\"2022-06-27T22:00:38.1879390Z\",\"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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-27T04:30:47.0190796Z\",\"expiryTime\":\"2022-06-27T04:30:47.0190796Z\",\"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\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-20T22:01:53.2766364Z\",\"expiryTime\":\"2022-06-20T22:01:53.2766364Z\",\"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\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"25f012bc71a64e49a6637e951917dc7e\",\"recoveryPointTime\":\"2022-03-17T04:30:41.1904784Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b0f72e218bfd45e2b0ca7b131690b604\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-17T04:30:41.1904784Z\",\"expiryTime\":\"2022-06-17T04:30:41.1904784Z\",\"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/25f012bc71a64e49a6637e951917dc7e\",\"name\":\"25f012bc71a64e49a6637e951917dc7e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"5906aedc0f4148aaa12dad0e1986cc8f\",\"recoveryPointTime\":\"2022-03-13T22:00:01.9168741Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"38071c99370e4dfe890333bbc07da8c2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-13T22:00:01.9168741Z\",\"expiryTime\":\"2022-06-13T22:00:01.9168741Z\",\"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/5906aedc0f4148aaa12dad0e1986cc8f\",\"name\":\"5906aedc0f4148aaa12dad0e1986cc8f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"afb9f5fc037c4fb5aa18bb8d4dc90931\",\"recoveryPointTime\":\"2022-03-13T04:30:51.1594723Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"62a751ecc1704bf7ac017fc8e59c1c74\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-13T04:30:51.1594723Z\",\"expiryTime\":\"2022-06-13T04:30:51.1594723Z\",\"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/afb9f5fc037c4fb5aa18bb8d4dc90931\",\"name\":\"afb9f5fc037c4fb5aa18bb8d4dc90931\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9c716d4e8a774969a522d560f2b48f8e\",\"recoveryPointTime\":\"2022-03-11T06:21:06.3303246Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c61e473bce724a2d92376f979685ca14\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-11T06:21:06.3303246Z\",\"expiryTime\":\"2022-06-11T06:21:06.3303246Z\",\"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/9c716d4e8a774969a522d560f2b48f8e\",\"name\":\"9c716d4e8a774969a522d560f2b48f8e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"23905793f5624805a34f40b9c6218858\",\"recoveryPointTime\":\"2022-03-10T04:30:44.2458349Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2309019c91ec4fad81abaf1d422a2709\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-10T04:30:44.2458349Z\",\"expiryTime\":\"2022-06-10T04:30:44.2458349Z\",\"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/23905793f5624805a34f40b9c6218858\",\"name\":\"23905793f5624805a34f40b9c6218858\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"751f68a265a14524b1c81da8db9b4c5b\",\"recoveryPointTime\":\"2022-03-06T22:01:11.0688922Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f0f1f5766ede446baa4e3bdcce7d5291\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-06T22:19:12.5475216Z\",\"expiryTime\":\"2022-12-06T22:19:12.5475216Z\",\"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/751f68a265a14524b1c81da8db9b4c5b\",\"name\":\"751f68a265a14524b1c81da8db9b4c5b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6a5c726920aa4a2b9660857ede161e5a\",\"recoveryPointTime\":\"2022-03-06T04:30:47.7877625Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5a072bca72d74a658d6f32198bb372b0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-06T16:49:16.3616191Z\",\"expiryTime\":\"2022-12-06T16:49:16.3616191Z\",\"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/6a5c726920aa4a2b9660857ede161e5a\",\"name\":\"6a5c726920aa4a2b9660857ede161e5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"3876f79e489843298ad7e9bf0ee3aaa8\",\"recoveryPointTime\":\"2022-03-03T04:30:42.5330761Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5f5336838a2442bd80ccc43922bae88b\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-03T04:59:55.7318964Z\",\"expiryTime\":\"2022-12-03T04:59:55.7318964Z\",\"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/3876f79e489843298ad7e9bf0ee3aaa8\",\"name\":\"3876f79e489843298ad7e9bf0ee3aaa8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e959fc4258004b3694a8435893533745\",\"recoveryPointTime\":\"2022-02-27T22:04:39.8114480Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3625268d821048088a5656c7e83c72b3\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-05-27T22:15:48.4980094Z\",\"expiryTime\":\"2022-11-27T22:15:48.4980094Z\",\"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/e959fc4258004b3694a8435893533745\",\"name\":\"e959fc4258004b3694a8435893533745\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9645c9b9a0e142d7b993e4127c115f1f\",\"recoveryPointTime\":\"2022-02-27T04:30:43.8912302Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4a3d1a5af76d438897fb723cf0da655a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-05-27T04:44:27.1063146Z\",\"expiryTime\":\"2022-11-27T04:44:27.1063146Z\",\"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/9645c9b9a0e142d7b993e4127c115f1f\",\"name\":\"9645c9b9a0e142d7b993e4127c115f1f\",\"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-04-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!cGl0aW5kZXg1XzBfMjUxNzU2NjIzNzU3MDc1Njg0OF8wXzZjN2NmYzhjYWU4YTQ2NGI5YmYzZGFmMjQyZDQ5MjgwXzBfMzc2ZjhiOWQtOGFiMC00ODE0LWE4OTctMTZjOGVhNTNhODcz%3c%2fNextRowKey%3e%0d%0a++++%3cTargetLocation%3ePrimary%3c%2fTargetLocation%3e%0d%0a++%3c%2fContinuationToken%3e%0d%0a%3c%2fContinuationToken%3e\"}", "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-45a33101-ec2b-47ed-8d05-3a067d208ef3/restore?api-version=2021-07-01+33": { + "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-04-01+28": { "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-45a33101-ec2b-47ed-8d05-3a067d208ef3/restore?api-version=2021-07-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-27-08-2021-10-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\": \"776d074b5b5b4a07a591aa5ffe9a4be1\"\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-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-04-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-09-06-2022-9-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\": \"90a7ed8ec5cc432498ed28f5bd211427\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "551" ] + "Content-Length": [ "550" ] } }, "Response": { @@ -1357,17 +1147,17 @@ "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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-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": [ "b6f52d1b-bc52-475d-8690-3a1fac5610ed" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105657Z:b6f52d1b-bc52-475d-8690-3a1fac5610ed" ], - "Date": [ "Sat, 28 Aug 2021 10:56:56 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-correlation-request-id": [ "36f6626b-70ae-4bcb-96e8-f758f37ca20b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160813Z:36f6626b-70ae-4bcb-96e8-f758f37ca20b" ], + "Date": [ "Thu, 09 Jun 2022 16:08:12 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], @@ -1377,20 +1167,20 @@ "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-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/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01+29": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "62f9c201-27fe-437b-af11-5942214df626" ], + "x-ms-unique-id": [ "217" ], + "x-ms-client-request-id": [ "7450dabc-6f34-4565-82b0-036d5c5481d2" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1405,34 +1195,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], - "x-ms-correlation-request-id": [ "30d3c821-9bcb-4a8b-8475-4b90b4a518ad" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105727Z:30d3c821-9bcb-4a8b-8475-4b90b4a518ad" ], - "Date": [ "Sat, 28 Aug 2021 10:57:26 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], + "x-ms-correlation-request-id": [ "ced5d535-cb3e-4be8-837a-a6dca5472069" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160843Z:ced5d535-cb3e-4be8-837a-a6dca5472069" ], + "Date": [ "Thu, 09 Jun 2022 16:08:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "702" ], + "Content-Length": [ "737" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==\",\"status\":\"Succeeded\",\"startTime\":\"2021-08-28T10:56:56.8942636Z\",\"endTime\":\"2021-08-28T10:57:00Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-09T16:08:12.7349199Z\",\"endTime\":\"2022-06-09T16:08:15Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-01+35": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01+30": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "62f9c201-27fe-437b-af11-5942214df626" ], + "x-ms-unique-id": [ "218" ], + "x-ms-client-request-id": [ "7450dabc-6f34-4565-82b0-036d5c5481d2" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1443,39 +1233,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/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzNlYjg1MmI5LTI3OTUtNGIxMi04YzM1LTdhOTg2NmE2MDcyNw==?api-version=2021-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzU1ZjM5MWQxLTA2NmUtNDkxZS1iNGQ5LWRhMTkxNDg5N2MzYg==?api-version=2022-04-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-correlation-request-id": [ "39aa943d-595e-4398-8afe-8522a0e6cb3e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105727Z:39aa943d-595e-4398-8afe-8522a0e6cb3e" ], - "Date": [ "Sat, 28 Aug 2021 10:57:27 GMT" ] + "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], + "x-ms-correlation-request-id": [ "16008fbc-1169-4e0b-8fa8-664cd4f6090d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160844Z:16008fbc-1169-4e0b-8fa8-664cd4f6090d" ], + "Date": [ "Thu, 09 Jun 2022 16:08:44 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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"objectType\":\"OperationJobExtendedInfo\"}", + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01+31": { "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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "3ff0a01e-371c-4bc8-b02e-4d09826d16be" ], + "x-ms-unique-id": [ "219" ], + "x-ms-client-request-id": [ "67138caa-b43f-4dc6-afce-fd4e9a210717" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1486,38 +1276,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], "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": [ "2aeaf838-0b48-4478-a4b5-488bacb7d7b2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105738Z:2aeaf838-0b48-4478-a4b5-488bacb7d7b2" ], - "Date": [ "Sat, 28 Aug 2021 10:57:37 GMT" ] + "x-ms-correlation-request-id": [ "c1074226-e7d9-47f6-81be-e4883c1677c0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160855Z:c1074226-e7d9-47f6-81be-e4883c1677c0" ], + "Date": [ "Thu, 09 Jun 2022 16:08:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "f958479e-2c7c-4324-ab4c-3dda2578a45e" ], + "x-ms-unique-id": [ "220" ], + "x-ms-client-request-id": [ "9129e7cf-c775-4d49-9d59-5c9f83bafd91" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1528,38 +1318,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11948" ], "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": [ "94aa5623-feb2-49f3-bdec-056c411fe9ad" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105749Z:94aa5623-feb2-49f3-bdec-056c411fe9ad" ], - "Date": [ "Sat, 28 Aug 2021 10:57:48 GMT" ] + "x-ms-correlation-request-id": [ "bcf28406-3e76-43be-97ce-035296e4a125" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160905Z:bcf28406-3e76-43be-97ce-035296e4a125" ], + "Date": [ "Thu, 09 Jun 2022 16:09:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01+33": { "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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "06d2d7a3-3ea7-4c40-87f7-9dd7356dca2f" ], + "x-ms-unique-id": [ "221" ], + "x-ms-client-request-id": [ "c2977164-a60d-41a6-a6b8-de861f98cd0d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1570,38 +1360,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11947" ], "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": [ "924a7db7-a77b-469b-83ee-11543a1c6f8a" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105759Z:924a7db7-a77b-469b-83ee-11543a1c6f8a" ], - "Date": [ "Sat, 28 Aug 2021 10:57:59 GMT" ] + "x-ms-correlation-request-id": [ "887117a5-3c67-4b3f-9b10-6adb86318068" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160916Z:887117a5-3c67-4b3f-9b10-6adb86318068" ], + "Date": [ "Thu, 09 Jun 2022 16:09:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "eeca0861-25d8-403e-908f-b3b02be0d801" ], + "x-ms-unique-id": [ "222" ], + "x-ms-client-request-id": [ "0faf5f7f-63ee-48ed-aacf-83009c357a6b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1612,38 +1402,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], "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": [ "ce72aa02-e188-4ed0-9fdb-ff5177ef21a0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105810Z:ce72aa02-e188-4ed0-9fdb-ff5177ef21a0" ], - "Date": [ "Sat, 28 Aug 2021 10:58:09 GMT" ] + "x-ms-correlation-request-id": [ "ccda704e-6f65-474f-a7e0-e74f40c5dd3e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160927Z:ccda704e-6f65-474f-a7e0-e74f40c5dd3e" ], + "Date": [ "Thu, 09 Jun 2022 16:09:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01+40": { + "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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "471cb8b8-c6a5-4b55-8da9-0e46899483e8" ], + "x-ms-unique-id": [ "223" ], + "x-ms-client-request-id": [ "2a75897a-131c-46e6-95f0-dca97d97b15c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1654,38 +1444,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], "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": [ "5cd01364-024a-41bc-a58b-49ad2da9f65f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105820Z:5cd01364-024a-41bc-a58b-49ad2da9f65f" ], - "Date": [ "Sat, 28 Aug 2021 10:58:19 GMT" ] + "x-ms-correlation-request-id": [ "7e6196d7-136f-4916-91e7-a6aa08a48b26" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160938Z:7e6196d7-136f-4916-91e7-a6aa08a48b26" ], + "Date": [ "Thu, 09 Jun 2022 16:09:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01+41": { + "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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "8d558116-bbbf-4dbc-8a42-7480b54b9fae" ], + "x-ms-unique-id": [ "224" ], + "x-ms-client-request-id": [ "ecf060e8-f759-444e-abf3-b2123bb2ccbf" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1696,38 +1486,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], "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": [ "92fe0b14-21f6-4bb2-b2ce-68e7b6ba1b6c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105831Z:92fe0b14-21f6-4bb2-b2ce-68e7b6ba1b6c" ], - "Date": [ "Sat, 28 Aug 2021 10:58:30 GMT" ] + "x-ms-correlation-request-id": [ "547e82d3-7cc7-46de-b42e-1b62245a0f51" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160949Z:547e82d3-7cc7-46de-b42e-1b62245a0f51" ], + "Date": [ "Thu, 09 Jun 2022 16:09:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01+42": { + "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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "576e281f-5855-49ef-a614-a21b6a1086a6" ], + "x-ms-unique-id": [ "225" ], + "x-ms-client-request-id": [ "6de1e262-1b1d-46fe-84da-c5cd87f06bec" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1738,38 +1528,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], "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": [ "f4581503-ceda-4186-a549-7fa5d33e505b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105842Z:f4581503-ceda-4186-a549-7fa5d33e505b" ], - "Date": [ "Sat, 28 Aug 2021 10:58:42 GMT" ] + "x-ms-correlation-request-id": [ "845aa59c-48ef-42b6-9456-231e27d0edff" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T160959Z:845aa59c-48ef-42b6-9456-231e27d0edff" ], + "Date": [ "Thu, 09 Jun 2022 16:09:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2379" ], + "Content-Length": [ "2378" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A56%3A57.9368304Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"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\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A08%3A13.6591989Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"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\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01+43": { + "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/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-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/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c?api-version=2021-07-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a?api-version=2022-04-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "cdcc1ea3-cb7b-4bc4-84b2-926630ffbf93" ], + "x-ms-unique-id": [ "226" ], + "x-ms-client-request-id": [ "59b52c0f-1d10-48d3-988a-6fd20cbc7183" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.4", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1780,22 +1570,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], "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": [ "cadc2d7a-e2cc-4f45-af91-89fe9edd8e8b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20210828T105852Z:cadc2d7a-e2cc-4f45-af91-89fe9edd8e8b" ], - "Date": [ "Sat, 28 Aug 2021 10:58:52 GMT" ] + "x-ms-correlation-request-id": [ "0cc07636-ae2f-450a-af26-3efbaf4e8459" ], + "x-ms-routing-request-id": [ "WESTINDIA:20220609T161010Z:0cc07636-ae2f-450a-af26-3efbaf4e8459" ], + "Date": [ "Thu, 09 Jun 2022 16:10:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2414" ], + "Content-Length": [ "2413" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"62f9c201-27fe-437b-af11-5942214df626\",\"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-45a33101-ec2b-47ed-8d05-3a067d208ef3\",\"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\u00272021-08-28T10%3A58%3A46.1744454Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2021-08-28T10:56:57.7036059Z\",\"endTime\":\"2021-08-28T10:58:45.7698615Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M48.0662556S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"776d074b5b5b4a07a591aa5ffe9a4be1\",\"recoveryPointTime\":\"2021-08-28T10:53:26.9190023Z\"},\"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-27-08-2021-10-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"name\":\"0e6b1e28-01c0-439a-9ac4-4c8fdfc1fc6c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "Content": "{\"properties\":{\"activityID\":\"7450dabc-6f34-4565-82b0-036d5c5481d2\",\"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-09T16%3A10%3A00.3986183Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-09T16:08:13.3058542Z\",\"endTime\":\"2022-06-09T16:09:59.9658217Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M46.6599675S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\"},\"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-09-06-2022-9-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"name\":\"af2671c0-9681-4b47-8ce6-bcf78714bf2a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", "isContentBase64": false } } diff --git a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Tests.ps1 b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Tests.ps1 index 25adb6757adb..47bcc3ee4ca4 100644 --- a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Tests.ps1 +++ b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Tests.ps1 @@ -59,6 +59,8 @@ Describe 'Start-AzDataProtectionBackupInstanceRestore' { Start-Sleep -Seconds 10 $jobid = $restoreJob.JobId.Split("/")[-1] + ($jobid -ne $null) | Should be $true + $jobstatus = "InProgress" while($jobstatus -ne "Completed") { @@ -77,6 +79,8 @@ Describe 'Start-AzDataProtectionBackupInstanceRestore' { $restoreFilesJob = Start-AzDataProtectionBackupInstanceRestore -BackupInstanceName $instance.Name -ResourceGroupName $rgName -VaultName $vaultName -SubscriptionId $sub -Parameter $OssRestoreReqFiles $jobid = $restoreFilesJob.JobId.Split("/")[-1] + ($jobid -ne $null) | Should be $true + $jobstatus = "InProgress" while($jobstatus -ne "Completed") { diff --git a/src/DataProtection/test/Stop-AzDataProtectionBackupInstanceProtection.Tests.ps1 b/src/DataProtection/test/Stop-AzDataProtectionBackupInstanceProtection.Tests.ps1 new file mode 100644 index 000000000000..47ae550d96cf --- /dev/null +++ b/src/DataProtection/test/Stop-AzDataProtectionBackupInstanceProtection.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Stop-AzDataProtectionBackupInstanceProtection')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Stop-AzDataProtectionBackupInstanceProtection.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 'Stop-AzDataProtectionBackupInstanceProtection' { + It 'Stop' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'StopViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Suspend-AzDataProtectionBackupInstanceBackup.Tests.ps1 b/src/DataProtection/test/Suspend-AzDataProtectionBackupInstanceBackup.Tests.ps1 new file mode 100644 index 000000000000..7f758d5f2e89 --- /dev/null +++ b/src/DataProtection/test/Suspend-AzDataProtectionBackupInstanceBackup.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Suspend-AzDataProtectionBackupInstanceBackup')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Suspend-AzDataProtectionBackupInstanceBackup.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 'Suspend-AzDataProtectionBackupInstanceBackup' { + It 'Suspend' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'SuspendViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Sync-AzDataProtectionBackupInstance.Tests.ps1 b/src/DataProtection/test/Sync-AzDataProtectionBackupInstance.Tests.ps1 new file mode 100644 index 000000000000..3d907a657a4c --- /dev/null +++ b/src/DataProtection/test/Sync-AzDataProtectionBackupInstance.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Sync-AzDataProtectionBackupInstance')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Sync-AzDataProtectionBackupInstance.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 'Sync-AzDataProtectionBackupInstance' { + It 'SyncExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Sync' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'SyncViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'SyncViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Update-AzDataProtectionResourceGuard.Tests.ps1 b/src/DataProtection/test/Update-AzDataProtectionResourceGuard.Tests.ps1 new file mode 100644 index 000000000000..9900d8bc5479 --- /dev/null +++ b/src/DataProtection/test/Update-AzDataProtectionResourceGuard.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDataProtectionResourceGuard')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDataProtectionResourceGuard.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 'Update-AzDataProtectionResourceGuard' { + It 'PatchExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/env.json b/src/DataProtection/test/env.json index e23c7e689ef3..2114c6dc753c 100644 --- a/src/DataProtection/test/env.json +++ b/src/DataProtection/test/env.json @@ -1,63 +1,69 @@ { - "TestBackupVault": { + "TestBlobsRestore": { + "ResourceGroupName": "BlobBackup-BugBash", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "ResourceGroupName": "sarath-rg", - "VaultName": "sarath-vault", - "NewVaultName": "new-testing-vault-k7yfhae8id" + "VaultName": "jecECYBlobVault" }, - "TestBackupPolicy": { - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "RecordDate": "09-06-2022-9-1-11", + "TestTriggerBackup": { "ResourceGroupName": "sarath-rg", - "VaultName": "sarath-vault", - "DiskNewPolicyName": "sarath-disk-generated-policy" - }, - "TestBackupInstance": { + "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk", + "BackupRuleName": "BackupHourly", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "ResourceGroupName": "sarath-rg", "VaultName": "sarath-vault" }, "TestOssBackupScenario": { - "NewPolicyName": "oss-pstest-policy-archive", - "SecretURI": "https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret", "VaultName": "oss-pstest-vault", - "ResourceGroupName": "oss-pstest-rg", + "KeyVault": "oss-pstest-keyvault", "OssDbName": "oss-pstest-db", + "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", + "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "NewPolicyName": "oss-pstest-policy-archive", "FileNamePrefix": "oss-pstest-restoreasfiles", - "OssServerName": "oss-pstest-server", - "PolicyName": "oss-pstest-policy", "OssDbId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres", - "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", - "KeyVault": "oss-pstest-keyvault", - "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", + "OssServerName": "oss-pstest-server", + "SecretURI": "https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret", + "ResourceGroupName": "oss-pstest-rg", + "PolicyName": "oss-pstest-policy" + }, + "TestResourceGuard": { + "Location": "centraluseuap", + "ResourceGroupName": "hiagarg", + "ResourceGuardName": "pstest-resourceguard", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c" }, "TestDiskBackupScenario": { - "NewPolicyName": "newdiskpolicy-k7yfhae8id", - "RestoreDiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredk7yfhae8id", - "SnapshotRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg", "VaultName": "sarath-vault", "RestoreRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg", - "ResourceGroupName": "sarath-rg", "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" - }, - "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "TestTriggerBackup": { "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "SnapshotRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg", + "NewPolicyName": "newdiskpolicy-r2e7gpixh6", + "RestoreDiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredr2e7gpixh6", + "ResourceGroupName": "sarath-rg" + }, + "TestBackupInstance": { "ResourceGroupName": "sarath-rg", - "VaultName": "sarath-vault", - "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk", - "BackupRuleName": "BackupHourly" + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "VaultName": "sarath-vault" }, "TestBackupJob": { + "VaultName": "sarath-vault", + "ResourceGroupName": "sarath-rg" + }, + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "TestBackupPolicy": { "ResourceGroupName": "sarath-rg", + "DiskNewPolicyName": "sarath-disk-generated-policy", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "VaultName": "sarath-vault" }, - "RecordDate": "27-08-2021-10-1-11", - "TestBlobsRestore": { + "TestBackupVault": { + "ResourceGroupName": "sarath-rg", + "NewVaultName": "new-pstest-vault", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "ResourceGroupName": "BlobBackup-BugBash", - "VaultName": "jecECYBlobVault" - }, - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" + "VaultName": "sarath-vault" + } } diff --git a/src/DataProtection/test/utils.ps1 b/src/DataProtection/test/utils.ps1 index af51f24eae37..b2e846cf878b 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 2021 -Month 08 -Day 27 -Hour 10 -Minute 01 -Second 11).ToString('dd-MM-yyyy-h-m-s') + $env.RecordDate = (Get-Date -Year 2022 -Month 06 -Day 09 -Hour 21 -Minute 01 -Second 11).ToString('dd-MM-yyyy-h-m-s') # For any resources you created for test, you should add it to $env here. $BackupInstanceTestVariables = @{ @@ -27,13 +27,12 @@ function setupEnv() { DiskNewPolicyName = "sarath-disk-generated-policy" } - $randomstring = RandomString -allChars $false -len 10 - $newVaultName = "new-testing-vault-" + $randomstring + $randomstring = RandomString -allChars $false -len 10 $BackupVaultTestVariables = @{ SubscriptionId = "62b829ee-7936-40c9-a1c9-47a93f9f3965" ResourceGroupName = "sarath-rg" VaultName = "sarath-vault" - NewVaultName = $newVaultName + NewVaultName = "new-pstest-vault" } $BackupJobTestVariables = @{ @@ -67,7 +66,7 @@ function setupEnv() { ResourceGroupName = "BlobBackup-BugBash" VaultName = "jecECYBlobVault" } - + $OssVariables = @{ SubscriptionId = "38304e13-357e-405e-9e9a-220351dcce8c" ResourceGroupName = "oss-pstest-rg" @@ -84,6 +83,13 @@ function setupEnv() { FileNamePrefix = "oss-pstest-restoreasfiles" } + $ResourceGuardVariables = @{ + SubscriptionId = "38304e13-357e-405e-9e9a-220351dcce8c" + ResourceGroupName = "hiagarg" + ResourceGuardName = "pstest-resourceguard" + Location = "centraluseuap" + } + $env.add("TestBackupInstance", $BackupInstanceTestVariables) | Out-Null $env.add("TestBackupPolicy", $BackupPolicyTestVariables) | Out-Null $env.add("TestBackupVault", $BackupVaultTestVariables) | Out-Null @@ -92,6 +98,7 @@ function setupEnv() { $env.add("TestTriggerBackup", $TriggerBackupTestVariables) | Out-Null $env.add("TestBlobsRestore", $BlobsRestoreVariables) | Out-Null $env.add("TestOssBackupScenario", $OssVariables) | Out-Null + $env.add("TestResourceGuard", $ResourceGuardVariables) | Out-Null $envFile = 'env.json' if ($TestMode -eq 'live') { diff --git a/tools/AzPreview/AzPreview.psd1 b/tools/AzPreview/AzPreview.psd1 index 27e082943fc9..d1e4eac0e034 100644 --- a/tools/AzPreview/AzPreview.psd1 +++ b/tools/AzPreview/AzPreview.psd1 @@ -93,7 +93,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.8.0'; }, @{ModuleName = 'Az.DataLakeAnalytics'; RequiredVersion = '1.0.2'; }, @{ModuleName = 'Az.DataLakeStore'; RequiredVersion = '1.3.0'; }, @{ModuleName = 'Az.DataMigration'; RequiredVersion = '0.11.0'; }, - @{ModuleName = 'Az.DataProtection'; RequiredVersion = '0.3.1'; }, + @{ModuleName = 'Az.DataProtection'; RequiredVersion = '0.4.0'; }, @{ModuleName = 'Az.DataShare'; RequiredVersion = '1.0.1'; }, @{ModuleName = 'Az.DedicatedHsm'; RequiredVersion = '0.3.0'; }, @{ModuleName = 'Az.DeploymentManager'; RequiredVersion = '1.1.0'; },