diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py index fe844d1a3a70..d8f1cb73fd71 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py @@ -13,38 +13,38 @@ from msrest import Serializer, Deserializer from ._configuration import RecoveryServicesBackupClientConfiguration -from .operations import ProtectionIntentOperations -from .operations import BackupStatusOperations -from .operations import FeatureSupportOperations +from .operations import BackupResourceVaultConfigsOperations +from .operations import ProtectedItemsOperations +from .operations import ProtectedItemOperationResultsOperations +from .operations import RecoveryPointsOperations +from .operations import RestoresOperations +from .operations import BackupPoliciesOperations +from .operations import ProtectionPoliciesOperations +from .operations import ProtectionPolicyOperationResultsOperations from .operations import BackupJobsOperations from .operations import JobDetailsOperations +from .operations import JobCancellationsOperations +from .operations import JobOperationResultsOperations from .operations import ExportJobsOperationResultsOperations from .operations import JobsOperations -from .operations import BackupPoliciesOperations from .operations import BackupProtectedItemsOperations +from .operations import OperationOperations +from .operations import ProtectionIntentOperations +from .operations import BackupStatusOperations +from .operations import FeatureSupportOperations from .operations import BackupProtectionIntentOperations from .operations import BackupUsageSummariesOperations -from .operations import OperationOperations -from .operations import BackupResourceVaultConfigsOperations from .operations import BackupEnginesOperations from .operations import ProtectionContainerRefreshOperationResultsOperations from .operations import ProtectableContainersOperations from .operations import ProtectionContainersOperations from .operations import BackupWorkloadItemsOperations from .operations import ProtectionContainerOperationResultsOperations -from .operations import ProtectedItemsOperations from .operations import BackupsOperations -from .operations import ProtectedItemOperationResultsOperations from .operations import ProtectedItemOperationStatusesOperations -from .operations import RecoveryPointsOperations from .operations import ItemLevelRecoveryConnectionsOperations -from .operations import RestoresOperations -from .operations import JobCancellationsOperations -from .operations import JobOperationResultsOperations from .operations import BackupOperationResultsOperations from .operations import BackupOperationStatusesOperations -from .operations import ProtectionPoliciesOperations -from .operations import ProtectionPolicyOperationResultsOperations from .operations import ProtectionPolicyOperationStatusesOperations from .operations import BackupProtectableItemsOperations from .operations import BackupProtectionContainersOperations @@ -60,32 +60,48 @@ class RecoveryServicesBackupClient(SDKClient): :ivar config: Configuration for client. :vartype config: RecoveryServicesBackupClientConfiguration - :ivar protection_intent: ProtectionIntent operations - :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations - :ivar backup_status: BackupStatus operations - :vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations - :ivar feature_support: FeatureSupport operations - :vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations + :ivar backup_resource_vault_configs: BackupResourceVaultConfigs operations + :vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations + :ivar protected_items: ProtectedItems operations + :vartype protected_items: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemsOperations + :ivar protected_item_operation_results: ProtectedItemOperationResults operations + :vartype protected_item_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemOperationResultsOperations + :ivar recovery_points: RecoveryPoints operations + :vartype recovery_points: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsOperations + :ivar restores: Restores operations + :vartype restores: azure.mgmt.recoveryservicesbackup.operations.RestoresOperations + :ivar backup_policies: BackupPolicies operations + :vartype backup_policies: azure.mgmt.recoveryservicesbackup.operations.BackupPoliciesOperations + :ivar protection_policies: ProtectionPolicies operations + :vartype protection_policies: azure.mgmt.recoveryservicesbackup.operations.ProtectionPoliciesOperations + :ivar protection_policy_operation_results: ProtectionPolicyOperationResults operations + :vartype protection_policy_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionPolicyOperationResultsOperations :ivar backup_jobs: BackupJobs operations :vartype backup_jobs: azure.mgmt.recoveryservicesbackup.operations.BackupJobsOperations :ivar job_details: JobDetails operations :vartype job_details: azure.mgmt.recoveryservicesbackup.operations.JobDetailsOperations + :ivar job_cancellations: JobCancellations operations + :vartype job_cancellations: azure.mgmt.recoveryservicesbackup.operations.JobCancellationsOperations + :ivar job_operation_results: JobOperationResults operations + :vartype job_operation_results: azure.mgmt.recoveryservicesbackup.operations.JobOperationResultsOperations :ivar export_jobs_operation_results: ExportJobsOperationResults operations :vartype export_jobs_operation_results: azure.mgmt.recoveryservicesbackup.operations.ExportJobsOperationResultsOperations :ivar jobs: Jobs operations :vartype jobs: azure.mgmt.recoveryservicesbackup.operations.JobsOperations - :ivar backup_policies: BackupPolicies operations - :vartype backup_policies: azure.mgmt.recoveryservicesbackup.operations.BackupPoliciesOperations :ivar backup_protected_items: BackupProtectedItems operations :vartype backup_protected_items: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsOperations + :ivar operation: Operation operations + :vartype operation: azure.mgmt.recoveryservicesbackup.operations.OperationOperations + :ivar protection_intent: ProtectionIntent operations + :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations + :ivar backup_status: BackupStatus operations + :vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations + :ivar feature_support: FeatureSupport operations + :vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations :ivar backup_protection_intent: BackupProtectionIntent operations :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations :ivar backup_usage_summaries: BackupUsageSummaries operations :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations - :ivar operation: Operation operations - :vartype operation: azure.mgmt.recoveryservicesbackup.operations.OperationOperations - :ivar backup_resource_vault_configs: BackupResourceVaultConfigs operations - :vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations :ivar backup_engines: BackupEngines operations :vartype backup_engines: azure.mgmt.recoveryservicesbackup.operations.BackupEnginesOperations :ivar protection_container_refresh_operation_results: ProtectionContainerRefreshOperationResults operations @@ -98,32 +114,16 @@ class RecoveryServicesBackupClient(SDKClient): :vartype backup_workload_items: azure.mgmt.recoveryservicesbackup.operations.BackupWorkloadItemsOperations :ivar protection_container_operation_results: ProtectionContainerOperationResults operations :vartype protection_container_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionContainerOperationResultsOperations - :ivar protected_items: ProtectedItems operations - :vartype protected_items: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemsOperations :ivar backups: Backups operations :vartype backups: azure.mgmt.recoveryservicesbackup.operations.BackupsOperations - :ivar protected_item_operation_results: ProtectedItemOperationResults operations - :vartype protected_item_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemOperationResultsOperations :ivar protected_item_operation_statuses: ProtectedItemOperationStatuses operations :vartype protected_item_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.ProtectedItemOperationStatusesOperations - :ivar recovery_points: RecoveryPoints operations - :vartype recovery_points: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsOperations :ivar item_level_recovery_connections: ItemLevelRecoveryConnections operations :vartype item_level_recovery_connections: azure.mgmt.recoveryservicesbackup.operations.ItemLevelRecoveryConnectionsOperations - :ivar restores: Restores operations - :vartype restores: azure.mgmt.recoveryservicesbackup.operations.RestoresOperations - :ivar job_cancellations: JobCancellations operations - :vartype job_cancellations: azure.mgmt.recoveryservicesbackup.operations.JobCancellationsOperations - :ivar job_operation_results: JobOperationResults operations - :vartype job_operation_results: azure.mgmt.recoveryservicesbackup.operations.JobOperationResultsOperations :ivar backup_operation_results: BackupOperationResults operations :vartype backup_operation_results: azure.mgmt.recoveryservicesbackup.operations.BackupOperationResultsOperations :ivar backup_operation_statuses: BackupOperationStatuses operations :vartype backup_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.BackupOperationStatusesOperations - :ivar protection_policies: ProtectionPolicies operations - :vartype protection_policies: azure.mgmt.recoveryservicesbackup.operations.ProtectionPoliciesOperations - :ivar protection_policy_operation_results: ProtectionPolicyOperationResults operations - :vartype protection_policy_operation_results: azure.mgmt.recoveryservicesbackup.operations.ProtectionPolicyOperationResultsOperations :ivar protection_policy_operation_statuses: ProtectionPolicyOperationStatuses operations :vartype protection_policy_operation_statuses: azure.mgmt.recoveryservicesbackup.operations.ProtectionPolicyOperationStatusesOperations :ivar backup_protectable_items: BackupProtectableItems operations @@ -155,31 +155,47 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - self.protection_intent = ProtectionIntentOperations( + self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations( self._client, self.config, self._serialize, self._deserialize) - self.backup_status = BackupStatusOperations( + self.protected_items = ProtectedItemsOperations( self._client, self.config, self._serialize, self._deserialize) - self.feature_support = FeatureSupportOperations( + self.protected_item_operation_results = ProtectedItemOperationResultsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.recovery_points = RecoveryPointsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.restores = RestoresOperations( + self._client, self.config, self._serialize, self._deserialize) + self.backup_policies = BackupPoliciesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.protection_policies = ProtectionPoliciesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.protection_policy_operation_results = ProtectionPolicyOperationResultsOperations( self._client, self.config, self._serialize, self._deserialize) self.backup_jobs = BackupJobsOperations( self._client, self.config, self._serialize, self._deserialize) self.job_details = JobDetailsOperations( self._client, self.config, self._serialize, self._deserialize) + self.job_cancellations = JobCancellationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.job_operation_results = JobOperationResultsOperations( + self._client, self.config, self._serialize, self._deserialize) self.export_jobs_operation_results = ExportJobsOperationResultsOperations( self._client, self.config, self._serialize, self._deserialize) self.jobs = JobsOperations( self._client, self.config, self._serialize, self._deserialize) - self.backup_policies = BackupPoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) self.backup_protected_items = BackupProtectedItemsOperations( self._client, self.config, self._serialize, self._deserialize) - self.backup_protection_intent = BackupProtectionIntentOperations( + self.operation = OperationOperations( self._client, self.config, self._serialize, self._deserialize) - self.backup_usage_summaries = BackupUsageSummariesOperations( + self.protection_intent = ProtectionIntentOperations( self._client, self.config, self._serialize, self._deserialize) - self.operation = OperationOperations( + self.backup_status = BackupStatusOperations( self._client, self.config, self._serialize, self._deserialize) - self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations( + self.feature_support = FeatureSupportOperations( + self._client, self.config, self._serialize, self._deserialize) + self.backup_protection_intent = BackupProtectionIntentOperations( + self._client, self.config, self._serialize, self._deserialize) + self.backup_usage_summaries = BackupUsageSummariesOperations( self._client, self.config, self._serialize, self._deserialize) self.backup_engines = BackupEnginesOperations( self._client, self.config, self._serialize, self._deserialize) @@ -193,32 +209,16 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.protection_container_operation_results = ProtectionContainerOperationResultsOperations( self._client, self.config, self._serialize, self._deserialize) - self.protected_items = ProtectedItemsOperations( - self._client, self.config, self._serialize, self._deserialize) self.backups = BackupsOperations( self._client, self.config, self._serialize, self._deserialize) - self.protected_item_operation_results = ProtectedItemOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) self.protected_item_operation_statuses = ProtectedItemOperationStatusesOperations( self._client, self.config, self._serialize, self._deserialize) - self.recovery_points = RecoveryPointsOperations( - self._client, self.config, self._serialize, self._deserialize) self.item_level_recovery_connections = ItemLevelRecoveryConnectionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.restores = RestoresOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job_cancellations = JobCancellationsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.job_operation_results = JobOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) self.backup_operation_results = BackupOperationResultsOperations( self._client, self.config, self._serialize, self._deserialize) self.backup_operation_statuses = BackupOperationStatusesOperations( self._client, self.config, self._serialize, self._deserialize) - self.protection_policies = ProtectionPoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.protection_policy_operation_results = ProtectionPolicyOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) self.protection_policy_operation_statuses = ProtectionPolicyOperationStatusesOperations( self._client, self.config, self._serialize, self._deserialize) self.backup_protectable_items = BackupProtectableItemsOperations( diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py index bd35edfd8034..3ae64ab0a5be 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py @@ -18,6 +18,7 @@ from ._models_py3 import AzureFileshareProtectedItem from ._models_py3 import AzureFileshareProtectedItemExtendedInfo from ._models_py3 import AzureFileShareProtectionPolicy + from ._models_py3 import AzureFileShareProvisionILRRequest from ._models_py3 import AzureFileShareRecoveryPoint from ._models_py3 import AzureFileShareRestoreRequest from ._models_py3 import AzureIaaSClassicComputeVMContainer @@ -56,7 +57,6 @@ from ._models_py3 import AzureVmWorkloadProtectedItem from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo from ._models_py3 import AzureVmWorkloadProtectionPolicy - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectableItem from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem from ._models_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem from ._models_py3 import AzureVmWorkloadSAPAseSystemProtectableItem @@ -126,6 +126,8 @@ from ._models_py3 import DailyRetentionFormat from ._models_py3 import DailyRetentionSchedule from ._models_py3 import Day + from ._models_py3 import DiskExclusionProperties + from ._models_py3 import DiskInformation from ._models_py3 import DistributedNodesInfo from ._models_py3 import DpmBackupEngine from ._models_py3 import DpmContainer @@ -139,6 +141,7 @@ from ._models_py3 import EncryptionDetails from ._models_py3 import ErrorDetail from ._models_py3 import ExportJobsOperationResultInfo + from ._models_py3 import ExtendedProperties from ._models_py3 import FeatureSupportRequest from ._models_py3 import GenericContainer from ._models_py3 import GenericContainerExtendedInfo @@ -157,6 +160,7 @@ from ._models_py3 import InquiryInfo from ._models_py3 import InquiryValidation from ._models_py3 import InstantItemRecoveryTarget + from ._models_py3 import InstantRPAdditionalDetails from ._models_py3 import Job from ._models_py3 import JobQueryObject from ._models_py3 import JobResource @@ -205,6 +209,7 @@ from ._models_py3 import ProtectionPolicyQueryObject from ._models_py3 import ProtectionPolicyResource from ._models_py3 import RecoveryPoint + from ._models_py3 import RecoveryPointDiskConfiguration from ._models_py3 import RecoveryPointResource from ._models_py3 import RecoveryPointTierInformation from ._models_py3 import Resource @@ -246,6 +251,7 @@ from ._models import AzureFileshareProtectedItem from ._models import AzureFileshareProtectedItemExtendedInfo from ._models import AzureFileShareProtectionPolicy + from ._models import AzureFileShareProvisionILRRequest from ._models import AzureFileShareRecoveryPoint from ._models import AzureFileShareRestoreRequest from ._models import AzureIaaSClassicComputeVMContainer @@ -284,7 +290,6 @@ from ._models import AzureVmWorkloadProtectedItem from ._models import AzureVmWorkloadProtectedItemExtendedInfo from ._models import AzureVmWorkloadProtectionPolicy - from ._models import AzureVmWorkloadSAPAseDatabaseProtectableItem from ._models import AzureVmWorkloadSAPAseDatabaseProtectedItem from ._models import AzureVmWorkloadSAPAseDatabaseWorkloadItem from ._models import AzureVmWorkloadSAPAseSystemProtectableItem @@ -354,6 +359,8 @@ from ._models import DailyRetentionFormat from ._models import DailyRetentionSchedule from ._models import Day + from ._models import DiskExclusionProperties + from ._models import DiskInformation from ._models import DistributedNodesInfo from ._models import DpmBackupEngine from ._models import DpmContainer @@ -367,6 +374,7 @@ from ._models import EncryptionDetails from ._models import ErrorDetail from ._models import ExportJobsOperationResultInfo + from ._models import ExtendedProperties from ._models import FeatureSupportRequest from ._models import GenericContainer from ._models import GenericContainerExtendedInfo @@ -385,6 +393,7 @@ from ._models import InquiryInfo from ._models import InquiryValidation from ._models import InstantItemRecoveryTarget + from ._models import InstantRPAdditionalDetails from ._models import Job from ._models import JobQueryObject from ._models import JobResource @@ -433,6 +442,7 @@ from ._models import ProtectionPolicyQueryObject from ._models import ProtectionPolicyResource from ._models import RecoveryPoint + from ._models import RecoveryPointDiskConfiguration from ._models import RecoveryPointResource from ._models import RecoveryPointTierInformation from ._models import Resource @@ -480,25 +490,27 @@ from ._recovery_services_backup_client_enums import ( ProtectionState, HealthStatus, - WorkloadType, RecoveryType, CopyOptions, RestoreRequestType, + WorkloadType, + PolicyType, JobSupportedAction, ProtectedItemState, - SupportStatus, LastBackupStatus, ProtectedItemHealthStatus, - PolicyType, + RestorePointType, OverwriteOptions, - WorkloadItemType, + RecoveryMode, SQLDataDirectoryType, - UsagesUnit, - DataSourceType, - ProtectionStatus, - FabricName, - Type, + StorageType, + StorageTypeState, + EnhancedSecurityState, + SoftDeleteFeatureState, + RestorePointQueryType, RetentionDurationType, + RecoveryPointTierType, + RecoveryPointTierStatus, BackupManagementType, JobStatus, JobOperationType, @@ -508,23 +520,23 @@ MonthOfYear, MabServerType, HttpStatusCode, - ValidationStatus, + DataSourceType, CreateMode, HealthState, - IntentItemType, ScheduleRunType, + SupportStatus, + WorkloadItemType, + UsagesUnit, + ProtectionStatus, + FabricName, + Type, + ValidationStatus, + IntentItemType, AzureFileShareType, InquiryStatus, BackupType, OperationType, - RestorePointType, - StorageType, - StorageTypeState, - EnhancedSecurityState, ContainerType, - RestorePointQueryType, - RecoveryPointTierType, - RecoveryPointTierStatus, BackupItemType, OperationStatusValues, ) @@ -538,6 +550,7 @@ 'AzureFileshareProtectedItem', 'AzureFileshareProtectedItemExtendedInfo', 'AzureFileShareProtectionPolicy', + 'AzureFileShareProvisionILRRequest', 'AzureFileShareRecoveryPoint', 'AzureFileShareRestoreRequest', 'AzureIaaSClassicComputeVMContainer', @@ -576,7 +589,6 @@ 'AzureVmWorkloadProtectedItem', 'AzureVmWorkloadProtectedItemExtendedInfo', 'AzureVmWorkloadProtectionPolicy', - 'AzureVmWorkloadSAPAseDatabaseProtectableItem', 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'AzureVmWorkloadSAPAseSystemProtectableItem', @@ -646,6 +658,8 @@ 'DailyRetentionFormat', 'DailyRetentionSchedule', 'Day', + 'DiskExclusionProperties', + 'DiskInformation', 'DistributedNodesInfo', 'DpmBackupEngine', 'DpmContainer', @@ -659,6 +673,7 @@ 'EncryptionDetails', 'ErrorDetail', 'ExportJobsOperationResultInfo', + 'ExtendedProperties', 'FeatureSupportRequest', 'GenericContainer', 'GenericContainerExtendedInfo', @@ -677,6 +692,7 @@ 'InquiryInfo', 'InquiryValidation', 'InstantItemRecoveryTarget', + 'InstantRPAdditionalDetails', 'Job', 'JobQueryObject', 'JobResource', @@ -725,6 +741,7 @@ 'ProtectionPolicyQueryObject', 'ProtectionPolicyResource', 'RecoveryPoint', + 'RecoveryPointDiskConfiguration', 'RecoveryPointResource', 'RecoveryPointTierInformation', 'Resource', @@ -757,39 +774,41 @@ 'WorkloadProtectableItem', 'WorkloadProtectableItemResource', 'YearlyRetentionSchedule', - 'JobResourcePaged', + 'RecoveryPointResourcePaged', 'ProtectionPolicyResourcePaged', + 'JobResourcePaged', 'ProtectedItemResourcePaged', 'ProtectionIntentResourcePaged', 'BackupManagementUsagePaged', 'BackupEngineBaseResourcePaged', 'ProtectableContainerResourcePaged', 'WorkloadItemResourcePaged', - 'RecoveryPointResourcePaged', 'WorkloadProtectableItemResourcePaged', 'ProtectionContainerResourcePaged', 'ClientDiscoveryValueForSingleApiPaged', 'ProtectionState', 'HealthStatus', - 'WorkloadType', 'RecoveryType', 'CopyOptions', 'RestoreRequestType', + 'WorkloadType', + 'PolicyType', 'JobSupportedAction', 'ProtectedItemState', - 'SupportStatus', 'LastBackupStatus', 'ProtectedItemHealthStatus', - 'PolicyType', + 'RestorePointType', 'OverwriteOptions', - 'WorkloadItemType', + 'RecoveryMode', 'SQLDataDirectoryType', - 'UsagesUnit', - 'DataSourceType', - 'ProtectionStatus', - 'FabricName', - 'Type', + 'StorageType', + 'StorageTypeState', + 'EnhancedSecurityState', + 'SoftDeleteFeatureState', + 'RestorePointQueryType', 'RetentionDurationType', + 'RecoveryPointTierType', + 'RecoveryPointTierStatus', 'BackupManagementType', 'JobStatus', 'JobOperationType', @@ -799,23 +818,23 @@ 'MonthOfYear', 'MabServerType', 'HttpStatusCode', - 'ValidationStatus', + 'DataSourceType', 'CreateMode', 'HealthState', - 'IntentItemType', 'ScheduleRunType', + 'SupportStatus', + 'WorkloadItemType', + 'UsagesUnit', + 'ProtectionStatus', + 'FabricName', + 'Type', + 'ValidationStatus', + 'IntentItemType', 'AzureFileShareType', 'InquiryStatus', 'BackupType', 'OperationType', - 'RestorePointType', - 'StorageType', - 'StorageTypeState', - 'EnhancedSecurityState', 'ContainerType', - 'RestorePointQueryType', - 'RecoveryPointTierType', - 'RecoveryPointTierStatus', 'BackupItemType', 'OperationStatusValues', ] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py index 7eae361316ca..8f6faff98638 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py @@ -300,7 +300,7 @@ class BackupEngineBase(Model): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -384,7 +384,7 @@ class AzureBackupServerEngine(BackupEngineBase): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -800,6 +800,9 @@ def __init__(self, **kwargs): class AzureFileshareProtectedItemExtendedInfo(Model): """Additional information about Azure File Share backup item. + Variables are only populated by the server, and will be ignored when + sending a request. + :param oldest_recovery_point: The oldest backup copy available for this item in the service. :type oldest_recovery_point: datetime @@ -809,12 +812,25 @@ class AzureFileshareProtectedItemExtendedInfo(Model): :param policy_state: Indicates consistency of policy object and policy applied to this backup item. :type policy_state: str + :ivar resource_state: Indicates the state of this resource. Possible + values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted} + :vartype resource_state: str + :ivar resource_state_sync_time: The resource state sync time for this + backup item. + :vartype resource_state_sync_time: datetime """ + _validation = { + 'resource_state': {'readonly': True}, + 'resource_state_sync_time': {'readonly': True}, + } + _attribute_map = { 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, 'policy_state': {'key': 'policyState', 'type': 'str'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, } def __init__(self, **kwargs): @@ -822,6 +838,8 @@ def __init__(self, **kwargs): self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) self.recovery_point_count = kwargs.get('recovery_point_count', None) self.policy_state = kwargs.get('policy_state', None) + self.resource_state = None + self.resource_state_sync_time = None class ProtectionPolicy(Model): @@ -829,10 +847,9 @@ class ProtectionPolicy(Model): from this class. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectionPolicy, - AzureIaaSVMProtectionPolicy, AzureSqlProtectionPolicy, - AzureVmWorkloadProtectionPolicy, GenericProtectionPolicy, - MabProtectionPolicy + sub-classes are: AzureVmWorkloadProtectionPolicy, + AzureFileShareProtectionPolicy, AzureIaaSVMProtectionPolicy, + AzureSqlProtectionPolicy, GenericProtectionPolicy, MabProtectionPolicy All required parameters must be populated in order to send to Azure. @@ -852,7 +869,7 @@ class ProtectionPolicy(Model): } _subtype_map = { - 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} + 'backup_management_type': {'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} } def __init__(self, **kwargs): @@ -912,6 +929,67 @@ def __init__(self, **kwargs): self.backup_management_type = 'AzureStorage' +class ILRRequest(Model): + """Parameters to Provision ILR API. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareProvisionILRRequest, + IaasVMILRRegistrationRequest + + All required parameters must be populated in order to send to Azure. + + :param object_type: Required. Constant filled by server. + :type object_type: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + } + + _subtype_map = { + 'object_type': {'AzureFileShareProvisionILRRequest': 'AzureFileShareProvisionILRRequest', 'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} + } + + def __init__(self, **kwargs): + super(ILRRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareProvisionILRRequest(ILRRequest): + """Update snapshot Uri with the correct friendly Name of the source Azure file + share. + + All required parameters must be populated in order to send to Azure. + + :param object_type: Required. Constant filled by server. + :type object_type: str + :param recovery_point_id: Recovery point ID. + :type recovery_point_id: str + :param source_resource_id: Source Storage account ARM Id + :type source_resource_id: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFileShareProvisionILRRequest, self).__init__(**kwargs) + self.recovery_point_id = kwargs.get('recovery_point_id', None) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.object_type = 'AzureFileShareProvisionILRRequest' + + class RecoveryPoint(Model): """Base class for backup copies. Workload-specific backup copies are derived from this class. @@ -946,22 +1024,31 @@ def __init__(self, **kwargs): class AzureFileShareRecoveryPoint(RecoveryPoint): """Azure File Share workload specific backup copy. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_type: Type of the backup copy. Specifies whether it + :ivar recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param file_share_snapshot_uri: Contains Url to the snapshot of fileshare, + :vartype recovery_point_type: str + :ivar recovery_point_time: Time at which this backup copy was created. + :vartype recovery_point_time: datetime + :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable - :type file_share_snapshot_uri: str + :vartype file_share_snapshot_uri: str + :ivar recovery_point_size_in_gb: Contains recovery point size + :vartype recovery_point_size_in_gb: int """ _validation = { 'object_type': {'required': True}, + 'recovery_point_type': {'readonly': True}, + 'recovery_point_time': {'readonly': True}, + 'file_share_snapshot_uri': {'readonly': True}, + 'recovery_point_size_in_gb': {'readonly': True}, } _attribute_map = { @@ -969,13 +1056,15 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, + 'recovery_point_size_in_gb': {'key': 'recoveryPointSizeInGB', 'type': 'int'}, } def __init__(self, **kwargs): super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.file_share_snapshot_uri = kwargs.get('file_share_snapshot_uri', None) + self.recovery_point_type = None + self.recovery_point_time = None + self.file_share_snapshot_uri = None + self.recovery_point_size_in_gb = None self.object_type = 'AzureFileShareRecoveryPoint' @@ -1018,7 +1107,8 @@ class AzureFileShareRestoreRequest(RestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Source storage account ARM Id @@ -1354,6 +1444,9 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1385,6 +1478,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } _subtype_map = { @@ -1403,6 +1497,7 @@ def __init__(self, **kwargs): self.last_backup_time = kwargs.get('last_backup_time', None) self.protected_item_data_id = kwargs.get('protected_item_data_id', None) self.extended_info = kwargs.get('extended_info', None) + self.extended_properties = kwargs.get('extended_properties', None) self.protected_item_type = 'AzureIaaSVMProtectedItem' @@ -1487,6 +1582,9 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1518,6 +1616,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } def __init__(self, **kwargs): @@ -1700,6 +1799,9 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1731,6 +1833,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } def __init__(self, **kwargs): @@ -1741,18 +1844,28 @@ def __init__(self, **kwargs): class AzureIaaSVMErrorInfo(Model): """Azure IaaS VM workload-specific error information. - :param error_code: Error code. - :type error_code: int - :param error_title: Title: Typically, the entity that the error pertains + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code. + :vartype error_code: int + :ivar error_title: Title: Typically, the entity that the error pertains to. - :type error_title: str - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error + :vartype error_title: str + :ivar error_string: Localized error string. + :vartype error_string: str + :ivar recommendations: List of localized recommendations for above error code. - :type recommendations: list[str] + :vartype recommendations: list[str] """ + _validation = { + 'error_code': {'readonly': True}, + 'error_title': {'readonly': True}, + 'error_string': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'error_code': {'key': 'errorCode', 'type': 'int'}, 'error_title': {'key': 'errorTitle', 'type': 'str'}, @@ -1762,25 +1875,35 @@ class AzureIaaSVMErrorInfo(Model): def __init__(self, **kwargs): super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_title = kwargs.get('error_title', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) + self.error_code = None + self.error_title = None + self.error_string = None + self.recommendations = None class AzureIaaSVMHealthDetails(Model): """Azure IaaS VM workload-specific Health Details. - :param code: Health Code - :type code: int - :param title: Health Title - :type title: str - :param message: Health Message - :type message: str - :param recommendations: Health Recommended Actions - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Health Code + :vartype code: int + :ivar title: Health Title + :vartype title: str + :ivar message: Health Message + :vartype message: str + :ivar recommendations: Health Recommended Actions + :vartype recommendations: list[str] """ + _validation = { + 'code': {'readonly': True}, + 'title': {'readonly': True}, + 'message': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'int'}, 'title': {'key': 'title', 'type': 'str'}, @@ -1790,10 +1913,10 @@ class AzureIaaSVMHealthDetails(Model): def __init__(self, **kwargs): super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.title = kwargs.get('title', None) - self.message = kwargs.get('message', None) - self.recommendations = kwargs.get('recommendations', None) + self.code = None + self.title = None + self.message = None + self.recommendations = None class Job(Model): @@ -3111,11 +3234,11 @@ class AzureVmWorkloadItem(WorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3154,8 +3277,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): """Azure VM workload-specific protectable item. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectableItem, - AzureVmWorkloadSAPAseSystemProtectableItem, + sub-classes are: AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, @@ -3192,11 +3314,11 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -3224,7 +3346,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): } _subtype_map = { - 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} + 'protectable_item_type': {'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} } def __init__(self, **kwargs): @@ -3440,6 +3562,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): includes schedule and retention :type sub_protection_policy: list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + :param make_policy_consistent: Fix the policy inconsistency + :type make_policy_consistent: bool """ _validation = { @@ -3452,6 +3576,7 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'settings': {'key': 'settings', 'type': 'Settings'}, 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -3459,78 +3584,10 @@ def __init__(self, **kwargs): self.work_load_type = kwargs.get('work_load_type', None) self.settings = kwargs.get('settings', None) self.sub_protection_policy = kwargs.get('sub_protection_policy', None) + self.make_policy_consistent = kwargs.get('make_policy_consistent', None) self.backup_management_type = 'AzureWorkload' -class AzureVmWorkloadSAPAseDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPAseDatabase' - - class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): """Azure VM workload-specific protected item representing SAP ASE Database. @@ -3686,11 +3743,11 @@ class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3749,11 +3806,11 @@ class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem) :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -3810,11 +3867,11 @@ class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3873,11 +3930,11 @@ class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableIt :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4064,11 +4121,11 @@ class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4127,11 +4184,11 @@ class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4188,11 +4245,11 @@ class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4252,11 +4309,11 @@ class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtecta :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4321,11 +4378,11 @@ class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4512,11 +4569,11 @@ class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4575,11 +4632,11 @@ class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4636,11 +4693,11 @@ class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int :param data_directory_paths: Data Directory Paths for default directories :type data_directory_paths: @@ -4948,21 +5005,26 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType """ _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -4977,8 +5039,8 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): def __init__(self, **kwargs): super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = kwargs.get('recovery_point_time_in_utc', None) - self.type = kwargs.get('type', None) + self.recovery_point_time_in_utc = None + self.type = None self.object_type = 'AzureWorkloadRecoveryPoint' @@ -4988,16 +5050,19 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param time_ranges: List of log ranges :type time_ranges: @@ -5006,6 +5071,8 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5036,9 +5103,9 @@ class AzureWorkloadRestoreRequest(RestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5049,6 +5116,11 @@ class AzureWorkloadRestoreRequest(RestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode """ _validation = { @@ -5061,6 +5133,7 @@ class AzureWorkloadRestoreRequest(RestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, } _subtype_map = { @@ -5073,6 +5146,7 @@ def __init__(self, **kwargs): self.source_resource_id = kwargs.get('source_resource_id', None) self.property_bag = kwargs.get('property_bag', None) self.target_info = kwargs.get('target_info', None) + self.recovery_mode = kwargs.get('recovery_mode', None) self.object_type = 'AzureWorkloadRestoreRequest' @@ -5084,9 +5158,9 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5097,6 +5171,11 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param point_in_time: PointInTime value :type point_in_time: datetime """ @@ -5111,6 +5190,7 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } @@ -5123,16 +5203,19 @@ def __init__(self, **kwargs): class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): """Recovery point specific to PointInTime in SAPHana. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param time_ranges: List of log ranges :type time_ranges: @@ -5141,6 +5224,8 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5165,9 +5250,9 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5178,6 +5263,11 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode """ _validation = { @@ -5190,6 +5280,7 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, } _subtype_map = { @@ -5209,9 +5300,9 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5222,6 +5313,11 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param point_in_time: PointInTime value :type point_in_time: datetime """ @@ -5236,6 +5332,7 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } @@ -5246,24 +5343,29 @@ def __init__(self, **kwargs): class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recovery point, specifically encapsulates full/diff - recovery points. + """SAPHana specific recoverypoint, specifically encapsulates full/diff + recoverypoints. + + Variables are only populated by the server, and will be ignored when + sending a request. All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType """ _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5332,22 +5434,25 @@ def __init__(self, **kwargs): class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recovery point, specifically encapsulates full/diff recovery - point along with extended info. + """SQL specific recoverypoint, specifically encapsulates full/diff + recoverypoint along with extended info. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param extended_info: Extended Info that provides data directory details. Will be populated in two cases: @@ -5360,6 +5465,8 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5382,16 +5489,19 @@ def __init__(self, **kwargs): class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): """Recovery point specific to PointInTime. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param extended_info: Extended Info that provides data directory details. Will be populated in two cases: @@ -5407,6 +5517,8 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5433,9 +5545,9 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5446,6 +5558,11 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided :type should_use_alternate_target_location: bool @@ -5467,6 +5584,7 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -5492,9 +5610,9 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5505,6 +5623,11 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided :type should_use_alternate_target_location: bool @@ -5528,6 +5651,7 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -5543,15 +5667,23 @@ def __init__(self, **kwargs): class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): """Extended info class details. - :param data_directory_time_in_utc: UTC time at which data directory info + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar data_directory_time_in_utc: UTC time at which data directory info was captured - :type data_directory_time_in_utc: datetime - :param data_directory_paths: List of data directory paths during restore + :vartype data_directory_time_in_utc: datetime + :ivar data_directory_paths: List of data directory paths during restore operation. - :type data_directory_paths: + :vartype data_directory_paths: list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] """ + _validation = { + 'data_directory_time_in_utc': {'readonly': True}, + 'data_directory_paths': {'readonly': True}, + } + _attribute_map = { 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, @@ -5559,8 +5691,8 @@ class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): def __init__(self, **kwargs): super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = kwargs.get('data_directory_time_in_utc', None) - self.data_directory_paths = kwargs.get('data_directory_paths', None) + self.data_directory_time_in_utc = None + self.data_directory_paths = None class Resource(Model): @@ -5881,6 +6013,10 @@ class BackupResourceVaultConfig(Model): include: 'Invalid', 'Enabled', 'Disabled' :type enhanced_security_state: str or ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState + :param soft_delete_feature_state: Soft Delete feature state. Possible + values include: 'Invalid', 'Enabled', 'Disabled' + :type soft_delete_feature_state: str or + ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState """ _attribute_map = { @@ -5888,6 +6024,7 @@ class BackupResourceVaultConfig(Model): 'storage_type': {'key': 'storageType', 'type': 'str'}, 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, + 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, } def __init__(self, **kwargs): @@ -5896,6 +6033,7 @@ def __init__(self, **kwargs): self.storage_type = kwargs.get('storage_type', None) self.storage_type_state = kwargs.get('storage_type_state', None) self.enhanced_security_state = kwargs.get('enhanced_security_state', None) + self.soft_delete_feature_state = kwargs.get('soft_delete_feature_state', None) class BackupResourceVaultConfigResource(Resource): @@ -6579,6 +6717,48 @@ def __init__(self, **kwargs): self.is_last = kwargs.get('is_last', None) +class DiskExclusionProperties(Model): + """DiskExclusionProperties. + + :param disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used + for VM Protection. + :type disk_lun_list: list[int] + :param is_inclusion_list: Flag to indicate whether DiskLunList is to be + included/ excluded from backup. + :type is_inclusion_list: bool + """ + + _attribute_map = { + 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, + 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(DiskExclusionProperties, self).__init__(**kwargs) + self.disk_lun_list = kwargs.get('disk_lun_list', None) + self.is_inclusion_list = kwargs.get('is_inclusion_list', None) + + +class DiskInformation(Model): + """Disk information. + + :param lun: + :type lun: int + :param name: + :type name: str + """ + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DiskInformation, self).__init__(**kwargs) + self.lun = kwargs.get('lun', None) + self.name = kwargs.get('name', None) + + class DistributedNodesInfo(Model): """This is used to represent the various nodes of the distributed container. @@ -6640,7 +6820,7 @@ class DpmBackupEngine(BackupEngineBase): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -7058,14 +7238,23 @@ def __init__(self, **kwargs): class ErrorDetail(Model): """Error Detail class which encapsulates Code, Message and Recommendations. - :param code: Error code. - :type code: str - :param message: Error Message related to the Code. - :type message: str - :param recommendations: List of recommendation strings. - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error Message related to the Code. + :vartype message: str + :ivar recommendations: List of recommendation strings. + :vartype recommendations: list[str] """ + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, @@ -7074,9 +7263,9 @@ class ErrorDetail(Model): def __init__(self, **kwargs): super(ErrorDetail, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.recommendations = kwargs.get('recommendations', None) + self.code = None + self.message = None + self.recommendations = None class OperationResultInfoBase(Model): @@ -7120,6 +7309,12 @@ class ExportJobsOperationResultInfo(OperationResultInfoBase): :type blob_url: str :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. :type blob_sas_key: str + :param excel_file_blob_url: URL of the blob into which the ExcelFile is + uploaded. + :type excel_file_blob_url: str + :param excel_file_blob_sas_key: SAS key to access the blob. It expires in + 15 mins. + :type excel_file_blob_sas_key: str """ _validation = { @@ -7130,15 +7325,36 @@ class ExportJobsOperationResultInfo(OperationResultInfoBase): 'object_type': {'key': 'objectType', 'type': 'str'}, 'blob_url': {'key': 'blobUrl', 'type': 'str'}, 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, + 'excel_file_blob_url': {'key': 'excelFileBlobUrl', 'type': 'str'}, + 'excel_file_blob_sas_key': {'key': 'excelFileBlobSasKey', 'type': 'str'}, } def __init__(self, **kwargs): super(ExportJobsOperationResultInfo, self).__init__(**kwargs) self.blob_url = kwargs.get('blob_url', None) self.blob_sas_key = kwargs.get('blob_sas_key', None) + self.excel_file_blob_url = kwargs.get('excel_file_blob_url', None) + self.excel_file_blob_sas_key = kwargs.get('excel_file_blob_sas_key', None) self.object_type = 'ExportJobsOperationResultInfo' +class ExtendedProperties(Model): + """Extended Properties for Azure IaasVM Backup. + + :param disk_exclusion_properties: Extended Properties for Disk Exclusion. + :type disk_exclusion_properties: + ~azure.mgmt.recoveryservicesbackup.models.DiskExclusionProperties + """ + + _attribute_map = { + 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, + } + + def __init__(self, **kwargs): + super(ExtendedProperties, self).__init__(**kwargs) + self.disk_exclusion_properties = kwargs.get('disk_exclusion_properties', None) + + class GenericContainer(ProtectionContainer): """Base class for generic container of backup items. @@ -7444,35 +7660,6 @@ def __init__(self, **kwargs): self.object_type = 'IaasVMBackupRequest' -class ILRRequest(Model): - """Parameters to restore file/folders API. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: IaasVMILRRegistrationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} - } - - def __init__(self, **kwargs): - super(ILRRequest, self).__init__(**kwargs) - self.object_type = None - - class IaasVMILRRegistrationRequest(ILRRequest): """Restore files/folders from a backup copy of IaaS VM. @@ -7517,23 +7704,26 @@ def __init__(self, **kwargs): class IaasVMRecoveryPoint(RecoveryPoint): """IaaS VM workload specific backup copy. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_type: Type of the backup copy. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param recovery_point_additional_info: Additional information associated + :ivar recovery_point_type: Type of the backup copy. + :vartype recovery_point_type: str + :ivar recovery_point_time: Time at which this backup copy was created. + :vartype recovery_point_time: datetime + :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :type recovery_point_additional_info: str - :param source_vm_storage_type: Storage type of the VM whose backup copy is + :vartype recovery_point_additional_info: str + :ivar source_vm_storage_type: Storage type of the VM whose backup copy is created. - :type source_vm_storage_type: str - :param is_source_vm_encrypted: Identifies whether the VM was encrypted - when the backup copy is created. - :type is_source_vm_encrypted: bool + :vartype source_vm_storage_type: str + :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when + the backup copy is created. + :vartype is_source_vm_encrypted: bool :param key_and_secret: Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. :type key_and_secret: @@ -7552,10 +7742,18 @@ class IaasVMRecoveryPoint(RecoveryPoint): :type original_storage_account_option: bool :param os_type: OS type :type os_type: str + :param recovery_point_disk_configuration: Disk configuration + :type recovery_point_disk_configuration: + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointDiskConfiguration """ _validation = { 'object_type': {'required': True}, + 'recovery_point_type': {'readonly': True}, + 'recovery_point_time': {'readonly': True}, + 'recovery_point_additional_info': {'readonly': True}, + 'source_vm_storage_type': {'readonly': True}, + 'is_source_vm_encrypted': {'readonly': True}, } _attribute_map = { @@ -7572,15 +7770,16 @@ class IaasVMRecoveryPoint(RecoveryPoint): 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, 'os_type': {'key': 'osType', 'type': 'str'}, + 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, } def __init__(self, **kwargs): super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) - self.source_vm_storage_type = kwargs.get('source_vm_storage_type', None) - self.is_source_vm_encrypted = kwargs.get('is_source_vm_encrypted', None) + self.recovery_point_type = None + self.recovery_point_time = None + self.recovery_point_additional_info = None + self.source_vm_storage_type = None + self.is_source_vm_encrypted = None self.key_and_secret = kwargs.get('key_and_secret', None) self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None) self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) @@ -7588,6 +7787,7 @@ def __init__(self, **kwargs): self.virtual_machine_size = kwargs.get('virtual_machine_size', None) self.original_storage_account_option = kwargs.get('original_storage_account_option', None) self.os_type = kwargs.get('os_type', None) + self.recovery_point_disk_configuration = kwargs.get('recovery_point_disk_configuration', None) self.object_type = 'IaasVMRecoveryPoint' @@ -7601,7 +7801,8 @@ class IaasVMRestoreRequest(RestoreRequest): :param recovery_point_id: ID of the backup copy to be recovered. :type recovery_point_id: str :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM which is being @@ -7648,6 +7849,8 @@ class IaasVMRestoreRequest(RestoreRequest): time of backup. :type encryption_details: ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails + :param restore_disk_lun_list: List of Disk LUNs for partial restore + :type restore_disk_lun_list: list[int] """ _validation = { @@ -7670,6 +7873,7 @@ class IaasVMRestoreRequest(RestoreRequest): 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, + 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, } def __init__(self, **kwargs): @@ -7688,11 +7892,12 @@ def __init__(self, **kwargs): self.create_new_cloud_service = kwargs.get('create_new_cloud_service', None) self.original_storage_account_option = kwargs.get('original_storage_account_option', None) self.encryption_details = kwargs.get('encryption_details', None) + self.restore_disk_lun_list = kwargs.get('restore_disk_lun_list', None) self.object_type = 'IaasVMRestoreRequest' class ILRRequestResource(Resource): - """Parameters to restore file/folders API. + """Parameters to Provision ILR API. Variables are only populated by the server, and will be ignored when sending a request. @@ -7766,21 +7971,33 @@ def __init__(self, **kwargs): class InquiryValidation(Model): """Validation for inquired protectable items under a given container. + Variables are only populated by the server, and will be ignored when + sending a request. + :param status: Status for the Inquiry Validation. :type status: str :param error_detail: Error Detail in case the status is non-success. :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :ivar additional_detail: Error Additional Detail in case the status is + non-success. + :vartype additional_detail: str """ + _validation = { + 'additional_detail': {'readonly': True}, + } + _attribute_map = { 'status': {'key': 'status', 'type': 'str'}, 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + 'additional_detail': {'key': 'additionalDetail', 'type': 'str'}, } def __init__(self, **kwargs): super(InquiryValidation, self).__init__(**kwargs) self.status = kwargs.get('status', None) self.error_detail = kwargs.get('error_detail', None) + self.additional_detail = None class InstantItemRecoveryTarget(Model): @@ -7800,6 +8017,26 @@ def __init__(self, **kwargs): self.client_scripts = kwargs.get('client_scripts', None) +class InstantRPAdditionalDetails(Model): + """InstantRPAdditionalDetails. + + :param azure_backup_rg_name_prefix: + :type azure_backup_rg_name_prefix: str + :param azure_backup_rg_name_suffix: + :type azure_backup_rg_name_suffix: str + """ + + _attribute_map = { + 'azure_backup_rg_name_prefix': {'key': 'azureBackupRGNamePrefix', 'type': 'str'}, + 'azure_backup_rg_name_suffix': {'key': 'azureBackupRGNameSuffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InstantRPAdditionalDetails, self).__init__(**kwargs) + self.azure_backup_rg_name_prefix = kwargs.get('azure_backup_rg_name_prefix', None) + self.azure_backup_rg_name_suffix = kwargs.get('azure_backup_rg_name_suffix', None) + + class JobQueryObject(Model): """Filters to list the jobs. @@ -7815,7 +8052,7 @@ class JobQueryObject(Model): ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType :param operation: Type of operation. Possible values include: 'Invalid', 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData' + 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete' :type operation: str or ~azure.mgmt.recoveryservicesbackup.models.JobOperationType :param job_id: JobID represents the job uniquely. @@ -8234,12 +8471,20 @@ def __init__(self, **kwargs): class MabErrorInfo(Model): """MAB workload-specific error information. - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations. - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_string: Localized error string. + :vartype error_string: str + :ivar recommendations: List of localized recommendations. + :vartype recommendations: list[str] """ + _validation = { + 'error_string': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'error_string': {'key': 'errorString', 'type': 'str'}, 'recommendations': {'key': 'recommendations', 'type': '[str]'}, @@ -8247,8 +8492,8 @@ class MabErrorInfo(Model): def __init__(self, **kwargs): super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) + self.error_string = None + self.recommendations = None class MabFileFolderProtectedItem(ProtectedItem): @@ -8309,10 +8554,14 @@ class MabFileFolderProtectedItem(ProtectedItem): :type computer_name: str :param last_backup_status: Status of last backup operation. :type last_backup_status: str + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime :param protection_state: Protected, ProtectionStopped, IRPending or ProtectionError :type protection_state: str - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. + :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion + in UTC :type deferred_delete_sync_time_in_utc: long :param extended_info: Additional information with this backup item. :type extended_info: @@ -8341,6 +8590,7 @@ class MabFileFolderProtectedItem(ProtectedItem): 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'computer_name': {'key': 'computerName', 'type': 'str'}, 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protection_state': {'key': 'protectionState', 'type': 'str'}, 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, @@ -8351,6 +8601,7 @@ def __init__(self, **kwargs): self.friendly_name = kwargs.get('friendly_name', None) self.computer_name = kwargs.get('computer_name', None) self.last_backup_status = kwargs.get('last_backup_status', None) + self.last_backup_time = kwargs.get('last_backup_time', None) self.protection_state = kwargs.get('protection_state', None) self.deferred_delete_sync_time_in_utc = kwargs.get('deferred_delete_sync_time_in_utc', None) self.extended_info = kwargs.get('extended_info', None) @@ -8965,7 +9216,7 @@ class PreValidateEnableBackupRequest(Model): ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param resource_id: ARM Virtual Machine Id :type resource_id: str - :param vault_id: Specifies the arm resource id of the vault + :param vault_id: ARM id of the Recovery Services Vault :type vault_id: str :param properties: Configuration of VM if any needs to be validated like OS type etc @@ -9378,6 +9629,37 @@ def __init__(self, **kwargs): self.properties = kwargs.get('properties', None) +class RecoveryPointDiskConfiguration(Model): + """Disk configuration. + + :param number_of_disks_included_in_backup: Number of disks included in + backup + :type number_of_disks_included_in_backup: int + :param number_of_disks_attached_to_vm: Number of disks attached to the VM + :type number_of_disks_attached_to_vm: int + :param included_disk_list: Information of disks included in backup + :type included_disk_list: + list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] + :param excluded_disk_list: Information of disks excluded from backup + :type excluded_disk_list: + list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] + """ + + _attribute_map = { + 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, + 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, + 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, + 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, + } + + def __init__(self, **kwargs): + super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) + self.number_of_disks_included_in_backup = kwargs.get('number_of_disks_included_in_backup', None) + self.number_of_disks_attached_to_vm = kwargs.get('number_of_disks_attached_to_vm', None) + self.included_disk_list = kwargs.get('included_disk_list', None) + self.excluded_disk_list = kwargs.get('excluded_disk_list', None) + + class RecoveryPointResource(Resource): """Base class for backup copies. Workload-specific backup copies are derived from this class. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py index 899f0821996f..3d88aadfd7da 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py @@ -300,7 +300,7 @@ class BackupEngineBase(Model): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -384,7 +384,7 @@ class AzureBackupServerEngine(BackupEngineBase): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -800,6 +800,9 @@ def __init__(self, *, backup_management_type=None, workload_type=None, container class AzureFileshareProtectedItemExtendedInfo(Model): """Additional information about Azure File Share backup item. + Variables are only populated by the server, and will be ignored when + sending a request. + :param oldest_recovery_point: The oldest backup copy available for this item in the service. :type oldest_recovery_point: datetime @@ -809,12 +812,25 @@ class AzureFileshareProtectedItemExtendedInfo(Model): :param policy_state: Indicates consistency of policy object and policy applied to this backup item. :type policy_state: str + :ivar resource_state: Indicates the state of this resource. Possible + values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted} + :vartype resource_state: str + :ivar resource_state_sync_time: The resource state sync time for this + backup item. + :vartype resource_state_sync_time: datetime """ + _validation = { + 'resource_state': {'readonly': True}, + 'resource_state_sync_time': {'readonly': True}, + } + _attribute_map = { 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, 'policy_state': {'key': 'policyState', 'type': 'str'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, } def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: @@ -822,6 +838,8 @@ def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None self.oldest_recovery_point = oldest_recovery_point self.recovery_point_count = recovery_point_count self.policy_state = policy_state + self.resource_state = None + self.resource_state_sync_time = None class ProtectionPolicy(Model): @@ -829,10 +847,9 @@ class ProtectionPolicy(Model): from this class. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectionPolicy, - AzureIaaSVMProtectionPolicy, AzureSqlProtectionPolicy, - AzureVmWorkloadProtectionPolicy, GenericProtectionPolicy, - MabProtectionPolicy + sub-classes are: AzureVmWorkloadProtectionPolicy, + AzureFileShareProtectionPolicy, AzureIaaSVMProtectionPolicy, + AzureSqlProtectionPolicy, GenericProtectionPolicy, MabProtectionPolicy All required parameters must be populated in order to send to Azure. @@ -852,7 +869,7 @@ class ProtectionPolicy(Model): } _subtype_map = { - 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} + 'backup_management_type': {'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} } def __init__(self, *, protected_items_count: int=None, **kwargs) -> None: @@ -912,6 +929,67 @@ def __init__(self, *, protected_items_count: int=None, work_load_type=None, sche self.backup_management_type = 'AzureStorage' +class ILRRequest(Model): + """Parameters to Provision ILR API. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareProvisionILRRequest, + IaasVMILRRegistrationRequest + + All required parameters must be populated in order to send to Azure. + + :param object_type: Required. Constant filled by server. + :type object_type: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + } + + _subtype_map = { + 'object_type': {'AzureFileShareProvisionILRRequest': 'AzureFileShareProvisionILRRequest', 'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} + } + + def __init__(self, **kwargs) -> None: + super(ILRRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareProvisionILRRequest(ILRRequest): + """Update snapshot Uri with the correct friendly Name of the source Azure file + share. + + All required parameters must be populated in order to send to Azure. + + :param object_type: Required. Constant filled by server. + :type object_type: str + :param recovery_point_id: Recovery point ID. + :type recovery_point_id: str + :param source_resource_id: Source Storage account ARM Id + :type source_resource_id: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + } + + def __init__(self, *, recovery_point_id: str=None, source_resource_id: str=None, **kwargs) -> None: + super(AzureFileShareProvisionILRRequest, self).__init__(**kwargs) + self.recovery_point_id = recovery_point_id + self.source_resource_id = source_resource_id + self.object_type = 'AzureFileShareProvisionILRRequest' + + class RecoveryPoint(Model): """Base class for backup copies. Workload-specific backup copies are derived from this class. @@ -946,22 +1024,31 @@ def __init__(self, **kwargs) -> None: class AzureFileShareRecoveryPoint(RecoveryPoint): """Azure File Share workload specific backup copy. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_type: Type of the backup copy. Specifies whether it + :ivar recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param file_share_snapshot_uri: Contains Url to the snapshot of fileshare, + :vartype recovery_point_type: str + :ivar recovery_point_time: Time at which this backup copy was created. + :vartype recovery_point_time: datetime + :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable - :type file_share_snapshot_uri: str + :vartype file_share_snapshot_uri: str + :ivar recovery_point_size_in_gb: Contains recovery point size + :vartype recovery_point_size_in_gb: int """ _validation = { 'object_type': {'required': True}, + 'recovery_point_type': {'readonly': True}, + 'recovery_point_time': {'readonly': True}, + 'file_share_snapshot_uri': {'readonly': True}, + 'recovery_point_size_in_gb': {'readonly': True}, } _attribute_map = { @@ -969,13 +1056,15 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, + 'recovery_point_size_in_gb': {'key': 'recoveryPointSizeInGB', 'type': 'int'}, } - def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, file_share_snapshot_uri: str=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = recovery_point_type - self.recovery_point_time = recovery_point_time - self.file_share_snapshot_uri = file_share_snapshot_uri + self.recovery_point_type = None + self.recovery_point_time = None + self.file_share_snapshot_uri = None + self.recovery_point_size_in_gb = None self.object_type = 'AzureFileShareRecoveryPoint' @@ -1018,7 +1107,8 @@ class AzureFileShareRestoreRequest(RestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Source storage account ARM Id @@ -1354,6 +1444,9 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1385,13 +1478,14 @@ class AzureIaaSVMProtectedItem(ProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } _subtype_map = { 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, **kwargs) -> None: + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: super(AzureIaaSVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) self.friendly_name = friendly_name self.virtual_machine_id = virtual_machine_id @@ -1403,6 +1497,7 @@ def __init__(self, *, backup_management_type=None, workload_type=None, container self.last_backup_time = last_backup_time self.protected_item_data_id = protected_item_data_id self.extended_info = extended_info + self.extended_properties = extended_properties self.protected_item_type = 'AzureIaaSVMProtectedItem' @@ -1487,6 +1582,9 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1518,10 +1616,11 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: + super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' @@ -1700,6 +1799,9 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param extended_info: Additional information for this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + :param extended_properties: + :type extended_properties: + ~azure.mgmt.recoveryservicesbackup.models.ExtendedProperties """ _validation = { @@ -1731,28 +1833,39 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, **kwargs) -> None: - super(AzureIaaSComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: + super(AzureIaaSComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) self.protected_item_type = 'Microsoft.Compute/virtualMachines' class AzureIaaSVMErrorInfo(Model): """Azure IaaS VM workload-specific error information. - :param error_code: Error code. - :type error_code: int - :param error_title: Title: Typically, the entity that the error pertains + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_code: Error code. + :vartype error_code: int + :ivar error_title: Title: Typically, the entity that the error pertains to. - :type error_title: str - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error + :vartype error_title: str + :ivar error_string: Localized error string. + :vartype error_string: str + :ivar recommendations: List of localized recommendations for above error code. - :type recommendations: list[str] + :vartype recommendations: list[str] """ + _validation = { + 'error_code': {'readonly': True}, + 'error_title': {'readonly': True}, + 'error_string': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'error_code': {'key': 'errorCode', 'type': 'int'}, 'error_title': {'key': 'errorTitle', 'type': 'str'}, @@ -1760,27 +1873,37 @@ class AzureIaaSVMErrorInfo(Model): 'recommendations': {'key': 'recommendations', 'type': '[str]'}, } - def __init__(self, *, error_code: int=None, error_title: str=None, error_string: str=None, recommendations=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = error_code - self.error_title = error_title - self.error_string = error_string - self.recommendations = recommendations + self.error_code = None + self.error_title = None + self.error_string = None + self.recommendations = None class AzureIaaSVMHealthDetails(Model): """Azure IaaS VM workload-specific Health Details. - :param code: Health Code - :type code: int - :param title: Health Title - :type title: str - :param message: Health Message - :type message: str - :param recommendations: Health Recommended Actions - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Health Code + :vartype code: int + :ivar title: Health Title + :vartype title: str + :ivar message: Health Message + :vartype message: str + :ivar recommendations: Health Recommended Actions + :vartype recommendations: list[str] """ + _validation = { + 'code': {'readonly': True}, + 'title': {'readonly': True}, + 'message': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'int'}, 'title': {'key': 'title', 'type': 'str'}, @@ -1788,12 +1911,12 @@ class AzureIaaSVMHealthDetails(Model): 'recommendations': {'key': 'recommendations', 'type': '[str]'}, } - def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - self.code = code - self.title = title - self.message = message - self.recommendations = recommendations + self.code = None + self.title = None + self.message = None + self.recommendations = None class Job(Model): @@ -3111,11 +3234,11 @@ class AzureVmWorkloadItem(WorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3154,8 +3277,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): """Azure VM workload-specific protectable item. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectableItem, - AzureVmWorkloadSAPAseSystemProtectableItem, + sub-classes are: AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, @@ -3192,11 +3314,11 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -3224,7 +3346,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): } _subtype_map = { - 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} + 'protectable_item_type': {'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} } def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: @@ -3440,6 +3562,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): includes schedule and retention :type sub_protection_policy: list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + :param make_policy_consistent: Fix the policy inconsistency + :type make_policy_consistent: bool """ _validation = { @@ -3452,85 +3576,18 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'settings': {'key': 'settings', 'type': 'Settings'}, 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, } - def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=None, **kwargs) -> None: + def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=None, make_policy_consistent: bool=None, **kwargs) -> None: super(AzureVmWorkloadProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) self.work_load_type = work_load_type self.settings = settings self.sub_protection_policy = sub_protection_policy + self.make_policy_consistent = make_policy_consistent self.backup_management_type = 'AzureWorkload' -class AzureVmWorkloadSAPAseDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management to backup an - item. - :type backup_management_type: str - :param workload_type: Type of workload for the backup management - :type workload_type: str - :param friendly_name: Friendly name of the backup item. - :type friendly_name: str - :param protection_state: State of the back up item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protectable_item_type: Required. Constant filled by server. - :type protectable_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param parent_unique_name: Parent Unique Name is added to provide the - service formatted URI Name of the Parent - Only Applicable for data bases where the parent would be either Instance - or a SQL AG. - :type parent_unique_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param is_auto_protectable: Indicates if protectable item is - auto-protectable - :type is_auto_protectable: bool - :param is_auto_protected: Indicates if protectable item is auto-protected - :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs - present - :type subinquireditemcount: int - :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected - :type subprotectableitemcount: int - :param prebackupvalidation: Pre-backup validation for protectable objects - :type prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.models.PreBackupValidation - """ - - _validation = { - 'protectable_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protectable_item_type': {'key': 'protectableItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_unique_name': {'key': 'parentUniqueName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'is_auto_protected': {'key': 'isAutoProtected', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'subprotectableitemcount': {'key': 'subprotectableitemcount', 'type': 'int'}, - 'prebackupvalidation': {'key': 'prebackupvalidation', 'type': 'PreBackupValidation'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, parent_unique_name: str=None, server_name: str=None, is_auto_protectable: bool=None, is_auto_protected: bool=None, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) - self.protectable_item_type = 'SAPAseDatabase' - - class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): """Azure VM workload-specific protected item representing SAP ASE Database. @@ -3686,11 +3743,11 @@ class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3749,11 +3806,11 @@ class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem) :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -3810,11 +3867,11 @@ class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -3873,11 +3930,11 @@ class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableIt :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4064,11 +4121,11 @@ class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4127,11 +4184,11 @@ class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4188,11 +4245,11 @@ class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4252,11 +4309,11 @@ class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtecta :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4321,11 +4378,11 @@ class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4512,11 +4569,11 @@ class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int """ @@ -4575,11 +4632,11 @@ class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): :type is_auto_protectable: bool :param is_auto_protected: Indicates if protectable item is auto-protected :type is_auto_protected: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param subprotectableitemcount: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type subprotectableitemcount: int :param prebackupvalidation: Pre-backup validation for protectable objects :type prebackupvalidation: @@ -4636,11 +4693,11 @@ class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): :type server_name: str :param is_auto_protectable: Indicates if workload item is auto-protectable :type is_auto_protectable: bool - :param subinquireditemcount: For instance or AG, indicates number of DBs + :param subinquireditemcount: For instance or AG, indicates number of DB's present :type subinquireditemcount: int :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected + DB's to be protected :type sub_workload_item_count: int :param data_directory_paths: Data Directory Paths for default directories :type data_directory_paths: @@ -4948,21 +5005,26 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType """ _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -4975,10 +5037,10 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = recovery_point_time_in_utc - self.type = type + self.recovery_point_time_in_utc = None + self.type = None self.object_type = 'AzureWorkloadRecoveryPoint' @@ -4988,16 +5050,19 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param time_ranges: List of log ranges :type time_ranges: @@ -5006,6 +5071,8 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5019,8 +5086,8 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, **kwargs) + def __init__(self, *, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) self.time_ranges = time_ranges self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' @@ -5036,9 +5103,9 @@ class AzureWorkloadRestoreRequest(RestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5049,6 +5116,11 @@ class AzureWorkloadRestoreRequest(RestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode """ _validation = { @@ -5061,18 +5133,20 @@ class AzureWorkloadRestoreRequest(RestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, } _subtype_map = { 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, **kwargs) -> None: + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, **kwargs) -> None: super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) self.recovery_type = recovery_type self.source_resource_id = source_resource_id self.property_bag = property_bag self.target_info = target_info + self.recovery_mode = recovery_mode self.object_type = 'AzureWorkloadRestoreRequest' @@ -5084,9 +5158,9 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5097,6 +5171,11 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param point_in_time: PointInTime value :type point_in_time: datetime """ @@ -5111,11 +5190,12 @@ class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, **kwargs) + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, point_in_time=None, **kwargs) -> None: + super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) self.point_in_time = point_in_time self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' @@ -5123,16 +5203,19 @@ def __init__(self, *, recovery_type=None, source_resource_id: str=None, property class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): """Recovery point specific to PointInTime in SAPHana. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param time_ranges: List of log ranges :type time_ranges: @@ -5141,6 +5224,8 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5150,8 +5235,8 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, time_ranges=time_ranges, **kwargs) + def __init__(self, *, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(time_ranges=time_ranges, **kwargs) self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' @@ -5165,9 +5250,9 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5178,6 +5263,11 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode """ _validation = { @@ -5190,14 +5280,15 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, } _subtype_map = { 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, **kwargs) + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' @@ -5209,9 +5300,9 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5222,6 +5313,11 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param point_in_time: PointInTime value :type point_in_time: datetime """ @@ -5236,34 +5332,40 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, **kwargs) + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, point_in_time=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) self.point_in_time = point_in_time self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recovery point, specifically encapsulates full/diff - recovery points. + """SAPHana specific recoverypoint, specifically encapsulates full/diff + recoverypoints. + + Variables are only populated by the server, and will be ignored when + sending a request. All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType """ _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5272,8 +5374,8 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, **kwargs) + def __init__(self, **kwargs) -> None: + super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' @@ -5332,22 +5434,25 @@ def __init__(self, *, backup_management_type=None, source_resource_id: str=None, class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recovery point, specifically encapsulates full/diff recovery - point along with extended info. + """SQL specific recoverypoint, specifically encapsulates full/diff + recoverypoint along with extended info. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param extended_info: Extended Info that provides data directory details. Will be populated in two cases: @@ -5360,6 +5465,8 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5373,8 +5480,8 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, extended_info=None, **kwargs) -> None: - super(AzureWorkloadSQLRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, **kwargs) + def __init__(self, *, extended_info=None, **kwargs) -> None: + super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) self.extended_info = extended_info self.object_type = 'AzureWorkloadSQLRecoveryPoint' @@ -5382,16 +5489,19 @@ def __init__(self, *, recovery_point_time_in_utc=None, type=None, extended_info= class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): """Recovery point specific to PointInTime. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_time_in_utc: UTC time at which recovery point was + :ivar recovery_point_time_in_utc: UTC time at which recovery point was created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', + :vartype recovery_point_time_in_utc: datetime + :ivar type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' - :type type: str or + :vartype type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param extended_info: Extended Info that provides data directory details. Will be populated in two cases: @@ -5407,6 +5517,8 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): _validation = { 'object_type': {'required': True}, + 'recovery_point_time_in_utc': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { @@ -5417,8 +5529,8 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, } - def __init__(self, *, recovery_point_time_in_utc=None, type=None, extended_info=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, extended_info=extended_info, **kwargs) + def __init__(self, *, extended_info=None, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(extended_info=extended_info, **kwargs) self.time_ranges = time_ranges self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' @@ -5433,9 +5545,9 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5446,6 +5558,11 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided :type should_use_alternate_target_location: bool @@ -5467,6 +5584,7 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -5476,8 +5594,8 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, **kwargs) -> None: - super(AzureWorkloadSQLRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, **kwargs) + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, **kwargs) -> None: + super(AzureWorkloadSQLRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) self.should_use_alternate_target_location = should_use_alternate_target_location self.is_non_recoverable = is_non_recoverable self.alternate_directory_paths = alternate_directory_paths @@ -5492,9 +5610,9 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' + :param recovery_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM on which @@ -5505,6 +5623,11 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): :param target_info: Details of target database :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param recovery_mode: Defines whether the current recovery mode is file + restore or database restore. Possible values include: 'Invalid', + 'FileRecovery', 'WorkloadRecovery' + :type recovery_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided :type should_use_alternate_target_location: bool @@ -5528,14 +5651,15 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } - def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, point_in_time=None, **kwargs) -> None: - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) + def __init__(self, *, recovery_type=None, source_resource_id: str=None, property_bag=None, target_info=None, recovery_mode=None, should_use_alternate_target_location: bool=None, is_non_recoverable: bool=None, alternate_directory_paths=None, point_in_time=None, **kwargs) -> None: + super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) self.point_in_time = point_in_time self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' @@ -5543,24 +5667,32 @@ def __init__(self, *, recovery_type=None, source_resource_id: str=None, property class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): """Extended info class details. - :param data_directory_time_in_utc: UTC time at which data directory info + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar data_directory_time_in_utc: UTC time at which data directory info was captured - :type data_directory_time_in_utc: datetime - :param data_directory_paths: List of data directory paths during restore + :vartype data_directory_time_in_utc: datetime + :ivar data_directory_paths: List of data directory paths during restore operation. - :type data_directory_paths: + :vartype data_directory_paths: list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] """ + _validation = { + 'data_directory_time_in_utc': {'readonly': True}, + 'data_directory_paths': {'readonly': True}, + } + _attribute_map = { 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, } - def __init__(self, *, data_directory_time_in_utc=None, data_directory_paths=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = data_directory_time_in_utc - self.data_directory_paths = data_directory_paths + self.data_directory_time_in_utc = None + self.data_directory_paths = None class Resource(Model): @@ -5881,6 +6013,10 @@ class BackupResourceVaultConfig(Model): include: 'Invalid', 'Enabled', 'Disabled' :type enhanced_security_state: str or ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState + :param soft_delete_feature_state: Soft Delete feature state. Possible + values include: 'Invalid', 'Enabled', 'Disabled' + :type soft_delete_feature_state: str or + ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState """ _attribute_map = { @@ -5888,14 +6024,16 @@ class BackupResourceVaultConfig(Model): 'storage_type': {'key': 'storageType', 'type': 'str'}, 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, + 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, } - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_state=None, **kwargs) -> None: + def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_state=None, soft_delete_feature_state=None, **kwargs) -> None: super(BackupResourceVaultConfig, self).__init__(**kwargs) self.storage_model_type = storage_model_type self.storage_type = storage_type self.storage_type_state = storage_type_state self.enhanced_security_state = enhanced_security_state + self.soft_delete_feature_state = soft_delete_feature_state class BackupResourceVaultConfigResource(Resource): @@ -6579,6 +6717,48 @@ def __init__(self, *, date_property: int=None, is_last: bool=None, **kwargs) -> self.is_last = is_last +class DiskExclusionProperties(Model): + """DiskExclusionProperties. + + :param disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used + for VM Protection. + :type disk_lun_list: list[int] + :param is_inclusion_list: Flag to indicate whether DiskLunList is to be + included/ excluded from backup. + :type is_inclusion_list: bool + """ + + _attribute_map = { + 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, + 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, + } + + def __init__(self, *, disk_lun_list=None, is_inclusion_list: bool=None, **kwargs) -> None: + super(DiskExclusionProperties, self).__init__(**kwargs) + self.disk_lun_list = disk_lun_list + self.is_inclusion_list = is_inclusion_list + + +class DiskInformation(Model): + """Disk information. + + :param lun: + :type lun: int + :param name: + :type name: str + """ + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, lun: int=None, name: str=None, **kwargs) -> None: + super(DiskInformation, self).__init__(**kwargs) + self.lun = lun + self.name = name + + class DistributedNodesInfo(Model): """This is used to represent the various nodes of the distributed container. @@ -6640,7 +6820,7 @@ class DpmBackupEngine(BackupEngineBase): :param is_dpm_upgrade_available: To check if backup engine upgrade available :type is_dpm_upgrade_available: bool - :param extended_info: Extended info of the backup engine + :param extended_info: Extended info of the backupengine :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo :param backup_engine_type: Required. Constant filled by server. @@ -7058,25 +7238,34 @@ def __init__(self, *, encryption_enabled: bool=None, kek_url: str=None, secret_k class ErrorDetail(Model): """Error Detail class which encapsulates Code, Message and Recommendations. - :param code: Error code. - :type code: str - :param message: Error Message related to the Code. - :type message: str - :param recommendations: List of recommendation strings. - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error Message related to the Code. + :vartype message: str + :ivar recommendations: List of recommendation strings. + :vartype recommendations: list[str] """ + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'recommendations': {'key': 'recommendations', 'type': '[str]'}, } - def __init__(self, *, code: str=None, message: str=None, recommendations=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(ErrorDetail, self).__init__(**kwargs) - self.code = code - self.message = message - self.recommendations = recommendations + self.code = None + self.message = None + self.recommendations = None class OperationResultInfoBase(Model): @@ -7120,6 +7309,12 @@ class ExportJobsOperationResultInfo(OperationResultInfoBase): :type blob_url: str :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. :type blob_sas_key: str + :param excel_file_blob_url: URL of the blob into which the ExcelFile is + uploaded. + :type excel_file_blob_url: str + :param excel_file_blob_sas_key: SAS key to access the blob. It expires in + 15 mins. + :type excel_file_blob_sas_key: str """ _validation = { @@ -7130,15 +7325,36 @@ class ExportJobsOperationResultInfo(OperationResultInfoBase): 'object_type': {'key': 'objectType', 'type': 'str'}, 'blob_url': {'key': 'blobUrl', 'type': 'str'}, 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, + 'excel_file_blob_url': {'key': 'excelFileBlobUrl', 'type': 'str'}, + 'excel_file_blob_sas_key': {'key': 'excelFileBlobSasKey', 'type': 'str'}, } - def __init__(self, *, blob_url: str=None, blob_sas_key: str=None, **kwargs) -> None: + def __init__(self, *, blob_url: str=None, blob_sas_key: str=None, excel_file_blob_url: str=None, excel_file_blob_sas_key: str=None, **kwargs) -> None: super(ExportJobsOperationResultInfo, self).__init__(**kwargs) self.blob_url = blob_url self.blob_sas_key = blob_sas_key + self.excel_file_blob_url = excel_file_blob_url + self.excel_file_blob_sas_key = excel_file_blob_sas_key self.object_type = 'ExportJobsOperationResultInfo' +class ExtendedProperties(Model): + """Extended Properties for Azure IaasVM Backup. + + :param disk_exclusion_properties: Extended Properties for Disk Exclusion. + :type disk_exclusion_properties: + ~azure.mgmt.recoveryservicesbackup.models.DiskExclusionProperties + """ + + _attribute_map = { + 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, + } + + def __init__(self, *, disk_exclusion_properties=None, **kwargs) -> None: + super(ExtendedProperties, self).__init__(**kwargs) + self.disk_exclusion_properties = disk_exclusion_properties + + class GenericContainer(ProtectionContainer): """Base class for generic container of backup items. @@ -7444,35 +7660,6 @@ def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: self.object_type = 'IaasVMBackupRequest' -class ILRRequest(Model): - """Parameters to restore file/folders API. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: IaasVMILRRegistrationRequest - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} - } - - def __init__(self, **kwargs) -> None: - super(ILRRequest, self).__init__(**kwargs) - self.object_type = None - - class IaasVMILRRegistrationRequest(ILRRequest): """Restore files/folders from a backup copy of IaaS VM. @@ -7517,23 +7704,26 @@ def __init__(self, *, recovery_point_id: str=None, virtual_machine_id: str=None, class IaasVMRecoveryPoint(RecoveryPoint): """IaaS VM workload specific backup copy. + Variables are only populated by the server, and will be ignored when + sending a request. + All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :param recovery_point_type: Type of the backup copy. - :type recovery_point_type: str - :param recovery_point_time: Time at which this backup copy was created. - :type recovery_point_time: datetime - :param recovery_point_additional_info: Additional information associated + :ivar recovery_point_type: Type of the backup copy. + :vartype recovery_point_type: str + :ivar recovery_point_time: Time at which this backup copy was created. + :vartype recovery_point_time: datetime + :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :type recovery_point_additional_info: str - :param source_vm_storage_type: Storage type of the VM whose backup copy is + :vartype recovery_point_additional_info: str + :ivar source_vm_storage_type: Storage type of the VM whose backup copy is created. - :type source_vm_storage_type: str - :param is_source_vm_encrypted: Identifies whether the VM was encrypted - when the backup copy is created. - :type is_source_vm_encrypted: bool + :vartype source_vm_storage_type: str + :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when + the backup copy is created. + :vartype is_source_vm_encrypted: bool :param key_and_secret: Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. :type key_and_secret: @@ -7552,10 +7742,18 @@ class IaasVMRecoveryPoint(RecoveryPoint): :type original_storage_account_option: bool :param os_type: OS type :type os_type: str + :param recovery_point_disk_configuration: Disk configuration + :type recovery_point_disk_configuration: + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointDiskConfiguration """ _validation = { 'object_type': {'required': True}, + 'recovery_point_type': {'readonly': True}, + 'recovery_point_time': {'readonly': True}, + 'recovery_point_additional_info': {'readonly': True}, + 'source_vm_storage_type': {'readonly': True}, + 'is_source_vm_encrypted': {'readonly': True}, } _attribute_map = { @@ -7572,15 +7770,16 @@ class IaasVMRecoveryPoint(RecoveryPoint): 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, 'os_type': {'key': 'osType', 'type': 'str'}, + 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, } - def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, recovery_point_additional_info: str=None, source_vm_storage_type: str=None, is_source_vm_encrypted: bool=None, key_and_secret=None, is_instant_ilr_session_active: bool=None, recovery_point_tier_details=None, is_managed_virtual_machine: bool=None, virtual_machine_size: str=None, original_storage_account_option: bool=None, os_type: str=None, **kwargs) -> None: + def __init__(self, *, key_and_secret=None, is_instant_ilr_session_active: bool=None, recovery_point_tier_details=None, is_managed_virtual_machine: bool=None, virtual_machine_size: str=None, original_storage_account_option: bool=None, os_type: str=None, recovery_point_disk_configuration=None, **kwargs) -> None: super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = recovery_point_type - self.recovery_point_time = recovery_point_time - self.recovery_point_additional_info = recovery_point_additional_info - self.source_vm_storage_type = source_vm_storage_type - self.is_source_vm_encrypted = is_source_vm_encrypted + self.recovery_point_type = None + self.recovery_point_time = None + self.recovery_point_additional_info = None + self.source_vm_storage_type = None + self.is_source_vm_encrypted = None self.key_and_secret = key_and_secret self.is_instant_ilr_session_active = is_instant_ilr_session_active self.recovery_point_tier_details = recovery_point_tier_details @@ -7588,6 +7787,7 @@ def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, r self.virtual_machine_size = virtual_machine_size self.original_storage_account_option = original_storage_account_option self.os_type = os_type + self.recovery_point_disk_configuration = recovery_point_disk_configuration self.object_type = 'IaasVMRecoveryPoint' @@ -7601,7 +7801,8 @@ class IaasVMRestoreRequest(RestoreRequest): :param recovery_point_id: ID of the backup copy to be recovered. :type recovery_point_id: str :param recovery_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks', + 'Offline' :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType :param source_resource_id: Fully qualified ARM ID of the VM which is being @@ -7648,6 +7849,8 @@ class IaasVMRestoreRequest(RestoreRequest): time of backup. :type encryption_details: ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails + :param restore_disk_lun_list: List of Disk LUNs for partial restore + :type restore_disk_lun_list: list[int] """ _validation = { @@ -7670,9 +7873,10 @@ class IaasVMRestoreRequest(RestoreRequest): 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, + 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, } - def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, **kwargs) -> None: + def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, **kwargs) -> None: super(IaasVMRestoreRequest, self).__init__(**kwargs) self.recovery_point_id = recovery_point_id self.recovery_type = recovery_type @@ -7688,11 +7892,12 @@ def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_re self.create_new_cloud_service = create_new_cloud_service self.original_storage_account_option = original_storage_account_option self.encryption_details = encryption_details + self.restore_disk_lun_list = restore_disk_lun_list self.object_type = 'IaasVMRestoreRequest' class ILRRequestResource(Resource): - """Parameters to restore file/folders API. + """Parameters to Provision ILR API. Variables are only populated by the server, and will be ignored when sending a request. @@ -7766,21 +7971,33 @@ def __init__(self, *, status: str=None, error_detail=None, inquiry_details=None, class InquiryValidation(Model): """Validation for inquired protectable items under a given container. + Variables are only populated by the server, and will be ignored when + sending a request. + :param status: Status for the Inquiry Validation. :type status: str :param error_detail: Error Detail in case the status is non-success. :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :ivar additional_detail: Error Additional Detail in case the status is + non-success. + :vartype additional_detail: str """ + _validation = { + 'additional_detail': {'readonly': True}, + } + _attribute_map = { 'status': {'key': 'status', 'type': 'str'}, 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + 'additional_detail': {'key': 'additionalDetail', 'type': 'str'}, } def __init__(self, *, status: str=None, error_detail=None, **kwargs) -> None: super(InquiryValidation, self).__init__(**kwargs) self.status = status self.error_detail = error_detail + self.additional_detail = None class InstantItemRecoveryTarget(Model): @@ -7800,6 +8017,26 @@ def __init__(self, *, client_scripts=None, **kwargs) -> None: self.client_scripts = client_scripts +class InstantRPAdditionalDetails(Model): + """InstantRPAdditionalDetails. + + :param azure_backup_rg_name_prefix: + :type azure_backup_rg_name_prefix: str + :param azure_backup_rg_name_suffix: + :type azure_backup_rg_name_suffix: str + """ + + _attribute_map = { + 'azure_backup_rg_name_prefix': {'key': 'azureBackupRGNamePrefix', 'type': 'str'}, + 'azure_backup_rg_name_suffix': {'key': 'azureBackupRGNameSuffix', 'type': 'str'}, + } + + def __init__(self, *, azure_backup_rg_name_prefix: str=None, azure_backup_rg_name_suffix: str=None, **kwargs) -> None: + super(InstantRPAdditionalDetails, self).__init__(**kwargs) + self.azure_backup_rg_name_prefix = azure_backup_rg_name_prefix + self.azure_backup_rg_name_suffix = azure_backup_rg_name_suffix + + class JobQueryObject(Model): """Filters to list the jobs. @@ -7815,7 +8052,7 @@ class JobQueryObject(Model): ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType :param operation: Type of operation. Possible values include: 'Invalid', 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData' + 'DisableBackup', 'DeleteBackupData', 'CrossRegionRestore', 'Undelete' :type operation: str or ~azure.mgmt.recoveryservicesbackup.models.JobOperationType :param job_id: JobID represents the job uniquely. @@ -8234,21 +8471,29 @@ def __init__(self, *, code: int=None, title: str=None, message: str=None, recomm class MabErrorInfo(Model): """MAB workload-specific error information. - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations. - :type recommendations: list[str] + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar error_string: Localized error string. + :vartype error_string: str + :ivar recommendations: List of localized recommendations. + :vartype recommendations: list[str] """ + _validation = { + 'error_string': {'readonly': True}, + 'recommendations': {'readonly': True}, + } + _attribute_map = { 'error_string': {'key': 'errorString', 'type': 'str'}, 'recommendations': {'key': 'recommendations', 'type': '[str]'}, } - def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = error_string - self.recommendations = recommendations + self.error_string = None + self.recommendations = None class MabFileFolderProtectedItem(ProtectedItem): @@ -8309,10 +8554,14 @@ class MabFileFolderProtectedItem(ProtectedItem): :type computer_name: str :param last_backup_status: Status of last backup operation. :type last_backup_status: str + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime :param protection_state: Protected, ProtectionStopped, IRPending or ProtectionError :type protection_state: str - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. + :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion + in UTC :type deferred_delete_sync_time_in_utc: long :param extended_info: Additional information with this backup item. :type extended_info: @@ -8341,16 +8590,18 @@ class MabFileFolderProtectedItem(ProtectedItem): 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'computer_name': {'key': 'computerName', 'type': 'str'}, 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'protection_state': {'key': 'protectionState', 'type': 'str'}, 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, protection_state: str=None, deferred_delete_sync_time_in_utc: int=None, extended_info=None, **kwargs) -> None: + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, last_backup_time=None, protection_state: str=None, deferred_delete_sync_time_in_utc: int=None, extended_info=None, **kwargs) -> None: super(MabFileFolderProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) self.friendly_name = friendly_name self.computer_name = computer_name self.last_backup_status = last_backup_status + self.last_backup_time = last_backup_time self.protection_state = protection_state self.deferred_delete_sync_time_in_utc = deferred_delete_sync_time_in_utc self.extended_info = extended_info @@ -8965,7 +9216,7 @@ class PreValidateEnableBackupRequest(Model): ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param resource_id: ARM Virtual Machine Id :type resource_id: str - :param vault_id: Specifies the arm resource id of the vault + :param vault_id: ARM id of the Recovery Services Vault :type vault_id: str :param properties: Configuration of VM if any needs to be validated like OS type etc @@ -9378,6 +9629,37 @@ def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties self.properties = properties +class RecoveryPointDiskConfiguration(Model): + """Disk configuration. + + :param number_of_disks_included_in_backup: Number of disks included in + backup + :type number_of_disks_included_in_backup: int + :param number_of_disks_attached_to_vm: Number of disks attached to the VM + :type number_of_disks_attached_to_vm: int + :param included_disk_list: Information of disks included in backup + :type included_disk_list: + list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] + :param excluded_disk_list: Information of disks excluded from backup + :type excluded_disk_list: + list[~azure.mgmt.recoveryservicesbackup.models.DiskInformation] + """ + + _attribute_map = { + 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, + 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, + 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, + 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, + } + + def __init__(self, *, number_of_disks_included_in_backup: int=None, number_of_disks_attached_to_vm: int=None, included_disk_list=None, excluded_disk_list=None, **kwargs) -> None: + super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) + self.number_of_disks_included_in_backup = number_of_disks_included_in_backup + self.number_of_disks_attached_to_vm = number_of_disks_attached_to_vm + self.included_disk_list = included_disk_list + self.excluded_disk_list = excluded_disk_list + + class RecoveryPointResource(Resource): """Base class for backup copies. Workload-specific backup copies are derived from this class. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py index a33c8e376acc..7d41f9f8ebb5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py @@ -12,19 +12,19 @@ from msrest.paging import Paged -class JobResourcePaged(Paged): +class RecoveryPointResourcePaged(Paged): """ - A paging container for iterating over a list of :class:`JobResource ` object + A paging container for iterating over a list of :class:`RecoveryPointResource ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[JobResource]'} + 'current_page': {'key': 'value', 'type': '[RecoveryPointResource]'} } def __init__(self, *args, **kwargs): - super(JobResourcePaged, self).__init__(*args, **kwargs) + super(RecoveryPointResourcePaged, self).__init__(*args, **kwargs) class ProtectionPolicyResourcePaged(Paged): """ A paging container for iterating over a list of :class:`ProtectionPolicyResource ` object @@ -38,6 +38,19 @@ class ProtectionPolicyResourcePaged(Paged): def __init__(self, *args, **kwargs): super(ProtectionPolicyResourcePaged, self).__init__(*args, **kwargs) +class JobResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`JobResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[JobResource]'} + } + + def __init__(self, *args, **kwargs): + + super(JobResourcePaged, self).__init__(*args, **kwargs) class ProtectedItemResourcePaged(Paged): """ A paging container for iterating over a list of :class:`ProtectedItemResource ` object @@ -116,19 +129,6 @@ class WorkloadItemResourcePaged(Paged): def __init__(self, *args, **kwargs): super(WorkloadItemResourcePaged, self).__init__(*args, **kwargs) -class RecoveryPointResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`RecoveryPointResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RecoveryPointResource]'} - } - - def __init__(self, *args, **kwargs): - - super(RecoveryPointResourcePaged, self).__init__(*args, **kwargs) class WorkloadProtectableItemResourcePaged(Paged): """ A paging container for iterating over a list of :class:`WorkloadProtectableItemResource ` object diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py index a3b22c3bdffb..ae5858f72a38 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py @@ -30,31 +30,13 @@ class HealthStatus(str, Enum): invalid = "Invalid" -class WorkloadType(str, Enum): - - invalid = "Invalid" - vm = "VM" - file_folder = "FileFolder" - azure_sql_db = "AzureSqlDb" - sqldb = "SQLDB" - exchange = "Exchange" - sharepoint = "Sharepoint" - vmware_vm = "VMwareVM" - system_state = "SystemState" - client = "Client" - generic_data_source = "GenericDataSource" - sql_data_base = "SQLDataBase" - azure_file_share = "AzureFileShare" - sap_hana_database = "SAPHanaDatabase" - sap_ase_database = "SAPAseDatabase" - - class RecoveryType(str, Enum): invalid = "Invalid" original_location = "OriginalLocation" alternate_location = "AlternateLocation" restore_disks = "RestoreDisks" + offline = "Offline" class CopyOptions(str, Enum): @@ -73,6 +55,34 @@ class RestoreRequestType(str, Enum): item_level_restore = "ItemLevelRestore" +class WorkloadType(str, Enum): + + invalid = "Invalid" + vm = "VM" + file_folder = "FileFolder" + azure_sql_db = "AzureSqlDb" + sqldb = "SQLDB" + exchange = "Exchange" + sharepoint = "Sharepoint" + vmware_vm = "VMwareVM" + system_state = "SystemState" + client = "Client" + generic_data_source = "GenericDataSource" + sql_data_base = "SQLDataBase" + azure_file_share = "AzureFileShare" + sap_hana_database = "SAPHanaDatabase" + sap_ase_database = "SAPAseDatabase" + + +class PolicyType(str, Enum): + + invalid = "Invalid" + full = "Full" + differential = "Differential" + log = "Log" + copy_only_full = "CopyOnlyFull" + + class JobSupportedAction(str, Enum): invalid = "Invalid" @@ -90,15 +100,6 @@ class ProtectedItemState(str, Enum): protection_paused = "ProtectionPaused" -class SupportStatus(str, Enum): - - invalid = "Invalid" - supported = "Supported" - default_off = "DefaultOFF" - default_on = "DefaultON" - not_supported = "NotSupported" - - class LastBackupStatus(str, Enum): invalid = "Invalid" @@ -116,13 +117,12 @@ class ProtectedItemHealthStatus(str, Enum): ir_pending = "IRPending" -class PolicyType(str, Enum): +class RestorePointType(str, Enum): invalid = "Invalid" full = "Full" - differential = "Differential" log = "Log" - copy_only_full = "CopyOnlyFull" + differential = "Differential" class OverwriteOptions(str, Enum): @@ -132,15 +132,11 @@ class OverwriteOptions(str, Enum): overwrite = "Overwrite" -class WorkloadItemType(str, Enum): +class RecoveryMode(str, Enum): invalid = "Invalid" - sql_instance = "SQLInstance" - sql_data_base = "SQLDataBase" - sap_hana_system = "SAPHanaSystem" - sap_hana_database = "SAPHanaDatabase" - sap_ase_system = "SAPAseSystem" - sap_ase_database = "SAPAseDatabase" + file_recovery = "FileRecovery" + workload_recovery = "WorkloadRecovery" class SQLDataDirectoryType(str, Enum): @@ -150,55 +146,42 @@ class SQLDataDirectoryType(str, Enum): log = "Log" -class UsagesUnit(str, Enum): +class StorageType(str, Enum): - count = "Count" - bytes = "Bytes" - seconds = "Seconds" - percent = "Percent" - count_per_second = "CountPerSecond" - bytes_per_second = "BytesPerSecond" + invalid = "Invalid" + geo_redundant = "GeoRedundant" + locally_redundant = "LocallyRedundant" -class DataSourceType(str, Enum): +class StorageTypeState(str, Enum): invalid = "Invalid" - vm = "VM" - file_folder = "FileFolder" - azure_sql_db = "AzureSqlDb" - sqldb = "SQLDB" - exchange = "Exchange" - sharepoint = "Sharepoint" - vmware_vm = "VMwareVM" - system_state = "SystemState" - client = "Client" - generic_data_source = "GenericDataSource" - sql_data_base = "SQLDataBase" - azure_file_share = "AzureFileShare" - sap_hana_database = "SAPHanaDatabase" - sap_ase_database = "SAPAseDatabase" + locked = "Locked" + unlocked = "Unlocked" -class ProtectionStatus(str, Enum): +class EnhancedSecurityState(str, Enum): invalid = "Invalid" - not_protected = "NotProtected" - protecting = "Protecting" - protected = "Protected" - protection_failed = "ProtectionFailed" + enabled = "Enabled" + disabled = "Disabled" -class FabricName(str, Enum): +class SoftDeleteFeatureState(str, Enum): invalid = "Invalid" - azure = "Azure" + enabled = "Enabled" + disabled = "Disabled" -class Type(str, Enum): +class RestorePointQueryType(str, Enum): invalid = "Invalid" - backup_protected_item_count_summary = "BackupProtectedItemCountSummary" - backup_protection_container_count_summary = "BackupProtectionContainerCountSummary" + full = "Full" + log = "Log" + differential = "Differential" + full_and_differential = "FullAndDifferential" + all = "All" class RetentionDurationType(str, Enum): @@ -210,6 +193,21 @@ class RetentionDurationType(str, Enum): years = "Years" +class RecoveryPointTierType(str, Enum): + + invalid = "Invalid" + instant_rp = "InstantRP" + hardened_rp = "HardenedRP" + + +class RecoveryPointTierStatus(str, Enum): + + invalid = "Invalid" + valid = "Valid" + disabled = "Disabled" + deleted = "Deleted" + + class BackupManagementType(str, Enum): invalid = "Invalid" @@ -244,6 +242,8 @@ class JobOperationType(str, Enum): restore = "Restore" disable_backup = "DisableBackup" delete_backup_data = "DeleteBackupData" + cross_region_restore = "CrossRegionRestore" + undelete = "Undelete" class DayOfWeek(str, Enum): @@ -361,11 +361,23 @@ class HttpStatusCode(str, Enum): http_version_not_supported = "HttpVersionNotSupported" -class ValidationStatus(str, Enum): +class DataSourceType(str, Enum): invalid = "Invalid" - succeeded = "Succeeded" - failed = "Failed" + vm = "VM" + file_folder = "FileFolder" + azure_sql_db = "AzureSqlDb" + sqldb = "SQLDB" + exchange = "Exchange" + sharepoint = "Sharepoint" + vmware_vm = "VMwareVM" + system_state = "SystemState" + client = "Client" + generic_data_source = "GenericDataSource" + sql_data_base = "SQLDataBase" + azure_file_share = "AzureFileShare" + sap_hana_database = "SAPHanaDatabase" + sap_ase_database = "SAPAseDatabase" class CreateMode(str, Enum): @@ -383,77 +395,107 @@ class HealthState(str, Enum): invalid = "Invalid" -class IntentItemType(str, Enum): +class ScheduleRunType(str, Enum): + + invalid = "Invalid" + daily = "Daily" + weekly = "Weekly" + + +class SupportStatus(str, Enum): + + invalid = "Invalid" + supported = "Supported" + default_off = "DefaultOFF" + default_on = "DefaultON" + not_supported = "NotSupported" + + +class WorkloadItemType(str, Enum): invalid = "Invalid" sql_instance = "SQLInstance" - sql_availability_group_container = "SQLAvailabilityGroupContainer" + sql_data_base = "SQLDataBase" + sap_hana_system = "SAPHanaSystem" + sap_hana_database = "SAPHanaDatabase" + sap_ase_system = "SAPAseSystem" + sap_ase_database = "SAPAseDatabase" -class ScheduleRunType(str, Enum): +class UsagesUnit(str, Enum): + + count = "Count" + bytes = "Bytes" + seconds = "Seconds" + percent = "Percent" + count_per_second = "CountPerSecond" + bytes_per_second = "BytesPerSecond" + + +class ProtectionStatus(str, Enum): invalid = "Invalid" - daily = "Daily" - weekly = "Weekly" + not_protected = "NotProtected" + protecting = "Protecting" + protected = "Protected" + protection_failed = "ProtectionFailed" -class AzureFileShareType(str, Enum): +class FabricName(str, Enum): invalid = "Invalid" - xsmb = "XSMB" - xsync = "XSync" + azure = "Azure" -class InquiryStatus(str, Enum): +class Type(str, Enum): invalid = "Invalid" - success = "Success" - failed = "Failed" + backup_protected_item_count_summary = "BackupProtectedItemCountSummary" + backup_protection_container_count_summary = "BackupProtectionContainerCountSummary" -class BackupType(str, Enum): +class ValidationStatus(str, Enum): invalid = "Invalid" - full = "Full" - differential = "Differential" - log = "Log" - copy_only_full = "CopyOnlyFull" + succeeded = "Succeeded" + failed = "Failed" -class OperationType(str, Enum): +class IntentItemType(str, Enum): invalid = "Invalid" - register = "Register" - reregister = "Reregister" + sql_instance = "SQLInstance" + sql_availability_group_container = "SQLAvailabilityGroupContainer" -class RestorePointType(str, Enum): +class AzureFileShareType(str, Enum): invalid = "Invalid" - full = "Full" - log = "Log" - differential = "Differential" + xsmb = "XSMB" + xsync = "XSync" -class StorageType(str, Enum): +class InquiryStatus(str, Enum): invalid = "Invalid" - geo_redundant = "GeoRedundant" - locally_redundant = "LocallyRedundant" + success = "Success" + failed = "Failed" -class StorageTypeState(str, Enum): +class BackupType(str, Enum): invalid = "Invalid" - locked = "Locked" - unlocked = "Unlocked" + full = "Full" + differential = "Differential" + log = "Log" + copy_only_full = "CopyOnlyFull" -class EnhancedSecurityState(str, Enum): +class OperationType(str, Enum): invalid = "Invalid" - enabled = "Enabled" - disabled = "Disabled" + register = "Register" + reregister = "Reregister" class ContainerType(str, Enum): @@ -475,31 +517,6 @@ class ContainerType(str, Enum): generic_container = "GenericContainer" -class RestorePointQueryType(str, Enum): - - invalid = "Invalid" - full = "Full" - log = "Log" - differential = "Differential" - full_and_differential = "FullAndDifferential" - all = "All" - - -class RecoveryPointTierType(str, Enum): - - invalid = "Invalid" - instant_rp = "InstantRP" - hardened_rp = "HardenedRP" - - -class RecoveryPointTierStatus(str, Enum): - - invalid = "Invalid" - valid = "Valid" - disabled = "Disabled" - deleted = "Deleted" - - class BackupItemType(str, Enum): invalid = "Invalid" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py index b7b5ec5c0953..111256c5d919 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py @@ -9,38 +9,38 @@ # regenerated. # -------------------------------------------------------------------------- -from ._protection_intent_operations import ProtectionIntentOperations -from ._backup_status_operations import BackupStatusOperations -from ._feature_support_operations import FeatureSupportOperations +from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations +from ._protected_items_operations import ProtectedItemsOperations +from ._protected_item_operation_results_operations import ProtectedItemOperationResultsOperations +from ._recovery_points_operations import RecoveryPointsOperations +from ._restores_operations import RestoresOperations +from ._backup_policies_operations import BackupPoliciesOperations +from ._protection_policies_operations import ProtectionPoliciesOperations +from ._protection_policy_operation_results_operations import ProtectionPolicyOperationResultsOperations from ._backup_jobs_operations import BackupJobsOperations from ._job_details_operations import JobDetailsOperations +from ._job_cancellations_operations import JobCancellationsOperations +from ._job_operation_results_operations import JobOperationResultsOperations from ._export_jobs_operation_results_operations import ExportJobsOperationResultsOperations from ._jobs_operations import JobsOperations -from ._backup_policies_operations import BackupPoliciesOperations from ._backup_protected_items_operations import BackupProtectedItemsOperations +from ._operation_operations import OperationOperations +from ._protection_intent_operations import ProtectionIntentOperations +from ._backup_status_operations import BackupStatusOperations +from ._feature_support_operations import FeatureSupportOperations from ._backup_protection_intent_operations import BackupProtectionIntentOperations from ._backup_usage_summaries_operations import BackupUsageSummariesOperations -from ._operation_operations import OperationOperations -from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations from ._backup_engines_operations import BackupEnginesOperations from ._protection_container_refresh_operation_results_operations import ProtectionContainerRefreshOperationResultsOperations from ._protectable_containers_operations import ProtectableContainersOperations from ._protection_containers_operations import ProtectionContainersOperations from ._backup_workload_items_operations import BackupWorkloadItemsOperations from ._protection_container_operation_results_operations import ProtectionContainerOperationResultsOperations -from ._protected_items_operations import ProtectedItemsOperations from ._backups_operations import BackupsOperations -from ._protected_item_operation_results_operations import ProtectedItemOperationResultsOperations from ._protected_item_operation_statuses_operations import ProtectedItemOperationStatusesOperations -from ._recovery_points_operations import RecoveryPointsOperations from ._item_level_recovery_connections_operations import ItemLevelRecoveryConnectionsOperations -from ._restores_operations import RestoresOperations -from ._job_cancellations_operations import JobCancellationsOperations -from ._job_operation_results_operations import JobOperationResultsOperations from ._backup_operation_results_operations import BackupOperationResultsOperations from ._backup_operation_statuses_operations import BackupOperationStatusesOperations -from ._protection_policies_operations import ProtectionPoliciesOperations -from ._protection_policy_operation_results_operations import ProtectionPolicyOperationResultsOperations from ._protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations from ._backup_protectable_items_operations import BackupProtectableItemsOperations from ._backup_protection_containers_operations import BackupProtectionContainersOperations @@ -49,38 +49,38 @@ from ._operations import Operations __all__ = [ - 'ProtectionIntentOperations', - 'BackupStatusOperations', - 'FeatureSupportOperations', + 'BackupResourceVaultConfigsOperations', + 'ProtectedItemsOperations', + 'ProtectedItemOperationResultsOperations', + 'RecoveryPointsOperations', + 'RestoresOperations', + 'BackupPoliciesOperations', + 'ProtectionPoliciesOperations', + 'ProtectionPolicyOperationResultsOperations', 'BackupJobsOperations', 'JobDetailsOperations', + 'JobCancellationsOperations', + 'JobOperationResultsOperations', 'ExportJobsOperationResultsOperations', 'JobsOperations', - 'BackupPoliciesOperations', 'BackupProtectedItemsOperations', + 'OperationOperations', + 'ProtectionIntentOperations', + 'BackupStatusOperations', + 'FeatureSupportOperations', 'BackupProtectionIntentOperations', 'BackupUsageSummariesOperations', - 'OperationOperations', - 'BackupResourceVaultConfigsOperations', 'BackupEnginesOperations', 'ProtectionContainerRefreshOperationResultsOperations', 'ProtectableContainersOperations', 'ProtectionContainersOperations', 'BackupWorkloadItemsOperations', 'ProtectionContainerOperationResultsOperations', - 'ProtectedItemsOperations', 'BackupsOperations', - 'ProtectedItemOperationResultsOperations', 'ProtectedItemOperationStatusesOperations', - 'RecoveryPointsOperations', 'ItemLevelRecoveryConnectionsOperations', - 'RestoresOperations', - 'JobCancellationsOperations', - 'JobOperationResultsOperations', 'BackupOperationResultsOperations', 'BackupOperationStatusesOperations', - 'ProtectionPoliciesOperations', - 'ProtectionPolicyOperationResultsOperations', 'ProtectionPolicyOperationStatusesOperations', 'BackupProtectableItemsOperations', 'BackupProtectionContainersOperations', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py index b85c823e402f..77860cb375cb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py @@ -25,7 +25,7 @@ class BackupJobsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py index 9b28570e03a1..b85b14f06bd1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py @@ -25,7 +25,7 @@ class BackupPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py index 7d30345cc4ca..bd8af177499f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py @@ -25,7 +25,7 @@ class BackupProtectedItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py index 86306ef191ec..b9cfc2211a6f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py @@ -25,7 +25,7 @@ class BackupResourceVaultConfigsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py index e8ae9eeee4ac..c21248682905 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py @@ -25,7 +25,7 @@ class ExportJobsOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py index e6282eeb0ffb..2b2cf9c1e7d5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py @@ -25,7 +25,7 @@ class JobCancellationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py index fcf4125351c9..9eef4de16d47 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py @@ -25,7 +25,7 @@ class JobDetailsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py index 544c94607b49..3717f5d1d0d4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py @@ -25,7 +25,7 @@ class JobOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,14 +35,13 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config def get( self, vault_name, resource_group_name, job_name, operation_id, custom_headers=None, raw=False, **operation_config): """Fetches the result of any operation. - the operation. :param vault_name: The name of the recovery services vault. :type vault_name: str diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py index b8ff1a0bc647..9aa776efc4fb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py @@ -25,7 +25,7 @@ class JobsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py index ddcbaae0731b..7eaa54685dba 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py @@ -25,7 +25,7 @@ class OperationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2017-07-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2017-07-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py index 85de84b213a8..7b2aaf27f7d8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectedItemOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py index a5c184ce7089..c60a04741825 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py @@ -25,7 +25,7 @@ class ProtectedItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py index c55db7c07df4..4bab40f40828 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py @@ -25,7 +25,6 @@ class ProtectionPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". """ models = models @@ -35,7 +34,6 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" self.config = config @@ -64,6 +62,8 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2019-05-13" + # Construct URL url = self.get.metadata['url'] path_format_arguments = { @@ -76,7 +76,7 @@ def get( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -135,6 +135,8 @@ def create_or_update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2019-05-13" + # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { @@ -147,7 +149,7 @@ def create_or_update( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -205,6 +207,8 @@ def delete( :rtype: None or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2016-12-01" + # Construct URL url = self.delete.metadata['url'] path_format_arguments = { @@ -217,7 +221,7 @@ def delete( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py index e10cf74f18a9..d20d9cfaf569 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectionPolicyOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py index 468ea33d35b8..8241a1b452a2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py @@ -25,7 +25,7 @@ class RecoveryPointsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py index 9a57478951c1..0d4495140439 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py @@ -25,7 +25,7 @@ class RestoresOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2016-12-01". + :ivar api_version: Client Api Version. Constant value: "2019-05-13". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-12-01" + self.api_version = "2019-05-13" self.config = config