diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.rst b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.rst index a5c1578d4154..67895326f3e4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.rst +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Recovery Services Backup Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py index dc0eafa31578..532f7573f13f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .recovery_services_backup_client import RecoveryServicesBackupClient -from .version import VERSION +from ._configuration import RecoveryServicesBackupClientConfiguration +from ._recovery_services_backup_client import RecoveryServicesBackupClient +__all__ = ['RecoveryServicesBackupClient', 'RecoveryServicesBackupClientConfiguration'] -__all__ = ['RecoveryServicesBackupClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py new file mode 100644 index 000000000000..30087335ec85 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class RecoveryServicesBackupClientConfiguration(AzureConfiguration): + """Configuration for RecoveryServicesBackupClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription Id. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(RecoveryServicesBackupClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-recoveryservicesbackup/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id 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 similarity index 74% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/recovery_services_backup_client.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py index 3daeb404eb15..fe844d1a3a70 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 @@ -11,79 +11,47 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.protection_intent_operations import ProtectionIntentOperations -from .operations.backup_status_operations import BackupStatusOperations -from .operations.feature_support_operations import FeatureSupportOperations -from .operations.backup_jobs_operations import BackupJobsOperations -from .operations.job_details_operations import JobDetailsOperations -from .operations.export_jobs_operation_results_operations import ExportJobsOperationResultsOperations -from .operations.jobs_operations import JobsOperations -from .operations.backup_policies_operations import BackupPoliciesOperations -from .operations.backup_protected_items_operations import BackupProtectedItemsOperations -from .operations.backup_protection_intent_operations import BackupProtectionIntentOperations -from .operations.backup_usage_summaries_operations import BackupUsageSummariesOperations -from .operations.operation_operations import OperationOperations -from .operations.backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations -from .operations.backup_engines_operations import BackupEnginesOperations -from .operations.protection_container_refresh_operation_results_operations import ProtectionContainerRefreshOperationResultsOperations -from .operations.protectable_containers_operations import ProtectableContainersOperations -from .operations.protection_containers_operations import ProtectionContainersOperations -from .operations.backup_workload_items_operations import BackupWorkloadItemsOperations -from .operations.protection_container_operation_results_operations import ProtectionContainerOperationResultsOperations -from .operations.protected_items_operations import ProtectedItemsOperations -from .operations.backups_operations import BackupsOperations -from .operations.protected_item_operation_results_operations import ProtectedItemOperationResultsOperations -from .operations.protected_item_operation_statuses_operations import ProtectedItemOperationStatusesOperations -from .operations.recovery_points_operations import RecoveryPointsOperations -from .operations.item_level_recovery_connections_operations import ItemLevelRecoveryConnectionsOperations -from .operations.restores_operations import RestoresOperations -from .operations.job_cancellations_operations import JobCancellationsOperations -from .operations.job_operation_results_operations import JobOperationResultsOperations -from .operations.backup_operation_results_operations import BackupOperationResultsOperations -from .operations.backup_operation_statuses_operations import BackupOperationStatusesOperations -from .operations.protection_policies_operations import ProtectionPoliciesOperations -from .operations.protection_policy_operation_results_operations import ProtectionPolicyOperationResultsOperations -from .operations.protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations -from .operations.backup_protectable_items_operations import BackupProtectableItemsOperations -from .operations.backup_protection_containers_operations import BackupProtectionContainersOperations -from .operations.security_pi_ns_operations import SecurityPINsOperations -from .operations.backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations -from .operations.operations import Operations -from . import models - - -class RecoveryServicesBackupClientConfiguration(AzureConfiguration): - """Configuration for RecoveryServicesBackupClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription Id. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(RecoveryServicesBackupClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-recoveryservicesbackup/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import RecoveryServicesBackupClientConfiguration +from .operations import ProtectionIntentOperations +from .operations import BackupStatusOperations +from .operations import FeatureSupportOperations +from .operations import BackupJobsOperations +from .operations import JobDetailsOperations +from .operations import ExportJobsOperationResultsOperations +from .operations import JobsOperations +from .operations import BackupPoliciesOperations +from .operations import BackupProtectedItemsOperations +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 +from .operations import SecurityPINsOperations +from .operations import BackupResourceStorageConfigsOperations +from .operations import Operations +from . import models class RecoveryServicesBackupClient(SDKClient): 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 1bcf9d1eb5ce..bd35edfd8034 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 @@ -10,474 +10,474 @@ # -------------------------------------------------------------------------- try: - from .azure_backup_goal_feature_support_request_py3 import AzureBackupGoalFeatureSupportRequest - from .azure_fileshare_protected_item_extended_info_py3 import AzureFileshareProtectedItemExtendedInfo - from .azure_fileshare_protected_item_py3 import AzureFileshareProtectedItem - from .schedule_policy_py3 import SchedulePolicy - from .retention_policy_py3 import RetentionPolicy - from .azure_file_share_protection_policy_py3 import AzureFileShareProtectionPolicy - from .restore_file_specs_py3 import RestoreFileSpecs - from .target_afs_restore_info_py3 import TargetAFSRestoreInfo - from .azure_file_share_restore_request_py3 import AzureFileShareRestoreRequest - from .azure_iaa_sclassic_compute_vm_protected_item_py3 import AzureIaaSClassicComputeVMProtectedItem - from .azure_iaa_scompute_vm_protected_item_py3 import AzureIaaSComputeVMProtectedItem - from .azure_iaa_svm_error_info_py3 import AzureIaaSVMErrorInfo - from .azure_iaa_svm_health_details_py3 import AzureIaaSVMHealthDetails - from .azure_iaa_svm_job_task_details_py3 import AzureIaaSVMJobTaskDetails - from .azure_iaa_svm_job_extended_info_py3 import AzureIaaSVMJobExtendedInfo - from .azure_iaa_svm_job_py3 import AzureIaaSVMJob - from .azure_iaa_svm_protected_item_extended_info_py3 import AzureIaaSVMProtectedItemExtendedInfo - from .azure_iaa_svm_protected_item_py3 import AzureIaaSVMProtectedItem - from .azure_iaa_svm_protection_policy_py3 import AzureIaaSVMProtectionPolicy - from .azure_recovery_service_vault_protection_intent_py3 import AzureRecoveryServiceVaultProtectionIntent - from .azure_resource_protection_intent_py3 import AzureResourceProtectionIntent - from .azure_sql_protected_item_extended_info_py3 import AzureSqlProtectedItemExtendedInfo - from .azure_sql_protected_item_py3 import AzureSqlProtectedItem - from .azure_sql_protection_policy_py3 import AzureSqlProtectionPolicy - from .azure_storage_error_info_py3 import AzureStorageErrorInfo - from .azure_storage_job_task_details_py3 import AzureStorageJobTaskDetails - from .azure_storage_job_extended_info_py3 import AzureStorageJobExtendedInfo - from .azure_storage_job_py3 import AzureStorageJob - from .azure_vm_resource_feature_support_request_py3 import AzureVMResourceFeatureSupportRequest - from .azure_vm_resource_feature_support_response_py3 import AzureVMResourceFeatureSupportResponse - from .error_detail_py3 import ErrorDetail - from .azure_vm_workload_protected_item_extended_info_py3 import AzureVmWorkloadProtectedItemExtendedInfo - from .azure_vm_workload_protected_item_py3 import AzureVmWorkloadProtectedItem - from .settings_py3 import Settings - from .sub_protection_policy_py3 import SubProtectionPolicy - from .azure_vm_workload_protection_policy_py3 import AzureVmWorkloadProtectionPolicy - from .azure_vm_workload_sap_ase_database_protected_item_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem - from .azure_vm_workload_sap_hana_database_protected_item_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from .azure_vm_workload_sql_database_protected_item_py3 import AzureVmWorkloadSQLDatabaseProtectedItem - from .azure_workload_auto_protection_intent_py3 import AzureWorkloadAutoProtectionIntent - from .azure_workload_error_info_py3 import AzureWorkloadErrorInfo - from .azure_workload_job_task_details_py3 import AzureWorkloadJobTaskDetails - from .azure_workload_job_extended_info_py3 import AzureWorkloadJobExtendedInfo - from .azure_workload_job_py3 import AzureWorkloadJob - from .azure_workload_point_in_time_restore_request_py3 import AzureWorkloadPointInTimeRestoreRequest - from .target_restore_info_py3 import TargetRestoreInfo - from .azure_workload_restore_request_py3 import AzureWorkloadRestoreRequest - from .azure_workload_sap_hana_point_in_time_restore_request_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from .azure_workload_sap_hana_restore_request_py3 import AzureWorkloadSAPHanaRestoreRequest - from .azure_workload_sql_auto_protection_intent_py3 import AzureWorkloadSQLAutoProtectionIntent - from .azure_workload_sql_point_in_time_restore_request_py3 import AzureWorkloadSQLPointInTimeRestoreRequest - from .sql_data_directory_mapping_py3 import SQLDataDirectoryMapping - from .azure_workload_sql_restore_request_py3 import AzureWorkloadSQLRestoreRequest - from .name_info_py3 import NameInfo - from .backup_management_usage_py3 import BackupManagementUsage - from .backup_status_request_py3 import BackupStatusRequest - from .backup_status_response_py3 import BackupStatusResponse - from .bms_backup_summaries_query_object_py3 import BMSBackupSummariesQueryObject - from .day_py3 import Day - from .daily_retention_format_py3 import DailyRetentionFormat - from .retention_duration_py3 import RetentionDuration - from .daily_retention_schedule_py3 import DailyRetentionSchedule - from .dpm_error_info_py3 import DpmErrorInfo - from .dpm_job_task_details_py3 import DpmJobTaskDetails - from .dpm_job_extended_info_py3 import DpmJobExtendedInfo - from .dpm_job_py3 import DpmJob - from .dpm_protected_item_extended_info_py3 import DPMProtectedItemExtendedInfo - from .dpm_protected_item_py3 import DPMProtectedItem - from .encryption_details_py3 import EncryptionDetails - from .export_jobs_operation_result_info_py3 import ExportJobsOperationResultInfo - from .feature_support_request_py3 import FeatureSupportRequest - from .generic_protected_item_py3 import GenericProtectedItem - from .generic_protection_policy_py3 import GenericProtectionPolicy - from .iaas_vm_restore_request_py3 import IaasVMRestoreRequest - from .job_py3 import Job - from .job_query_object_py3 import JobQueryObject - from .job_resource_py3 import JobResource - from .log_schedule_policy_py3 import LogSchedulePolicy - from .weekly_retention_schedule_py3 import WeeklyRetentionSchedule - from .weekly_retention_format_py3 import WeeklyRetentionFormat - from .monthly_retention_schedule_py3 import MonthlyRetentionSchedule - from .yearly_retention_schedule_py3 import YearlyRetentionSchedule - from .long_term_retention_policy_py3 import LongTermRetentionPolicy - from .long_term_schedule_policy_py3 import LongTermSchedulePolicy - from .mab_error_info_py3 import MabErrorInfo - from .mab_file_folder_protected_item_extended_info_py3 import MabFileFolderProtectedItemExtendedInfo - from .mab_file_folder_protected_item_py3 import MabFileFolderProtectedItem - from .mab_job_task_details_py3 import MabJobTaskDetails - from .mab_job_extended_info_py3 import MabJobExtendedInfo - from .mab_job_py3 import MabJob - from .mab_protection_policy_py3 import MabProtectionPolicy - from .operation_result_info_py3 import OperationResultInfo - from .operation_result_info_base_py3 import OperationResultInfoBase - from .operation_result_info_base_resource_py3 import OperationResultInfoBaseResource - from .operation_worker_response_py3 import OperationWorkerResponse - from .pre_validate_enable_backup_request_py3 import PreValidateEnableBackupRequest - from .pre_validate_enable_backup_response_py3 import PreValidateEnableBackupResponse - from .protected_item_py3 import ProtectedItem - from .protected_item_query_object_py3 import ProtectedItemQueryObject - from .protected_item_resource_py3 import ProtectedItemResource - from .protection_intent_py3 import ProtectionIntent - from .protection_intent_query_object_py3 import ProtectionIntentQueryObject - from .protection_intent_resource_py3 import ProtectionIntentResource - from .protection_policy_py3 import ProtectionPolicy - from .protection_policy_query_object_py3 import ProtectionPolicyQueryObject - from .protection_policy_resource_py3 import ProtectionPolicyResource - from .resource_py3 import Resource - from .resource_list_py3 import ResourceList - from .restore_request_py3 import RestoreRequest - from .simple_retention_policy_py3 import SimpleRetentionPolicy - from .simple_schedule_policy_py3 import SimpleSchedulePolicy - from .validate_iaas_vm_restore_operation_request_py3 import ValidateIaasVMRestoreOperationRequest - from .validate_operation_request_py3 import ValidateOperationRequest - from .validate_operation_response_py3 import ValidateOperationResponse - from .validate_operations_response_py3 import ValidateOperationsResponse - from .validate_restore_operation_request_py3 import ValidateRestoreOperationRequest - from .azure_backup_server_container_py3 import AzureBackupServerContainer - from .azure_backup_server_engine_py3 import AzureBackupServerEngine - from .azure_file_share_backup_request_py3 import AzureFileShareBackupRequest - from .azure_file_share_protectable_item_py3 import AzureFileShareProtectableItem - from .azure_file_share_recovery_point_py3 import AzureFileShareRecoveryPoint - from .azure_iaa_sclassic_compute_vm_container_py3 import AzureIaaSClassicComputeVMContainer - from .azure_iaa_sclassic_compute_vm_protectable_item_py3 import AzureIaaSClassicComputeVMProtectableItem - from .azure_iaa_scompute_vm_container_py3 import AzureIaaSComputeVMContainer - from .azure_iaa_scompute_vm_protectable_item_py3 import AzureIaaSComputeVMProtectableItem - from .azure_sqlag_workload_container_protection_container_py3 import AzureSQLAGWorkloadContainerProtectionContainer - from .azure_sql_container_py3 import AzureSqlContainer - from .azure_storage_container_py3 import AzureStorageContainer - from .azure_storage_protectable_container_py3 import AzureStorageProtectableContainer - from .azure_vm_app_container_protectable_container_py3 import AzureVMAppContainerProtectableContainer - from .azure_vm_app_container_protection_container_py3 import AzureVMAppContainerProtectionContainer - from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - from .pre_backup_validation_py3 import PreBackupValidation - from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - from .azure_vm_workload_sap_ase_database_protectable_item_py3 import AzureVmWorkloadSAPAseDatabaseProtectableItem - from .azure_vm_workload_sap_ase_database_workload_item_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem - from .azure_vm_workload_sap_ase_system_protectable_item_py3 import AzureVmWorkloadSAPAseSystemProtectableItem - from .azure_vm_workload_sap_ase_system_workload_item_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem - from .azure_vm_workload_sap_hana_database_protectable_item_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem - from .azure_vm_workload_sap_hana_database_workload_item_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem - from .azure_vm_workload_sap_hana_system_protectable_item_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem - from .azure_vm_workload_sap_hana_system_workload_item_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem - from .azure_vm_workload_sql_availability_group_protectable_item_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem - from .azure_vm_workload_sql_database_protectable_item_py3 import AzureVmWorkloadSQLDatabaseProtectableItem - from .azure_vm_workload_sql_database_workload_item_py3 import AzureVmWorkloadSQLDatabaseWorkloadItem - from .azure_vm_workload_sql_instance_protectable_item_py3 import AzureVmWorkloadSQLInstanceProtectableItem - from .sql_data_directory_py3 import SQLDataDirectory - from .azure_vm_workload_sql_instance_workload_item_py3 import AzureVmWorkloadSQLInstanceWorkloadItem - from .azure_workload_backup_request_py3 import AzureWorkloadBackupRequest - from .inquiry_validation_py3 import InquiryValidation - from .workload_inquiry_details_py3 import WorkloadInquiryDetails - from .inquiry_info_py3 import InquiryInfo - from .distributed_nodes_info_py3 import DistributedNodesInfo - from .azure_workload_container_extended_info_py3 import AzureWorkloadContainerExtendedInfo - from .azure_workload_container_py3 import AzureWorkloadContainer - from .point_in_time_range_py3 import PointInTimeRange - from .azure_workload_point_in_time_recovery_point_py3 import AzureWorkloadPointInTimeRecoveryPoint - from .azure_workload_recovery_point_py3 import AzureWorkloadRecoveryPoint - from .azure_workload_sap_hana_point_in_time_recovery_point_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from .azure_workload_sap_hana_recovery_point_py3 import AzureWorkloadSAPHanaRecoveryPoint - from .azure_workload_sql_point_in_time_recovery_point_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint - from .azure_workload_sql_recovery_point_extended_info_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo - from .azure_workload_sql_recovery_point_py3 import AzureWorkloadSQLRecoveryPoint - from .backup_engine_extended_info_py3 import BackupEngineExtendedInfo - from .backup_engine_base_py3 import BackupEngineBase - from .backup_engine_base_resource_py3 import BackupEngineBaseResource - from .backup_request_py3 import BackupRequest - from .backup_request_resource_py3 import BackupRequestResource - from .backup_resource_config_py3 import BackupResourceConfig - from .backup_resource_config_resource_py3 import BackupResourceConfigResource - from .backup_resource_vault_config_py3 import BackupResourceVaultConfig - from .backup_resource_vault_config_resource_py3 import BackupResourceVaultConfigResource - from .bek_details_py3 import BEKDetails - from .bms_backup_engine_query_object_py3 import BMSBackupEngineQueryObject - from .bms_backup_engines_query_object_py3 import BMSBackupEnginesQueryObject - from .bms_container_query_object_py3 import BMSContainerQueryObject - from .bms_containers_inquiry_query_object_py3 import BMSContainersInquiryQueryObject - from .bmspo_query_object_py3 import BMSPOQueryObject - from .bms_refresh_containers_query_object_py3 import BMSRefreshContainersQueryObject - from .bmsrp_query_object_py3 import BMSRPQueryObject - from .bms_workload_item_query_object_py3 import BMSWorkloadItemQueryObject - from .client_script_for_connect_py3 import ClientScriptForConnect - from .container_identity_info_py3 import ContainerIdentityInfo - from .dpm_backup_engine_py3 import DpmBackupEngine - from .dpm_container_extended_info_py3 import DPMContainerExtendedInfo - from .dpm_container_py3 import DpmContainer - from .generic_container_extended_info_py3 import GenericContainerExtendedInfo - from .generic_container_py3 import GenericContainer - from .generic_recovery_point_py3 import GenericRecoveryPoint - from .get_protected_item_query_object_py3 import GetProtectedItemQueryObject - from .iaas_vm_backup_request_py3 import IaasVMBackupRequest - from .iaa_svm_container_py3 import IaaSVMContainer - from .iaas_vmilr_registration_request_py3 import IaasVMILRRegistrationRequest - from .iaa_svm_protectable_item_py3 import IaaSVMProtectableItem - from .kek_details_py3 import KEKDetails - from .key_and_secret_details_py3 import KeyAndSecretDetails - from .recovery_point_tier_information_py3 import RecoveryPointTierInformation - from .iaas_vm_recovery_point_py3 import IaasVMRecoveryPoint - from .ilr_request_py3 import ILRRequest - from .ilr_request_resource_py3 import ILRRequestResource - from .instant_item_recovery_target_py3 import InstantItemRecoveryTarget - from .mab_container_extended_info_py3 import MabContainerExtendedInfo - from .mab_container_health_details_py3 import MABContainerHealthDetails - from .mab_container_py3 import MabContainer - from .operation_status_error_py3 import OperationStatusError - from .operation_status_extended_info_py3 import OperationStatusExtendedInfo - from .operation_status_py3 import OperationStatus - from .operation_status_job_extended_info_py3 import OperationStatusJobExtendedInfo - from .operation_status_jobs_extended_info_py3 import OperationStatusJobsExtendedInfo - from .operation_status_provision_ilr_extended_info_py3 import OperationStatusProvisionILRExtendedInfo - from .protectable_container_py3 import ProtectableContainer - from .protectable_container_resource_py3 import ProtectableContainerResource - from .protection_container_py3 import ProtectionContainer - from .protection_container_resource_py3 import ProtectionContainerResource - from .recovery_point_py3 import RecoveryPoint - from .recovery_point_resource_py3 import RecoveryPointResource - from .restore_request_resource_py3 import RestoreRequestResource - from .token_information_py3 import TokenInformation - from .workload_item_py3 import WorkloadItem - from .workload_item_resource_py3 import WorkloadItemResource - from .workload_protectable_item_py3 import WorkloadProtectableItem - from .workload_protectable_item_resource_py3 import WorkloadProtectableItemResource - from .client_discovery_display_py3 import ClientDiscoveryDisplay - from .client_discovery_for_log_specification_py3 import ClientDiscoveryForLogSpecification - from .client_discovery_for_service_specification_py3 import ClientDiscoveryForServiceSpecification - from .client_discovery_for_properties_py3 import ClientDiscoveryForProperties - from .client_discovery_value_for_single_api_py3 import ClientDiscoveryValueForSingleApi + from ._models_py3 import AzureBackupGoalFeatureSupportRequest + from ._models_py3 import AzureBackupServerContainer + from ._models_py3 import AzureBackupServerEngine + from ._models_py3 import AzureFileShareBackupRequest + from ._models_py3 import AzureFileShareProtectableItem + from ._models_py3 import AzureFileshareProtectedItem + from ._models_py3 import AzureFileshareProtectedItemExtendedInfo + from ._models_py3 import AzureFileShareProtectionPolicy + from ._models_py3 import AzureFileShareRecoveryPoint + from ._models_py3 import AzureFileShareRestoreRequest + from ._models_py3 import AzureIaaSClassicComputeVMContainer + from ._models_py3 import AzureIaaSClassicComputeVMProtectableItem + from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem + from ._models_py3 import AzureIaaSComputeVMContainer + from ._models_py3 import AzureIaaSComputeVMProtectableItem + from ._models_py3 import AzureIaaSComputeVMProtectedItem + from ._models_py3 import AzureIaaSVMErrorInfo + from ._models_py3 import AzureIaaSVMHealthDetails + from ._models_py3 import AzureIaaSVMJob + from ._models_py3 import AzureIaaSVMJobExtendedInfo + from ._models_py3 import AzureIaaSVMJobTaskDetails + from ._models_py3 import AzureIaaSVMProtectedItem + from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo + from ._models_py3 import AzureIaaSVMProtectionPolicy + from ._models_py3 import AzureRecoveryServiceVaultProtectionIntent + from ._models_py3 import AzureResourceProtectionIntent + from ._models_py3 import AzureSQLAGWorkloadContainerProtectionContainer + from ._models_py3 import AzureSqlContainer + from ._models_py3 import AzureSqlProtectedItem + from ._models_py3 import AzureSqlProtectedItemExtendedInfo + from ._models_py3 import AzureSqlProtectionPolicy + from ._models_py3 import AzureStorageContainer + from ._models_py3 import AzureStorageErrorInfo + from ._models_py3 import AzureStorageJob + from ._models_py3 import AzureStorageJobExtendedInfo + from ._models_py3 import AzureStorageJobTaskDetails + from ._models_py3 import AzureStorageProtectableContainer + from ._models_py3 import AzureVMAppContainerProtectableContainer + from ._models_py3 import AzureVMAppContainerProtectionContainer + from ._models_py3 import AzureVMResourceFeatureSupportRequest + from ._models_py3 import AzureVMResourceFeatureSupportResponse + from ._models_py3 import AzureVmWorkloadItem + from ._models_py3 import AzureVmWorkloadProtectableItem + 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 + from ._models_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem + from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem + from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem + from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem + from ._models_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem + from ._models_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem + from ._models_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem + from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectableItem + from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem + from ._models_py3 import AzureVmWorkloadSQLDatabaseWorkloadItem + from ._models_py3 import AzureVmWorkloadSQLInstanceProtectableItem + from ._models_py3 import AzureVmWorkloadSQLInstanceWorkloadItem + from ._models_py3 import AzureWorkloadAutoProtectionIntent + from ._models_py3 import AzureWorkloadBackupRequest + from ._models_py3 import AzureWorkloadContainer + from ._models_py3 import AzureWorkloadContainerExtendedInfo + from ._models_py3 import AzureWorkloadErrorInfo + from ._models_py3 import AzureWorkloadJob + from ._models_py3 import AzureWorkloadJobExtendedInfo + from ._models_py3 import AzureWorkloadJobTaskDetails + from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint + from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest + from ._models_py3 import AzureWorkloadRecoveryPoint + from ._models_py3 import AzureWorkloadRestoreRequest + from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint + from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest + from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint + from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest + from ._models_py3 import AzureWorkloadSQLAutoProtectionIntent + from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint + from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest + from ._models_py3 import AzureWorkloadSQLRecoveryPoint + from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo + from ._models_py3 import AzureWorkloadSQLRestoreRequest + from ._models_py3 import BackupEngineBase + from ._models_py3 import BackupEngineBaseResource + from ._models_py3 import BackupEngineExtendedInfo + from ._models_py3 import BackupManagementUsage + from ._models_py3 import BackupRequest + from ._models_py3 import BackupRequestResource + from ._models_py3 import BackupResourceConfig + from ._models_py3 import BackupResourceConfigResource + from ._models_py3 import BackupResourceVaultConfig + from ._models_py3 import BackupResourceVaultConfigResource + from ._models_py3 import BackupStatusRequest + from ._models_py3 import BackupStatusResponse + from ._models_py3 import BEKDetails + from ._models_py3 import BMSBackupEngineQueryObject + from ._models_py3 import BMSBackupEnginesQueryObject + from ._models_py3 import BMSBackupSummariesQueryObject + from ._models_py3 import BMSContainerQueryObject + from ._models_py3 import BMSContainersInquiryQueryObject + from ._models_py3 import BMSPOQueryObject + from ._models_py3 import BMSRefreshContainersQueryObject + from ._models_py3 import BMSRPQueryObject + from ._models_py3 import BMSWorkloadItemQueryObject + from ._models_py3 import ClientDiscoveryDisplay + from ._models_py3 import ClientDiscoveryForLogSpecification + from ._models_py3 import ClientDiscoveryForProperties + from ._models_py3 import ClientDiscoveryForServiceSpecification + from ._models_py3 import ClientDiscoveryValueForSingleApi + from ._models_py3 import ClientScriptForConnect + from ._models_py3 import ContainerIdentityInfo + from ._models_py3 import DailyRetentionFormat + from ._models_py3 import DailyRetentionSchedule + from ._models_py3 import Day + from ._models_py3 import DistributedNodesInfo + from ._models_py3 import DpmBackupEngine + from ._models_py3 import DpmContainer + from ._models_py3 import DPMContainerExtendedInfo + from ._models_py3 import DpmErrorInfo + from ._models_py3 import DpmJob + from ._models_py3 import DpmJobExtendedInfo + from ._models_py3 import DpmJobTaskDetails + from ._models_py3 import DPMProtectedItem + from ._models_py3 import DPMProtectedItemExtendedInfo + from ._models_py3 import EncryptionDetails + from ._models_py3 import ErrorDetail + from ._models_py3 import ExportJobsOperationResultInfo + from ._models_py3 import FeatureSupportRequest + from ._models_py3 import GenericContainer + from ._models_py3 import GenericContainerExtendedInfo + from ._models_py3 import GenericProtectedItem + from ._models_py3 import GenericProtectionPolicy + from ._models_py3 import GenericRecoveryPoint + from ._models_py3 import GetProtectedItemQueryObject + from ._models_py3 import IaasVMBackupRequest + from ._models_py3 import IaaSVMContainer + from ._models_py3 import IaasVMILRRegistrationRequest + from ._models_py3 import IaaSVMProtectableItem + from ._models_py3 import IaasVMRecoveryPoint + from ._models_py3 import IaasVMRestoreRequest + from ._models_py3 import ILRRequest + from ._models_py3 import ILRRequestResource + from ._models_py3 import InquiryInfo + from ._models_py3 import InquiryValidation + from ._models_py3 import InstantItemRecoveryTarget + from ._models_py3 import Job + from ._models_py3 import JobQueryObject + from ._models_py3 import JobResource + from ._models_py3 import KEKDetails + from ._models_py3 import KeyAndSecretDetails + from ._models_py3 import LogSchedulePolicy + from ._models_py3 import LongTermRetentionPolicy + from ._models_py3 import LongTermSchedulePolicy + from ._models_py3 import MabContainer + from ._models_py3 import MabContainerExtendedInfo + from ._models_py3 import MABContainerHealthDetails + from ._models_py3 import MabErrorInfo + from ._models_py3 import MabFileFolderProtectedItem + from ._models_py3 import MabFileFolderProtectedItemExtendedInfo + from ._models_py3 import MabJob + from ._models_py3 import MabJobExtendedInfo + from ._models_py3 import MabJobTaskDetails + from ._models_py3 import MabProtectionPolicy + from ._models_py3 import MonthlyRetentionSchedule + from ._models_py3 import NameInfo + from ._models_py3 import OperationResultInfo + from ._models_py3 import OperationResultInfoBase + from ._models_py3 import OperationResultInfoBaseResource + from ._models_py3 import OperationStatus + from ._models_py3 import OperationStatusError + from ._models_py3 import OperationStatusExtendedInfo + from ._models_py3 import OperationStatusJobExtendedInfo + from ._models_py3 import OperationStatusJobsExtendedInfo + from ._models_py3 import OperationStatusProvisionILRExtendedInfo + from ._models_py3 import OperationWorkerResponse + from ._models_py3 import PointInTimeRange + from ._models_py3 import PreBackupValidation + from ._models_py3 import PreValidateEnableBackupRequest + from ._models_py3 import PreValidateEnableBackupResponse + from ._models_py3 import ProtectableContainer + from ._models_py3 import ProtectableContainerResource + from ._models_py3 import ProtectedItem + from ._models_py3 import ProtectedItemQueryObject + from ._models_py3 import ProtectedItemResource + from ._models_py3 import ProtectionContainer + from ._models_py3 import ProtectionContainerResource + from ._models_py3 import ProtectionIntent + from ._models_py3 import ProtectionIntentQueryObject + from ._models_py3 import ProtectionIntentResource + from ._models_py3 import ProtectionPolicy + from ._models_py3 import ProtectionPolicyQueryObject + from ._models_py3 import ProtectionPolicyResource + from ._models_py3 import RecoveryPoint + from ._models_py3 import RecoveryPointResource + from ._models_py3 import RecoveryPointTierInformation + from ._models_py3 import Resource + from ._models_py3 import ResourceList + from ._models_py3 import RestoreFileSpecs + from ._models_py3 import RestoreRequest + from ._models_py3 import RestoreRequestResource + from ._models_py3 import RetentionDuration + from ._models_py3 import RetentionPolicy + from ._models_py3 import SchedulePolicy + from ._models_py3 import Settings + from ._models_py3 import SimpleRetentionPolicy + from ._models_py3 import SimpleSchedulePolicy + from ._models_py3 import SQLDataDirectory + from ._models_py3 import SQLDataDirectoryMapping + from ._models_py3 import SubProtectionPolicy + from ._models_py3 import TargetAFSRestoreInfo + from ._models_py3 import TargetRestoreInfo + from ._models_py3 import TokenInformation + from ._models_py3 import ValidateIaasVMRestoreOperationRequest + from ._models_py3 import ValidateOperationRequest + from ._models_py3 import ValidateOperationResponse + from ._models_py3 import ValidateOperationsResponse + from ._models_py3 import ValidateRestoreOperationRequest + from ._models_py3 import WeeklyRetentionFormat + from ._models_py3 import WeeklyRetentionSchedule + from ._models_py3 import WorkloadInquiryDetails + from ._models_py3 import WorkloadItem + from ._models_py3 import WorkloadItemResource + from ._models_py3 import WorkloadProtectableItem + from ._models_py3 import WorkloadProtectableItemResource + from ._models_py3 import YearlyRetentionSchedule except (SyntaxError, ImportError): - from .azure_backup_goal_feature_support_request import AzureBackupGoalFeatureSupportRequest - from .azure_fileshare_protected_item_extended_info import AzureFileshareProtectedItemExtendedInfo - from .azure_fileshare_protected_item import AzureFileshareProtectedItem - from .schedule_policy import SchedulePolicy - from .retention_policy import RetentionPolicy - from .azure_file_share_protection_policy import AzureFileShareProtectionPolicy - from .restore_file_specs import RestoreFileSpecs - from .target_afs_restore_info import TargetAFSRestoreInfo - from .azure_file_share_restore_request import AzureFileShareRestoreRequest - from .azure_iaa_sclassic_compute_vm_protected_item import AzureIaaSClassicComputeVMProtectedItem - from .azure_iaa_scompute_vm_protected_item import AzureIaaSComputeVMProtectedItem - from .azure_iaa_svm_error_info import AzureIaaSVMErrorInfo - from .azure_iaa_svm_health_details import AzureIaaSVMHealthDetails - from .azure_iaa_svm_job_task_details import AzureIaaSVMJobTaskDetails - from .azure_iaa_svm_job_extended_info import AzureIaaSVMJobExtendedInfo - from .azure_iaa_svm_job import AzureIaaSVMJob - from .azure_iaa_svm_protected_item_extended_info import AzureIaaSVMProtectedItemExtendedInfo - from .azure_iaa_svm_protected_item import AzureIaaSVMProtectedItem - from .azure_iaa_svm_protection_policy import AzureIaaSVMProtectionPolicy - from .azure_recovery_service_vault_protection_intent import AzureRecoveryServiceVaultProtectionIntent - from .azure_resource_protection_intent import AzureResourceProtectionIntent - from .azure_sql_protected_item_extended_info import AzureSqlProtectedItemExtendedInfo - from .azure_sql_protected_item import AzureSqlProtectedItem - from .azure_sql_protection_policy import AzureSqlProtectionPolicy - from .azure_storage_error_info import AzureStorageErrorInfo - from .azure_storage_job_task_details import AzureStorageJobTaskDetails - from .azure_storage_job_extended_info import AzureStorageJobExtendedInfo - from .azure_storage_job import AzureStorageJob - from .azure_vm_resource_feature_support_request import AzureVMResourceFeatureSupportRequest - from .azure_vm_resource_feature_support_response import AzureVMResourceFeatureSupportResponse - from .error_detail import ErrorDetail - from .azure_vm_workload_protected_item_extended_info import AzureVmWorkloadProtectedItemExtendedInfo - from .azure_vm_workload_protected_item import AzureVmWorkloadProtectedItem - from .settings import Settings - from .sub_protection_policy import SubProtectionPolicy - from .azure_vm_workload_protection_policy import AzureVmWorkloadProtectionPolicy - from .azure_vm_workload_sap_ase_database_protected_item import AzureVmWorkloadSAPAseDatabaseProtectedItem - from .azure_vm_workload_sap_hana_database_protected_item import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from .azure_vm_workload_sql_database_protected_item import AzureVmWorkloadSQLDatabaseProtectedItem - from .azure_workload_auto_protection_intent import AzureWorkloadAutoProtectionIntent - from .azure_workload_error_info import AzureWorkloadErrorInfo - from .azure_workload_job_task_details import AzureWorkloadJobTaskDetails - from .azure_workload_job_extended_info import AzureWorkloadJobExtendedInfo - from .azure_workload_job import AzureWorkloadJob - from .azure_workload_point_in_time_restore_request import AzureWorkloadPointInTimeRestoreRequest - from .target_restore_info import TargetRestoreInfo - from .azure_workload_restore_request import AzureWorkloadRestoreRequest - from .azure_workload_sap_hana_point_in_time_restore_request import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from .azure_workload_sap_hana_restore_request import AzureWorkloadSAPHanaRestoreRequest - from .azure_workload_sql_auto_protection_intent import AzureWorkloadSQLAutoProtectionIntent - from .azure_workload_sql_point_in_time_restore_request import AzureWorkloadSQLPointInTimeRestoreRequest - from .sql_data_directory_mapping import SQLDataDirectoryMapping - from .azure_workload_sql_restore_request import AzureWorkloadSQLRestoreRequest - from .name_info import NameInfo - from .backup_management_usage import BackupManagementUsage - from .backup_status_request import BackupStatusRequest - from .backup_status_response import BackupStatusResponse - from .bms_backup_summaries_query_object import BMSBackupSummariesQueryObject - from .day import Day - from .daily_retention_format import DailyRetentionFormat - from .retention_duration import RetentionDuration - from .daily_retention_schedule import DailyRetentionSchedule - from .dpm_error_info import DpmErrorInfo - from .dpm_job_task_details import DpmJobTaskDetails - from .dpm_job_extended_info import DpmJobExtendedInfo - from .dpm_job import DpmJob - from .dpm_protected_item_extended_info import DPMProtectedItemExtendedInfo - from .dpm_protected_item import DPMProtectedItem - from .encryption_details import EncryptionDetails - from .export_jobs_operation_result_info import ExportJobsOperationResultInfo - from .feature_support_request import FeatureSupportRequest - from .generic_protected_item import GenericProtectedItem - from .generic_protection_policy import GenericProtectionPolicy - from .iaas_vm_restore_request import IaasVMRestoreRequest - from .job import Job - from .job_query_object import JobQueryObject - from .job_resource import JobResource - from .log_schedule_policy import LogSchedulePolicy - from .weekly_retention_schedule import WeeklyRetentionSchedule - from .weekly_retention_format import WeeklyRetentionFormat - from .monthly_retention_schedule import MonthlyRetentionSchedule - from .yearly_retention_schedule import YearlyRetentionSchedule - from .long_term_retention_policy import LongTermRetentionPolicy - from .long_term_schedule_policy import LongTermSchedulePolicy - from .mab_error_info import MabErrorInfo - from .mab_file_folder_protected_item_extended_info import MabFileFolderProtectedItemExtendedInfo - from .mab_file_folder_protected_item import MabFileFolderProtectedItem - from .mab_job_task_details import MabJobTaskDetails - from .mab_job_extended_info import MabJobExtendedInfo - from .mab_job import MabJob - from .mab_protection_policy import MabProtectionPolicy - from .operation_result_info import OperationResultInfo - from .operation_result_info_base import OperationResultInfoBase - from .operation_result_info_base_resource import OperationResultInfoBaseResource - from .operation_worker_response import OperationWorkerResponse - from .pre_validate_enable_backup_request import PreValidateEnableBackupRequest - from .pre_validate_enable_backup_response import PreValidateEnableBackupResponse - from .protected_item import ProtectedItem - from .protected_item_query_object import ProtectedItemQueryObject - from .protected_item_resource import ProtectedItemResource - from .protection_intent import ProtectionIntent - from .protection_intent_query_object import ProtectionIntentQueryObject - from .protection_intent_resource import ProtectionIntentResource - from .protection_policy import ProtectionPolicy - from .protection_policy_query_object import ProtectionPolicyQueryObject - from .protection_policy_resource import ProtectionPolicyResource - from .resource import Resource - from .resource_list import ResourceList - from .restore_request import RestoreRequest - from .simple_retention_policy import SimpleRetentionPolicy - from .simple_schedule_policy import SimpleSchedulePolicy - from .validate_iaas_vm_restore_operation_request import ValidateIaasVMRestoreOperationRequest - from .validate_operation_request import ValidateOperationRequest - from .validate_operation_response import ValidateOperationResponse - from .validate_operations_response import ValidateOperationsResponse - from .validate_restore_operation_request import ValidateRestoreOperationRequest - from .azure_backup_server_container import AzureBackupServerContainer - from .azure_backup_server_engine import AzureBackupServerEngine - from .azure_file_share_backup_request import AzureFileShareBackupRequest - from .azure_file_share_protectable_item import AzureFileShareProtectableItem - from .azure_file_share_recovery_point import AzureFileShareRecoveryPoint - from .azure_iaa_sclassic_compute_vm_container import AzureIaaSClassicComputeVMContainer - from .azure_iaa_sclassic_compute_vm_protectable_item import AzureIaaSClassicComputeVMProtectableItem - from .azure_iaa_scompute_vm_container import AzureIaaSComputeVMContainer - from .azure_iaa_scompute_vm_protectable_item import AzureIaaSComputeVMProtectableItem - from .azure_sqlag_workload_container_protection_container import AzureSQLAGWorkloadContainerProtectionContainer - from .azure_sql_container import AzureSqlContainer - from .azure_storage_container import AzureStorageContainer - from .azure_storage_protectable_container import AzureStorageProtectableContainer - from .azure_vm_app_container_protectable_container import AzureVMAppContainerProtectableContainer - from .azure_vm_app_container_protection_container import AzureVMAppContainerProtectionContainer - from .azure_vm_workload_item import AzureVmWorkloadItem - from .pre_backup_validation import PreBackupValidation - from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - from .azure_vm_workload_sap_ase_database_protectable_item import AzureVmWorkloadSAPAseDatabaseProtectableItem - from .azure_vm_workload_sap_ase_database_workload_item import AzureVmWorkloadSAPAseDatabaseWorkloadItem - from .azure_vm_workload_sap_ase_system_protectable_item import AzureVmWorkloadSAPAseSystemProtectableItem - from .azure_vm_workload_sap_ase_system_workload_item import AzureVmWorkloadSAPAseSystemWorkloadItem - from .azure_vm_workload_sap_hana_database_protectable_item import AzureVmWorkloadSAPHanaDatabaseProtectableItem - from .azure_vm_workload_sap_hana_database_workload_item import AzureVmWorkloadSAPHanaDatabaseWorkloadItem - from .azure_vm_workload_sap_hana_system_protectable_item import AzureVmWorkloadSAPHanaSystemProtectableItem - from .azure_vm_workload_sap_hana_system_workload_item import AzureVmWorkloadSAPHanaSystemWorkloadItem - from .azure_vm_workload_sql_availability_group_protectable_item import AzureVmWorkloadSQLAvailabilityGroupProtectableItem - from .azure_vm_workload_sql_database_protectable_item import AzureVmWorkloadSQLDatabaseProtectableItem - from .azure_vm_workload_sql_database_workload_item import AzureVmWorkloadSQLDatabaseWorkloadItem - from .azure_vm_workload_sql_instance_protectable_item import AzureVmWorkloadSQLInstanceProtectableItem - from .sql_data_directory import SQLDataDirectory - from .azure_vm_workload_sql_instance_workload_item import AzureVmWorkloadSQLInstanceWorkloadItem - from .azure_workload_backup_request import AzureWorkloadBackupRequest - from .inquiry_validation import InquiryValidation - from .workload_inquiry_details import WorkloadInquiryDetails - from .inquiry_info import InquiryInfo - from .distributed_nodes_info import DistributedNodesInfo - from .azure_workload_container_extended_info import AzureWorkloadContainerExtendedInfo - from .azure_workload_container import AzureWorkloadContainer - from .point_in_time_range import PointInTimeRange - from .azure_workload_point_in_time_recovery_point import AzureWorkloadPointInTimeRecoveryPoint - from .azure_workload_recovery_point import AzureWorkloadRecoveryPoint - from .azure_workload_sap_hana_point_in_time_recovery_point import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from .azure_workload_sap_hana_recovery_point import AzureWorkloadSAPHanaRecoveryPoint - from .azure_workload_sql_point_in_time_recovery_point import AzureWorkloadSQLPointInTimeRecoveryPoint - from .azure_workload_sql_recovery_point_extended_info import AzureWorkloadSQLRecoveryPointExtendedInfo - from .azure_workload_sql_recovery_point import AzureWorkloadSQLRecoveryPoint - from .backup_engine_extended_info import BackupEngineExtendedInfo - from .backup_engine_base import BackupEngineBase - from .backup_engine_base_resource import BackupEngineBaseResource - from .backup_request import BackupRequest - from .backup_request_resource import BackupRequestResource - from .backup_resource_config import BackupResourceConfig - from .backup_resource_config_resource import BackupResourceConfigResource - from .backup_resource_vault_config import BackupResourceVaultConfig - from .backup_resource_vault_config_resource import BackupResourceVaultConfigResource - from .bek_details import BEKDetails - from .bms_backup_engine_query_object import BMSBackupEngineQueryObject - from .bms_backup_engines_query_object import BMSBackupEnginesQueryObject - from .bms_container_query_object import BMSContainerQueryObject - from .bms_containers_inquiry_query_object import BMSContainersInquiryQueryObject - from .bmspo_query_object import BMSPOQueryObject - from .bms_refresh_containers_query_object import BMSRefreshContainersQueryObject - from .bmsrp_query_object import BMSRPQueryObject - from .bms_workload_item_query_object import BMSWorkloadItemQueryObject - from .client_script_for_connect import ClientScriptForConnect - from .container_identity_info import ContainerIdentityInfo - from .dpm_backup_engine import DpmBackupEngine - from .dpm_container_extended_info import DPMContainerExtendedInfo - from .dpm_container import DpmContainer - from .generic_container_extended_info import GenericContainerExtendedInfo - from .generic_container import GenericContainer - from .generic_recovery_point import GenericRecoveryPoint - from .get_protected_item_query_object import GetProtectedItemQueryObject - from .iaas_vm_backup_request import IaasVMBackupRequest - from .iaa_svm_container import IaaSVMContainer - from .iaas_vmilr_registration_request import IaasVMILRRegistrationRequest - from .iaa_svm_protectable_item import IaaSVMProtectableItem - from .kek_details import KEKDetails - from .key_and_secret_details import KeyAndSecretDetails - from .recovery_point_tier_information import RecoveryPointTierInformation - from .iaas_vm_recovery_point import IaasVMRecoveryPoint - from .ilr_request import ILRRequest - from .ilr_request_resource import ILRRequestResource - from .instant_item_recovery_target import InstantItemRecoveryTarget - from .mab_container_extended_info import MabContainerExtendedInfo - from .mab_container_health_details import MABContainerHealthDetails - from .mab_container import MabContainer - from .operation_status_error import OperationStatusError - from .operation_status_extended_info import OperationStatusExtendedInfo - from .operation_status import OperationStatus - from .operation_status_job_extended_info import OperationStatusJobExtendedInfo - from .operation_status_jobs_extended_info import OperationStatusJobsExtendedInfo - from .operation_status_provision_ilr_extended_info import OperationStatusProvisionILRExtendedInfo - from .protectable_container import ProtectableContainer - from .protectable_container_resource import ProtectableContainerResource - from .protection_container import ProtectionContainer - from .protection_container_resource import ProtectionContainerResource - from .recovery_point import RecoveryPoint - from .recovery_point_resource import RecoveryPointResource - from .restore_request_resource import RestoreRequestResource - from .token_information import TokenInformation - from .workload_item import WorkloadItem - from .workload_item_resource import WorkloadItemResource - from .workload_protectable_item import WorkloadProtectableItem - from .workload_protectable_item_resource import WorkloadProtectableItemResource - from .client_discovery_display import ClientDiscoveryDisplay - from .client_discovery_for_log_specification import ClientDiscoveryForLogSpecification - from .client_discovery_for_service_specification import ClientDiscoveryForServiceSpecification - from .client_discovery_for_properties import ClientDiscoveryForProperties - from .client_discovery_value_for_single_api import ClientDiscoveryValueForSingleApi -from .job_resource_paged import JobResourcePaged -from .protection_policy_resource_paged import ProtectionPolicyResourcePaged -from .protected_item_resource_paged import ProtectedItemResourcePaged -from .protection_intent_resource_paged import ProtectionIntentResourcePaged -from .backup_management_usage_paged import BackupManagementUsagePaged -from .backup_engine_base_resource_paged import BackupEngineBaseResourcePaged -from .protectable_container_resource_paged import ProtectableContainerResourcePaged -from .workload_item_resource_paged import WorkloadItemResourcePaged -from .recovery_point_resource_paged import RecoveryPointResourcePaged -from .workload_protectable_item_resource_paged import WorkloadProtectableItemResourcePaged -from .protection_container_resource_paged import ProtectionContainerResourcePaged -from .client_discovery_value_for_single_api_paged import ClientDiscoveryValueForSingleApiPaged -from .recovery_services_backup_client_enums import ( + from ._models import AzureBackupGoalFeatureSupportRequest + from ._models import AzureBackupServerContainer + from ._models import AzureBackupServerEngine + from ._models import AzureFileShareBackupRequest + from ._models import AzureFileShareProtectableItem + from ._models import AzureFileshareProtectedItem + from ._models import AzureFileshareProtectedItemExtendedInfo + from ._models import AzureFileShareProtectionPolicy + from ._models import AzureFileShareRecoveryPoint + from ._models import AzureFileShareRestoreRequest + from ._models import AzureIaaSClassicComputeVMContainer + from ._models import AzureIaaSClassicComputeVMProtectableItem + from ._models import AzureIaaSClassicComputeVMProtectedItem + from ._models import AzureIaaSComputeVMContainer + from ._models import AzureIaaSComputeVMProtectableItem + from ._models import AzureIaaSComputeVMProtectedItem + from ._models import AzureIaaSVMErrorInfo + from ._models import AzureIaaSVMHealthDetails + from ._models import AzureIaaSVMJob + from ._models import AzureIaaSVMJobExtendedInfo + from ._models import AzureIaaSVMJobTaskDetails + from ._models import AzureIaaSVMProtectedItem + from ._models import AzureIaaSVMProtectedItemExtendedInfo + from ._models import AzureIaaSVMProtectionPolicy + from ._models import AzureRecoveryServiceVaultProtectionIntent + from ._models import AzureResourceProtectionIntent + from ._models import AzureSQLAGWorkloadContainerProtectionContainer + from ._models import AzureSqlContainer + from ._models import AzureSqlProtectedItem + from ._models import AzureSqlProtectedItemExtendedInfo + from ._models import AzureSqlProtectionPolicy + from ._models import AzureStorageContainer + from ._models import AzureStorageErrorInfo + from ._models import AzureStorageJob + from ._models import AzureStorageJobExtendedInfo + from ._models import AzureStorageJobTaskDetails + from ._models import AzureStorageProtectableContainer + from ._models import AzureVMAppContainerProtectableContainer + from ._models import AzureVMAppContainerProtectionContainer + from ._models import AzureVMResourceFeatureSupportRequest + from ._models import AzureVMResourceFeatureSupportResponse + from ._models import AzureVmWorkloadItem + from ._models import AzureVmWorkloadProtectableItem + 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 + from ._models import AzureVmWorkloadSAPAseSystemWorkloadItem + from ._models import AzureVmWorkloadSAPHanaDatabaseProtectableItem + from ._models import AzureVmWorkloadSAPHanaDatabaseProtectedItem + from ._models import AzureVmWorkloadSAPHanaDatabaseWorkloadItem + from ._models import AzureVmWorkloadSAPHanaSystemProtectableItem + from ._models import AzureVmWorkloadSAPHanaSystemWorkloadItem + from ._models import AzureVmWorkloadSQLAvailabilityGroupProtectableItem + from ._models import AzureVmWorkloadSQLDatabaseProtectableItem + from ._models import AzureVmWorkloadSQLDatabaseProtectedItem + from ._models import AzureVmWorkloadSQLDatabaseWorkloadItem + from ._models import AzureVmWorkloadSQLInstanceProtectableItem + from ._models import AzureVmWorkloadSQLInstanceWorkloadItem + from ._models import AzureWorkloadAutoProtectionIntent + from ._models import AzureWorkloadBackupRequest + from ._models import AzureWorkloadContainer + from ._models import AzureWorkloadContainerExtendedInfo + from ._models import AzureWorkloadErrorInfo + from ._models import AzureWorkloadJob + from ._models import AzureWorkloadJobExtendedInfo + from ._models import AzureWorkloadJobTaskDetails + from ._models import AzureWorkloadPointInTimeRecoveryPoint + from ._models import AzureWorkloadPointInTimeRestoreRequest + from ._models import AzureWorkloadRecoveryPoint + from ._models import AzureWorkloadRestoreRequest + from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPoint + from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequest + from ._models import AzureWorkloadSAPHanaRecoveryPoint + from ._models import AzureWorkloadSAPHanaRestoreRequest + from ._models import AzureWorkloadSQLAutoProtectionIntent + from ._models import AzureWorkloadSQLPointInTimeRecoveryPoint + from ._models import AzureWorkloadSQLPointInTimeRestoreRequest + from ._models import AzureWorkloadSQLRecoveryPoint + from ._models import AzureWorkloadSQLRecoveryPointExtendedInfo + from ._models import AzureWorkloadSQLRestoreRequest + from ._models import BackupEngineBase + from ._models import BackupEngineBaseResource + from ._models import BackupEngineExtendedInfo + from ._models import BackupManagementUsage + from ._models import BackupRequest + from ._models import BackupRequestResource + from ._models import BackupResourceConfig + from ._models import BackupResourceConfigResource + from ._models import BackupResourceVaultConfig + from ._models import BackupResourceVaultConfigResource + from ._models import BackupStatusRequest + from ._models import BackupStatusResponse + from ._models import BEKDetails + from ._models import BMSBackupEngineQueryObject + from ._models import BMSBackupEnginesQueryObject + from ._models import BMSBackupSummariesQueryObject + from ._models import BMSContainerQueryObject + from ._models import BMSContainersInquiryQueryObject + from ._models import BMSPOQueryObject + from ._models import BMSRefreshContainersQueryObject + from ._models import BMSRPQueryObject + from ._models import BMSWorkloadItemQueryObject + from ._models import ClientDiscoveryDisplay + from ._models import ClientDiscoveryForLogSpecification + from ._models import ClientDiscoveryForProperties + from ._models import ClientDiscoveryForServiceSpecification + from ._models import ClientDiscoveryValueForSingleApi + from ._models import ClientScriptForConnect + from ._models import ContainerIdentityInfo + from ._models import DailyRetentionFormat + from ._models import DailyRetentionSchedule + from ._models import Day + from ._models import DistributedNodesInfo + from ._models import DpmBackupEngine + from ._models import DpmContainer + from ._models import DPMContainerExtendedInfo + from ._models import DpmErrorInfo + from ._models import DpmJob + from ._models import DpmJobExtendedInfo + from ._models import DpmJobTaskDetails + from ._models import DPMProtectedItem + from ._models import DPMProtectedItemExtendedInfo + from ._models import EncryptionDetails + from ._models import ErrorDetail + from ._models import ExportJobsOperationResultInfo + from ._models import FeatureSupportRequest + from ._models import GenericContainer + from ._models import GenericContainerExtendedInfo + from ._models import GenericProtectedItem + from ._models import GenericProtectionPolicy + from ._models import GenericRecoveryPoint + from ._models import GetProtectedItemQueryObject + from ._models import IaasVMBackupRequest + from ._models import IaaSVMContainer + from ._models import IaasVMILRRegistrationRequest + from ._models import IaaSVMProtectableItem + from ._models import IaasVMRecoveryPoint + from ._models import IaasVMRestoreRequest + from ._models import ILRRequest + from ._models import ILRRequestResource + from ._models import InquiryInfo + from ._models import InquiryValidation + from ._models import InstantItemRecoveryTarget + from ._models import Job + from ._models import JobQueryObject + from ._models import JobResource + from ._models import KEKDetails + from ._models import KeyAndSecretDetails + from ._models import LogSchedulePolicy + from ._models import LongTermRetentionPolicy + from ._models import LongTermSchedulePolicy + from ._models import MabContainer + from ._models import MabContainerExtendedInfo + from ._models import MABContainerHealthDetails + from ._models import MabErrorInfo + from ._models import MabFileFolderProtectedItem + from ._models import MabFileFolderProtectedItemExtendedInfo + from ._models import MabJob + from ._models import MabJobExtendedInfo + from ._models import MabJobTaskDetails + from ._models import MabProtectionPolicy + from ._models import MonthlyRetentionSchedule + from ._models import NameInfo + from ._models import OperationResultInfo + from ._models import OperationResultInfoBase + from ._models import OperationResultInfoBaseResource + from ._models import OperationStatus + from ._models import OperationStatusError + from ._models import OperationStatusExtendedInfo + from ._models import OperationStatusJobExtendedInfo + from ._models import OperationStatusJobsExtendedInfo + from ._models import OperationStatusProvisionILRExtendedInfo + from ._models import OperationWorkerResponse + from ._models import PointInTimeRange + from ._models import PreBackupValidation + from ._models import PreValidateEnableBackupRequest + from ._models import PreValidateEnableBackupResponse + from ._models import ProtectableContainer + from ._models import ProtectableContainerResource + from ._models import ProtectedItem + from ._models import ProtectedItemQueryObject + from ._models import ProtectedItemResource + from ._models import ProtectionContainer + from ._models import ProtectionContainerResource + from ._models import ProtectionIntent + from ._models import ProtectionIntentQueryObject + from ._models import ProtectionIntentResource + from ._models import ProtectionPolicy + from ._models import ProtectionPolicyQueryObject + from ._models import ProtectionPolicyResource + from ._models import RecoveryPoint + from ._models import RecoveryPointResource + from ._models import RecoveryPointTierInformation + from ._models import Resource + from ._models import ResourceList + from ._models import RestoreFileSpecs + from ._models import RestoreRequest + from ._models import RestoreRequestResource + from ._models import RetentionDuration + from ._models import RetentionPolicy + from ._models import SchedulePolicy + from ._models import Settings + from ._models import SimpleRetentionPolicy + from ._models import SimpleSchedulePolicy + from ._models import SQLDataDirectory + from ._models import SQLDataDirectoryMapping + from ._models import SubProtectionPolicy + from ._models import TargetAFSRestoreInfo + from ._models import TargetRestoreInfo + from ._models import TokenInformation + from ._models import ValidateIaasVMRestoreOperationRequest + from ._models import ValidateOperationRequest + from ._models import ValidateOperationResponse + from ._models import ValidateOperationsResponse + from ._models import ValidateRestoreOperationRequest + from ._models import WeeklyRetentionFormat + from ._models import WeeklyRetentionSchedule + from ._models import WorkloadInquiryDetails + from ._models import WorkloadItem + from ._models import WorkloadItemResource + from ._models import WorkloadProtectableItem + from ._models import WorkloadProtectableItemResource + from ._models import YearlyRetentionSchedule +from ._paged_models import BackupEngineBaseResourcePaged +from ._paged_models import BackupManagementUsagePaged +from ._paged_models import ClientDiscoveryValueForSingleApiPaged +from ._paged_models import JobResourcePaged +from ._paged_models import ProtectableContainerResourcePaged +from ._paged_models import ProtectedItemResourcePaged +from ._paged_models import ProtectionContainerResourcePaged +from ._paged_models import ProtectionIntentResourcePaged +from ._paged_models import ProtectionPolicyResourcePaged +from ._paged_models import RecoveryPointResourcePaged +from ._paged_models import WorkloadItemResourcePaged +from ._paged_models import WorkloadProtectableItemResourcePaged +from ._recovery_services_backup_client_enums import ( ProtectionState, HealthStatus, WorkloadType, @@ -531,232 +531,232 @@ __all__ = [ 'AzureBackupGoalFeatureSupportRequest', - 'AzureFileshareProtectedItemExtendedInfo', + 'AzureBackupServerContainer', + 'AzureBackupServerEngine', + 'AzureFileShareBackupRequest', + 'AzureFileShareProtectableItem', 'AzureFileshareProtectedItem', - 'SchedulePolicy', - 'RetentionPolicy', + 'AzureFileshareProtectedItemExtendedInfo', 'AzureFileShareProtectionPolicy', - 'RestoreFileSpecs', - 'TargetAFSRestoreInfo', + 'AzureFileShareRecoveryPoint', 'AzureFileShareRestoreRequest', + 'AzureIaaSClassicComputeVMContainer', + 'AzureIaaSClassicComputeVMProtectableItem', 'AzureIaaSClassicComputeVMProtectedItem', + 'AzureIaaSComputeVMContainer', + 'AzureIaaSComputeVMProtectableItem', 'AzureIaaSComputeVMProtectedItem', 'AzureIaaSVMErrorInfo', 'AzureIaaSVMHealthDetails', - 'AzureIaaSVMJobTaskDetails', - 'AzureIaaSVMJobExtendedInfo', 'AzureIaaSVMJob', - 'AzureIaaSVMProtectedItemExtendedInfo', + 'AzureIaaSVMJobExtendedInfo', + 'AzureIaaSVMJobTaskDetails', 'AzureIaaSVMProtectedItem', + 'AzureIaaSVMProtectedItemExtendedInfo', 'AzureIaaSVMProtectionPolicy', 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceProtectionIntent', - 'AzureSqlProtectedItemExtendedInfo', + 'AzureSQLAGWorkloadContainerProtectionContainer', + 'AzureSqlContainer', 'AzureSqlProtectedItem', + 'AzureSqlProtectedItemExtendedInfo', 'AzureSqlProtectionPolicy', + 'AzureStorageContainer', 'AzureStorageErrorInfo', - 'AzureStorageJobTaskDetails', - 'AzureStorageJobExtendedInfo', 'AzureStorageJob', - 'AzureVMResourceFeatureSupportRequest', - 'AzureVMResourceFeatureSupportResponse', - 'ErrorDetail', - 'AzureVmWorkloadProtectedItemExtendedInfo', - 'AzureVmWorkloadProtectedItem', - 'Settings', - 'SubProtectionPolicy', - 'AzureVmWorkloadProtectionPolicy', - 'AzureVmWorkloadSAPAseDatabaseProtectedItem', - 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', - 'AzureVmWorkloadSQLDatabaseProtectedItem', - 'AzureWorkloadAutoProtectionIntent', - 'AzureWorkloadErrorInfo', - 'AzureWorkloadJobTaskDetails', - 'AzureWorkloadJobExtendedInfo', - 'AzureWorkloadJob', - 'AzureWorkloadPointInTimeRestoreRequest', - 'TargetRestoreInfo', - 'AzureWorkloadRestoreRequest', - 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', - 'AzureWorkloadSAPHanaRestoreRequest', - 'AzureWorkloadSQLAutoProtectionIntent', - 'AzureWorkloadSQLPointInTimeRestoreRequest', - 'SQLDataDirectoryMapping', - 'AzureWorkloadSQLRestoreRequest', - 'NameInfo', - 'BackupManagementUsage', - 'BackupStatusRequest', - 'BackupStatusResponse', - 'BMSBackupSummariesQueryObject', - 'Day', - 'DailyRetentionFormat', - 'RetentionDuration', - 'DailyRetentionSchedule', - 'DpmErrorInfo', - 'DpmJobTaskDetails', - 'DpmJobExtendedInfo', - 'DpmJob', - 'DPMProtectedItemExtendedInfo', - 'DPMProtectedItem', - 'EncryptionDetails', - 'ExportJobsOperationResultInfo', - 'FeatureSupportRequest', - 'GenericProtectedItem', - 'GenericProtectionPolicy', - 'IaasVMRestoreRequest', - 'Job', - 'JobQueryObject', - 'JobResource', - 'LogSchedulePolicy', - 'WeeklyRetentionSchedule', - 'WeeklyRetentionFormat', - 'MonthlyRetentionSchedule', - 'YearlyRetentionSchedule', - 'LongTermRetentionPolicy', - 'LongTermSchedulePolicy', - 'MabErrorInfo', - 'MabFileFolderProtectedItemExtendedInfo', - 'MabFileFolderProtectedItem', - 'MabJobTaskDetails', - 'MabJobExtendedInfo', - 'MabJob', - 'MabProtectionPolicy', - 'OperationResultInfo', - 'OperationResultInfoBase', - 'OperationResultInfoBaseResource', - 'OperationWorkerResponse', - 'PreValidateEnableBackupRequest', - 'PreValidateEnableBackupResponse', - 'ProtectedItem', - 'ProtectedItemQueryObject', - 'ProtectedItemResource', - 'ProtectionIntent', - 'ProtectionIntentQueryObject', - 'ProtectionIntentResource', - 'ProtectionPolicy', - 'ProtectionPolicyQueryObject', - 'ProtectionPolicyResource', - 'Resource', - 'ResourceList', - 'RestoreRequest', - 'SimpleRetentionPolicy', - 'SimpleSchedulePolicy', - 'ValidateIaasVMRestoreOperationRequest', - 'ValidateOperationRequest', - 'ValidateOperationResponse', - 'ValidateOperationsResponse', - 'ValidateRestoreOperationRequest', - 'AzureBackupServerContainer', - 'AzureBackupServerEngine', - 'AzureFileShareBackupRequest', - 'AzureFileShareProtectableItem', - 'AzureFileShareRecoveryPoint', - 'AzureIaaSClassicComputeVMContainer', - 'AzureIaaSClassicComputeVMProtectableItem', - 'AzureIaaSComputeVMContainer', - 'AzureIaaSComputeVMProtectableItem', - 'AzureSQLAGWorkloadContainerProtectionContainer', - 'AzureSqlContainer', - 'AzureStorageContainer', + 'AzureStorageJobExtendedInfo', + 'AzureStorageJobTaskDetails', 'AzureStorageProtectableContainer', 'AzureVMAppContainerProtectableContainer', 'AzureVMAppContainerProtectionContainer', + 'AzureVMResourceFeatureSupportRequest', + 'AzureVMResourceFeatureSupportResponse', 'AzureVmWorkloadItem', - 'PreBackupValidation', 'AzureVmWorkloadProtectableItem', + 'AzureVmWorkloadProtectedItem', + 'AzureVmWorkloadProtectedItemExtendedInfo', + 'AzureVmWorkloadProtectionPolicy', 'AzureVmWorkloadSAPAseDatabaseProtectableItem', + 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'AzureVmWorkloadSAPAseSystemProtectableItem', 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', + 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'AzureVmWorkloadSQLDatabaseProtectableItem', + 'AzureVmWorkloadSQLDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'AzureVmWorkloadSQLInstanceProtectableItem', - 'SQLDataDirectory', 'AzureVmWorkloadSQLInstanceWorkloadItem', + 'AzureWorkloadAutoProtectionIntent', 'AzureWorkloadBackupRequest', - 'InquiryValidation', - 'WorkloadInquiryDetails', - 'InquiryInfo', - 'DistributedNodesInfo', - 'AzureWorkloadContainerExtendedInfo', 'AzureWorkloadContainer', - 'PointInTimeRange', + 'AzureWorkloadContainerExtendedInfo', + 'AzureWorkloadErrorInfo', + 'AzureWorkloadJob', + 'AzureWorkloadJobExtendedInfo', + 'AzureWorkloadJobTaskDetails', 'AzureWorkloadPointInTimeRecoveryPoint', + 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadRecoveryPoint', + 'AzureWorkloadRestoreRequest', 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint', + 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRecoveryPoint', + 'AzureWorkloadSAPHanaRestoreRequest', + 'AzureWorkloadSQLAutoProtectionIntent', 'AzureWorkloadSQLPointInTimeRecoveryPoint', - 'AzureWorkloadSQLRecoveryPointExtendedInfo', + 'AzureWorkloadSQLPointInTimeRestoreRequest', 'AzureWorkloadSQLRecoveryPoint', - 'BackupEngineExtendedInfo', + 'AzureWorkloadSQLRecoveryPointExtendedInfo', + 'AzureWorkloadSQLRestoreRequest', 'BackupEngineBase', 'BackupEngineBaseResource', + 'BackupEngineExtendedInfo', + 'BackupManagementUsage', 'BackupRequest', 'BackupRequestResource', 'BackupResourceConfig', 'BackupResourceConfigResource', 'BackupResourceVaultConfig', 'BackupResourceVaultConfigResource', + 'BackupStatusRequest', + 'BackupStatusResponse', 'BEKDetails', 'BMSBackupEngineQueryObject', 'BMSBackupEnginesQueryObject', + 'BMSBackupSummariesQueryObject', 'BMSContainerQueryObject', 'BMSContainersInquiryQueryObject', 'BMSPOQueryObject', 'BMSRefreshContainersQueryObject', 'BMSRPQueryObject', 'BMSWorkloadItemQueryObject', + 'ClientDiscoveryDisplay', + 'ClientDiscoveryForLogSpecification', + 'ClientDiscoveryForProperties', + 'ClientDiscoveryForServiceSpecification', + 'ClientDiscoveryValueForSingleApi', 'ClientScriptForConnect', 'ContainerIdentityInfo', + 'DailyRetentionFormat', + 'DailyRetentionSchedule', + 'Day', + 'DistributedNodesInfo', 'DpmBackupEngine', - 'DPMContainerExtendedInfo', 'DpmContainer', - 'GenericContainerExtendedInfo', + 'DPMContainerExtendedInfo', + 'DpmErrorInfo', + 'DpmJob', + 'DpmJobExtendedInfo', + 'DpmJobTaskDetails', + 'DPMProtectedItem', + 'DPMProtectedItemExtendedInfo', + 'EncryptionDetails', + 'ErrorDetail', + 'ExportJobsOperationResultInfo', + 'FeatureSupportRequest', 'GenericContainer', + 'GenericContainerExtendedInfo', + 'GenericProtectedItem', + 'GenericProtectionPolicy', 'GenericRecoveryPoint', 'GetProtectedItemQueryObject', 'IaasVMBackupRequest', 'IaaSVMContainer', 'IaasVMILRRegistrationRequest', 'IaaSVMProtectableItem', - 'KEKDetails', - 'KeyAndSecretDetails', - 'RecoveryPointTierInformation', 'IaasVMRecoveryPoint', + 'IaasVMRestoreRequest', 'ILRRequest', 'ILRRequestResource', + 'InquiryInfo', + 'InquiryValidation', 'InstantItemRecoveryTarget', + 'Job', + 'JobQueryObject', + 'JobResource', + 'KEKDetails', + 'KeyAndSecretDetails', + 'LogSchedulePolicy', + 'LongTermRetentionPolicy', + 'LongTermSchedulePolicy', + 'MabContainer', 'MabContainerExtendedInfo', 'MABContainerHealthDetails', - 'MabContainer', + 'MabErrorInfo', + 'MabFileFolderProtectedItem', + 'MabFileFolderProtectedItemExtendedInfo', + 'MabJob', + 'MabJobExtendedInfo', + 'MabJobTaskDetails', + 'MabProtectionPolicy', + 'MonthlyRetentionSchedule', + 'NameInfo', + 'OperationResultInfo', + 'OperationResultInfoBase', + 'OperationResultInfoBaseResource', + 'OperationStatus', 'OperationStatusError', 'OperationStatusExtendedInfo', - 'OperationStatus', 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo', + 'OperationWorkerResponse', + 'PointInTimeRange', + 'PreBackupValidation', + 'PreValidateEnableBackupRequest', + 'PreValidateEnableBackupResponse', 'ProtectableContainer', 'ProtectableContainerResource', + 'ProtectedItem', + 'ProtectedItemQueryObject', + 'ProtectedItemResource', 'ProtectionContainer', 'ProtectionContainerResource', + 'ProtectionIntent', + 'ProtectionIntentQueryObject', + 'ProtectionIntentResource', + 'ProtectionPolicy', + 'ProtectionPolicyQueryObject', + 'ProtectionPolicyResource', 'RecoveryPoint', 'RecoveryPointResource', + 'RecoveryPointTierInformation', + 'Resource', + 'ResourceList', + 'RestoreFileSpecs', + 'RestoreRequest', 'RestoreRequestResource', + 'RetentionDuration', + 'RetentionPolicy', + 'SchedulePolicy', + 'Settings', + 'SimpleRetentionPolicy', + 'SimpleSchedulePolicy', + 'SQLDataDirectory', + 'SQLDataDirectoryMapping', + 'SubProtectionPolicy', + 'TargetAFSRestoreInfo', + 'TargetRestoreInfo', 'TokenInformation', + 'ValidateIaasVMRestoreOperationRequest', + 'ValidateOperationRequest', + 'ValidateOperationResponse', + 'ValidateOperationsResponse', + 'ValidateRestoreOperationRequest', + 'WeeklyRetentionFormat', + 'WeeklyRetentionSchedule', + 'WorkloadInquiryDetails', 'WorkloadItem', 'WorkloadItemResource', 'WorkloadProtectableItem', 'WorkloadProtectableItemResource', - 'ClientDiscoveryDisplay', - 'ClientDiscoveryForLogSpecification', - 'ClientDiscoveryForServiceSpecification', - 'ClientDiscoveryForProperties', - 'ClientDiscoveryValueForSingleApi', + 'YearlyRetentionSchedule', 'JobResourcePaged', 'ProtectionPolicyResourcePaged', 'ProtectedItemResourcePaged', 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 new file mode 100644 index 000000000000..7eae361316ca --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py @@ -0,0 +1,10148 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FeatureSupportRequest(Model): + """Base class for feature request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupGoalFeatureSupportRequest, + AzureVMResourceFeatureSupportRequest + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + } + + _subtype_map = { + 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} + } + + def __init__(self, **kwargs): + super(FeatureSupportRequest, self).__init__(**kwargs) + self.feature_type = None + + +class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): + """Azure backup goal feature specific request. + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) + self.feature_type = 'AzureBackupGoals' + + +class ProtectionContainer(Model): + """Base class for container with backup items. Containers with specific + workloads are derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureSqlContainer, AzureStorageContainer, + AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, + MabContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} + } + + def __init__(self, **kwargs): + super(ProtectionContainer, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.registration_status = kwargs.get('registration_status', None) + self.health_status = kwargs.get('health_status', None) + self.container_type = None + + +class DpmContainer(ProtectionContainer): + """DPM workload-specific protection container. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupServerContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Specifies whether the container is re-registrable. + :type can_re_register: bool + :param container_id: ID of container. + :type container_id: str + :param protected_item_count: Number of protected items in the BackupEngine + :type protected_item_count: long + :param dpm_agent_version: Backup engine Agent version + :type dpm_agent_version: str + :param dpm_servers: List of BackupEngines protecting the container + :type dpm_servers: list[str] + :param upgrade_available: To check if upgrade available + :type upgrade_available: bool + :param protection_status: Protection status of the container. + :type protection_status: str + :param extended_info: Extended Info of the container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, + 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, + 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, + } + + _subtype_map = { + 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} + } + + def __init__(self, **kwargs): + super(DpmContainer, self).__init__(**kwargs) + self.can_re_register = kwargs.get('can_re_register', None) + self.container_id = kwargs.get('container_id', None) + self.protected_item_count = kwargs.get('protected_item_count', None) + self.dpm_agent_version = kwargs.get('dpm_agent_version', None) + self.dpm_servers = kwargs.get('dpm_servers', None) + self.upgrade_available = kwargs.get('upgrade_available', None) + self.protection_status = kwargs.get('protection_status', None) + self.extended_info = kwargs.get('extended_info', None) + self.container_type = 'DPMContainer' + + +class AzureBackupServerContainer(DpmContainer): + """AzureBackupServer (DPMVenus) workload-specific protection container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Specifies whether the container is re-registrable. + :type can_re_register: bool + :param container_id: ID of container. + :type container_id: str + :param protected_item_count: Number of protected items in the BackupEngine + :type protected_item_count: long + :param dpm_agent_version: Backup engine Agent version + :type dpm_agent_version: str + :param dpm_servers: List of BackupEngines protecting the container + :type dpm_servers: list[str] + :param upgrade_available: To check if upgrade available + :type upgrade_available: bool + :param protection_status: Protection status of the container. + :type protection_status: str + :param extended_info: Extended Info of the container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, + 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, + 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureBackupServerContainer, self).__init__(**kwargs) + self.container_type = 'AzureBackupServerContainer' + + +class BackupEngineBase(Model): + """The base backup engine class. All workload specific backup engines derive + from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupServerEngine, DpmBackupEngine + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + _subtype_map = { + 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} + } + + def __init__(self, **kwargs): + super(BackupEngineBase, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.registration_status = kwargs.get('registration_status', None) + self.backup_engine_state = kwargs.get('backup_engine_state', None) + self.health_status = kwargs.get('health_status', None) + self.can_re_register = kwargs.get('can_re_register', None) + self.backup_engine_id = kwargs.get('backup_engine_id', None) + self.dpm_version = kwargs.get('dpm_version', None) + self.azure_backup_agent_version = kwargs.get('azure_backup_agent_version', None) + self.is_azure_backup_agent_upgrade_available = kwargs.get('is_azure_backup_agent_upgrade_available', None) + self.is_dpm_upgrade_available = kwargs.get('is_dpm_upgrade_available', None) + self.extended_info = kwargs.get('extended_info', None) + self.backup_engine_type = None + + +class AzureBackupServerEngine(BackupEngineBase): + """Backup engine type when Azure Backup Server is used to manage the backups. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureBackupServerEngine, self).__init__(**kwargs) + self.backup_engine_type = 'AzureBackupServerEngine' + + +class BackupRequest(Model): + """Base class for backup request. Workload-specific backup requests are + derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, + IaasVMBackupRequest + + 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': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} + } + + def __init__(self, **kwargs): + super(BackupRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareBackupRequest(BackupRequest): + """AzureFileShare workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AzureFileShareBackupRequest, self).__init__(**kwargs) + self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) + self.object_type = 'AzureFileShareBackupRequest' + + +class WorkloadProtectableItem(Model): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareProtectableItem, + AzureVmWorkloadProtectableItem, IaaSVMProtectableItem + + 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 + """ + + _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'}, + } + + _subtype_map = { + 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} + } + + def __init__(self, **kwargs): + super(WorkloadProtectableItem, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.protection_state = kwargs.get('protection_state', None) + self.protectable_item_type = None + + +class AzureFileShareProtectableItem(WorkloadProtectableItem): + """Protectable item for Azure Fileshare workloads. + + 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_container_fabric_id: Full Fabric ID of container to which + this protectable item belongs. For example, ARM ID. + :type parent_container_fabric_id: str + :param parent_container_friendly_name: Friendly name of container to which + this protectable item belongs. + :type parent_container_friendly_name: str + :param azure_file_share_type: File Share type XSync or XSMB. Possible + values include: 'Invalid', 'XSMB', 'XSync' + :type azure_file_share_type: str or + ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType + """ + + _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_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, + 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, + 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFileShareProtectableItem, self).__init__(**kwargs) + self.parent_container_fabric_id = kwargs.get('parent_container_fabric_id', None) + self.parent_container_friendly_name = kwargs.get('parent_container_friendly_name', None) + self.azure_file_share_type = kwargs.get('azure_file_share_type', None) + self.protectable_item_type = 'AzureFileShare' + + +class ProtectedItem(Model): + """Base class for backup items. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, + AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, + GenericProtectedItem, MabFileFolderProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} + } + + def __init__(self, **kwargs): + super(ProtectedItem, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.container_name = kwargs.get('container_name', None) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.policy_id = kwargs.get('policy_id', None) + self.last_recovery_point = kwargs.get('last_recovery_point', None) + self.backup_set_name = kwargs.get('backup_set_name', None) + self.create_mode = kwargs.get('create_mode', None) + self.deferred_delete_time_in_utc = kwargs.get('deferred_delete_time_in_utc', None) + self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', None) + self.deferred_delete_time_remaining = kwargs.get('deferred_delete_time_remaining', None) + self.is_deferred_delete_schedule_upcoming = kwargs.get('is_deferred_delete_schedule_upcoming', None) + self.is_rehydrate = kwargs.get('is_rehydrate', None) + self.protected_item_type = None + + +class AzureFileshareProtectedItem(ProtectedItem): + """Azure File Share workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the fileshare represented by this + backup item. + :type friendly_name: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: backups running status for this backup item. + Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', + 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. + :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 extended_info: Additional information with this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureFileshareProtectedItem, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.protection_status = kwargs.get('protection_status', None) + self.protection_state = kwargs.get('protection_state', None) + self.health_status = kwargs.get('health_status', None) + self.last_backup_status = kwargs.get('last_backup_status', None) + self.last_backup_time = kwargs.get('last_backup_time', None) + self.extended_info = kwargs.get('extended_info', None) + self.protected_item_type = 'AzureFileShareProtectedItem' + + +class AzureFileshareProtectedItemExtendedInfo(Model): + """Additional information about Azure File Share backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + item in the service. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of available backup copies associated + with this backup item. + :type recovery_point_count: int + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**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) + + +class ProtectionPolicy(Model): + """Base class for backup policy. Workload-specific backup policies are derived + 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 + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + } + + _subtype_map = { + 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} + } + + def __init__(self, **kwargs): + super(ProtectionPolicy, self).__init__(**kwargs) + self.protected_items_count = kwargs.get('protected_items_count', None) + self.backup_management_type = None + + +class AzureFileShareProtectionPolicy(ProtectionPolicy): + """AzureStorage backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param work_load_type: Type of workload for the backup management. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type work_load_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFileShareProtectionPolicy, self).__init__(**kwargs) + self.work_load_type = kwargs.get('work_load_type', None) + self.schedule_policy = kwargs.get('schedule_policy', None) + self.retention_policy = kwargs.get('retention_policy', None) + self.time_zone = kwargs.get('time_zone', None) + self.backup_management_type = 'AzureStorage' + + +class RecoveryPoint(Model): + """Base class for backup copies. Workload-specific backup copies are derived + from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, + GenericRecoveryPoint, IaasVMRecoveryPoint + + 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': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} + } + + def __init__(self, **kwargs): + super(RecoveryPoint, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareRecoveryPoint(RecoveryPoint): + """Azure File Share workload specific backup copy. + + 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 + 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, + if applicable + :type file_share_snapshot_uri: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, + } + + 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.object_type = 'AzureFileShareRecoveryPoint' + + +class RestoreRequest(Model): + """Base class for restore request. Workload-specific restore requests are + derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, + IaasVMRestoreRequest + + 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': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + } + + def __init__(self, **kwargs): + super(RestoreRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareRestoreRequest(RestoreRequest): + """AzureFileShare Restore 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_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Source storage account ARM Id + :type source_resource_id: str + :param copy_options: Options to resolve copy conflicts. Possible values + include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' + :type copy_options: str or + ~azure.mgmt.recoveryservicesbackup.models.CopyOptions + :param restore_request_type: Restore Type (FullShareRestore or + ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', + 'ItemLevelRestore' + :type restore_request_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType + :param restore_file_specs: List of Source Files/Folders(which need to + recover) and TargetFolderPath details + :type restore_file_specs: + list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] + :param target_details: Target File Share Details + :type target_details: + ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'copy_options': {'key': 'copyOptions', 'type': 'str'}, + 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, + 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, + 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, + } + + def __init__(self, **kwargs): + super(AzureFileShareRestoreRequest, self).__init__(**kwargs) + self.recovery_type = kwargs.get('recovery_type', None) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.copy_options = kwargs.get('copy_options', None) + self.restore_request_type = kwargs.get('restore_request_type', None) + self.restore_file_specs = kwargs.get('restore_file_specs', None) + self.target_details = kwargs.get('target_details', None) + self.object_type = 'AzureFileShareRestoreRequest' + + +class IaaSVMContainer(ProtectionContainer): + """IaaS VM workload-specific container. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMContainer, + AzureIaaSComputeVMContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} + } + + def __init__(self, **kwargs): + super(IaaSVMContainer, self).__init__(**kwargs) + self.virtual_machine_id = kwargs.get('virtual_machine_id', None) + self.virtual_machine_version = kwargs.get('virtual_machine_version', None) + self.resource_group = kwargs.get('resource_group', None) + self.container_type = 'IaaSVMContainer' + + +class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): + """IaaS VM workload-specific backup item representing a classic virtual + machine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSClassicComputeVMContainer, self).__init__(**kwargs) + self.container_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class IaaSVMProtectableItem(WorkloadProtectableItem): + """IaaS VM workload-specific backup item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + _subtype_map = { + 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} + } + + def __init__(self, **kwargs): + super(IaaSVMProtectableItem, self).__init__(**kwargs) + self.virtual_machine_id = kwargs.get('virtual_machine_id', None) + self.protectable_item_type = 'IaaSVMProtectableItem' + + +class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): + """IaaS VM workload-specific backup item representing the Classic Compute VM. + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class AzureIaaSVMProtectedItem(ProtectedItem): + """IaaS VM workload-specific backup item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + _subtype_map = { + 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} + } + + def __init__(self, **kwargs): + super(AzureIaaSVMProtectedItem, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.virtual_machine_id = kwargs.get('virtual_machine_id', None) + self.protection_status = kwargs.get('protection_status', None) + self.protection_state = kwargs.get('protection_state', None) + self.health_status = kwargs.get('health_status', None) + self.health_details = kwargs.get('health_details', None) + self.last_backup_status = kwargs.get('last_backup_status', None) + 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.protected_item_type = 'AzureIaaSVMProtectedItem' + + +class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): + """IaaS VM workload-specific backup item representing the Classic Compute VM. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(**kwargs) + self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class AzureIaaSComputeVMContainer(IaaSVMContainer): + """IaaS VM workload-specific backup item representing an Azure Resource + Manager virtual machine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSComputeVMContainer, self).__init__(**kwargs) + self.container_type = 'Microsoft.Compute/virtualMachines' + + +class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): + """IaaS VM workload-specific backup item representing the Azure Resource + Manager VM. + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSComputeVMProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'Microsoft.Compute/virtualMachines' + + +class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): + """IaaS VM workload-specific backup item representing the Azure Resource + Manager VM. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSComputeVMProtectedItem, self).__init__(**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 + to. + :type error_title: str + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + 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) + + +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] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + 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) + + +class Job(Model): + """Defines workload agnostic properties for a job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, + MabJob + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + } + + _subtype_map = { + 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} + } + + def __init__(self, **kwargs): + super(Job, self).__init__(**kwargs) + self.entity_friendly_name = kwargs.get('entity_friendly_name', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.operation = kwargs.get('operation', None) + self.status = kwargs.get('status', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.activity_id = kwargs.get('activity_id', None) + self.job_type = None + + +class AzureIaaSVMJob(Job): + """Azure IaaS VM workload-specific job object. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] + :param virtual_machine_version: Specifies whether the backup item is a + Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param extended_info: Additional information for this job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSVMJob, self).__init__(**kwargs) + self.duration = kwargs.get('duration', None) + self.actions_info = kwargs.get('actions_info', None) + self.error_details = kwargs.get('error_details', None) + self.virtual_machine_version = kwargs.get('virtual_machine_version', None) + self.extended_info = kwargs.get('extended_info', None) + self.job_type = 'AzureIaaSVMJob' + + +class AzureIaaSVMJobExtendedInfo(Model): + """Azure IaaS VM workload-specific additional information for job. + + :param tasks_list: List of tasks associated with this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param internal_property_bag: Job internal properties. + :type internal_property_bag: dict[str, str] + :param progress_percentage: Indicates progress of the job. Null if it has + not started or completed. + :type progress_percentage: float + :param estimated_remaining_duration: Time remaining for execution of this + job. + :type estimated_remaining_duration: str + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, + 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, + 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = kwargs.get('tasks_list', None) + self.property_bag = kwargs.get('property_bag', None) + self.internal_property_bag = kwargs.get('internal_property_bag', None) + self.progress_percentage = kwargs.get('progress_percentage', None) + self.estimated_remaining_duration = kwargs.get('estimated_remaining_duration', None) + self.dynamic_error_message = kwargs.get('dynamic_error_message', None) + + +class AzureIaaSVMJobTaskDetails(Model): + """Azure IaaS VM workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param instance_id: The instanceId. + :type instance_id: str + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + :param progress_percentage: Progress of the task. + :type progress_percentage: float + :param task_execution_details: Details about execution of the task. + eg: number of bytes transferred etc + :type task_execution_details: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, + 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) + self.task_id = kwargs.get('task_id', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.instance_id = kwargs.get('instance_id', None) + self.duration = kwargs.get('duration', None) + self.status = kwargs.get('status', None) + self.progress_percentage = kwargs.get('progress_percentage', None) + self.task_execution_details = kwargs.get('task_execution_details', None) + + +class AzureIaaSVMProtectedItemExtendedInfo(Model): + """Additional information on Azure IaaS VM specific backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + backup item. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies available for this + backup item. + :type recovery_point_count: int + :param policy_inconsistent: Specifies if backup policy associated with the + backup item is inconsistent. + :type policy_inconsistent: bool + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) + self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) + self.recovery_point_count = kwargs.get('recovery_point_count', None) + self.policy_inconsistent = kwargs.get('policy_inconsistent', None) + + +class AzureIaaSVMProtectionPolicy(ProtectionPolicy): + """IaaS VM workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + :param instant_rp_retention_range_in_days: Instant RP retention policy + range in days + :type instant_rp_retention_range_in_days: int + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureIaaSVMProtectionPolicy, self).__init__(**kwargs) + self.schedule_policy = kwargs.get('schedule_policy', None) + self.retention_policy = kwargs.get('retention_policy', None) + self.instant_rp_retention_range_in_days = kwargs.get('instant_rp_retention_range_in_days', None) + self.time_zone = kwargs.get('time_zone', None) + self.backup_management_type = 'AzureIaasVM' + + +class ProtectionIntent(Model): + """Base class for backup ProtectionIntent. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} + } + + def __init__(self, **kwargs): + super(ProtectionIntent, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.item_id = kwargs.get('item_id', None) + self.policy_id = kwargs.get('policy_id', None) + self.protection_state = kwargs.get('protection_state', None) + self.protection_intent_item_type = None + + +class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): + """Azure Recovery Services Vault specific protection intent item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadAutoProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} + } + + def __init__(self, **kwargs): + super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(**kwargs) + self.protection_intent_item_type = 'RecoveryServiceVaultItem' + + +class AzureResourceProtectionIntent(ProtectionIntent): + """IaaS VM specific backup protection intent item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureResourceProtectionIntent, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.protection_intent_item_type = 'AzureResourceItem' + + +class AzureWorkloadContainer(ProtectionContainer): + """Container for the workloads running inside Azure Compute or Classic + Compute. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadContainer, self).__init__(**kwargs) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.last_updated_time = kwargs.get('last_updated_time', None) + self.extended_info = kwargs.get('extended_info', None) + self.workload_type = kwargs.get('workload_type', None) + self.operation_type = kwargs.get('operation_type', None) + self.container_type = 'AzureWorkloadContainer' + + +class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): + """Container for SQL workloads under SQL Availability Group. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(**kwargs) + self.container_type = 'SQLAGWorkLoadContainer' + + +class AzureSqlContainer(ProtectionContainer): + """Azure Sql workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureSqlContainer, self).__init__(**kwargs) + self.container_type = 'AzureSqlContainer' + + +class AzureSqlProtectedItem(ProtectedItem): + """Azure SQL workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param protected_item_data_id: Internal ID of a backup item. Used by Azure + SQL Backup engine to contact Recovery Services. + :type protected_item_data_id: str + :param protection_state: Backup state of the backed up item. Possible + values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureSqlProtectedItem, self).__init__(**kwargs) + self.protected_item_data_id = kwargs.get('protected_item_data_id', None) + self.protection_state = kwargs.get('protection_state', None) + self.extended_info = kwargs.get('extended_info', None) + self.protected_item_type = 'Microsoft.Sql/servers/databases' + + +class AzureSqlProtectedItemExtendedInfo(Model): + """Additional information on Azure Sql specific protected item. + + :param oldest_recovery_point: The oldest backup copy available for this + item in the service. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of available backup copies associated + with this backup item. + :type recovery_point_count: int + :param policy_state: State of the backup policy associated with this + backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureSqlProtectedItemExtendedInfo, self).__init__(**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) + + +class AzureSqlProtectionPolicy(ProtectionPolicy): + """Azure SQL workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param retention_policy: Retention policy details. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, **kwargs): + super(AzureSqlProtectionPolicy, self).__init__(**kwargs) + self.retention_policy = kwargs.get('retention_policy', None) + self.backup_management_type = 'AzureSql' + + +class AzureStorageContainer(ProtectionContainer): + """Azure Storage Account workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: Fully qualified ARM url. + :type source_resource_id: str + :param storage_account_version: Storage account version. + :type storage_account_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + :param protected_item_count: Number of items backed up in this container. + :type protected_item_count: long + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(AzureStorageContainer, self).__init__(**kwargs) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.storage_account_version = kwargs.get('storage_account_version', None) + self.resource_group = kwargs.get('resource_group', None) + self.protected_item_count = kwargs.get('protected_item_count', None) + self.container_type = 'StorageContainer' + + +class AzureStorageErrorInfo(Model): + """Azure storage specific error information. + + :param error_code: Error code. + :type error_code: int + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AzureStorageErrorInfo, self).__init__(**kwargs) + self.error_code = kwargs.get('error_code', None) + self.error_string = kwargs.get('error_string', None) + self.recommendations = kwargs.get('recommendations', None) + + +class AzureStorageJob(Job): + """Azure storage specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] + :param storage_account_name: Specifies friendly name of the storage + account. + :type storage_account_name: str + :param storage_account_version: Specifies whether the Storage account is a + Classic or an Azure Resource Manager Storage account. + :type storage_account_version: str + :param extended_info: Additional information about the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureStorageJob, self).__init__(**kwargs) + self.duration = kwargs.get('duration', None) + self.actions_info = kwargs.get('actions_info', None) + self.error_details = kwargs.get('error_details', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.storage_account_version = kwargs.get('storage_account_version', None) + self.extended_info = kwargs.get('extended_info', None) + self.job_type = 'AzureStorageJob' + + +class AzureStorageJobExtendedInfo(Model): + """Azure Storage workload-specific additional information for job. + + :param tasks_list: List of tasks for this job + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = kwargs.get('tasks_list', None) + self.property_bag = kwargs.get('property_bag', None) + self.dynamic_error_message = kwargs.get('dynamic_error_message', None) + + +class AzureStorageJobTaskDetails(Model): + """Azure storage workload specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureStorageJobTaskDetails, self).__init__(**kwargs) + self.task_id = kwargs.get('task_id', None) + self.status = kwargs.get('status', None) + + +class ProtectableContainer(Model): + """Protectable Container Class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + _subtype_map = { + 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} + } + + def __init__(self, **kwargs): + super(ProtectableContainer, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.health_status = kwargs.get('health_status', None) + self.container_id = kwargs.get('container_id', None) + self.protectable_container_type = None + + +class AzureStorageProtectableContainer(ProtectableContainer): + """Azure Storage-specific protectable containers. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureStorageProtectableContainer, self).__init__(**kwargs) + self.protectable_container_type = 'StorageContainer' + + +class AzureVMAppContainerProtectableContainer(ProtectableContainer): + """Azure workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureVMAppContainerProtectableContainer, self).__init__(**kwargs) + self.protectable_container_type = 'VMAppContainer' + + +class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): + """Container for SQL workloads under Azure Virtual Machines. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureVMAppContainerProtectionContainer, self).__init__(**kwargs) + self.container_type = 'VMAppContainer' + + +class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): + """AzureResource(IaaS VM) Specific feature support request. + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + :param vm_size: Size of the resource: VM size(A/D series etc) in case of + IaasVM + :type vm_size: str + :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM + :type vm_sku: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'vm_sku': {'key': 'vmSku', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) + self.vm_size = kwargs.get('vm_size', None) + self.vm_sku = kwargs.get('vm_sku', None) + self.feature_type = 'AzureVMResourceBackup' + + +class AzureVMResourceFeatureSupportResponse(Model): + """Response for feature support requests for Azure IaasVm. + + :param support_status: Support status of feature. Possible values include: + 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' + :type support_status: str or + ~azure.mgmt.recoveryservicesbackup.models.SupportStatus + """ + + _attribute_map = { + 'support_status': {'key': 'supportStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) + self.support_status = kwargs.get('support_status', None) + + +class WorkloadItem(Model): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadItem + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + } + + _subtype_map = { + 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} + } + + def __init__(self, **kwargs): + super(WorkloadItem, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.protection_state = kwargs.get('protection_state', None) + self.workload_item_type = None + + +class AzureVmWorkloadItem(WorkloadItem): + """Azure VM workload-specific workload item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceWorkloadItem + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + _subtype_map = { + 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadItem, self).__init__(**kwargs) + self.parent_name = kwargs.get('parent_name', None) + self.server_name = kwargs.get('server_name', None) + self.is_auto_protectable = kwargs.get('is_auto_protectable', None) + self.subinquireditemcount = kwargs.get('subinquireditemcount', None) + self.sub_workload_item_count = kwargs.get('sub_workload_item_count', None) + self.workload_item_type = 'AzureVmWorkloadItem' + + +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, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLInstanceProtectableItem + + 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'}, + } + + _subtype_map = { + 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadProtectableItem, self).__init__(**kwargs) + self.parent_name = kwargs.get('parent_name', None) + self.parent_unique_name = kwargs.get('parent_unique_name', None) + self.server_name = kwargs.get('server_name', None) + self.is_auto_protectable = kwargs.get('is_auto_protectable', None) + self.is_auto_protected = kwargs.get('is_auto_protected', None) + self.subinquireditemcount = kwargs.get('subinquireditemcount', None) + self.subprotectableitemcount = kwargs.get('subprotectableitemcount', None) + self.prebackupvalidation = kwargs.get('prebackupvalidation', None) + self.protectable_item_type = 'AzureVmWorkloadProtectableItem' + + +class AzureVmWorkloadProtectedItem(ProtectedItem): + """Azure VM workload-specific protected item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + _subtype_map = { + 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadProtectedItem, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.server_name = kwargs.get('server_name', None) + self.parent_name = kwargs.get('parent_name', None) + self.parent_type = kwargs.get('parent_type', None) + self.protection_status = kwargs.get('protection_status', None) + self.protection_state = kwargs.get('protection_state', None) + self.last_backup_status = kwargs.get('last_backup_status', None) + self.last_backup_time = kwargs.get('last_backup_time', None) + self.last_backup_error_detail = kwargs.get('last_backup_error_detail', None) + self.protected_item_data_source_id = kwargs.get('protected_item_data_source_id', None) + self.protected_item_health_status = kwargs.get('protected_item_health_status', None) + self.extended_info = kwargs.get('extended_info', None) + self.protected_item_type = 'AzureVmWorkloadProtectedItem' + + +class AzureVmWorkloadProtectedItemExtendedInfo(Model): + """Additional information on Azure Workload for SQL specific backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + backup item. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies available for this + backup item. + :type recovery_point_count: int + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**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) + + +class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): + """Azure VM (Mercury) workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param work_load_type: Type of workload for the backup management. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type work_load_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param settings: Common settings for the backup management + :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings + :param sub_protection_policy: List of sub-protection policies which + includes schedule and retention + :type sub_protection_policy: + list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': 'Settings'}, + 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadProtectionPolicy, self).__init__(**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.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. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(**kwargs) + self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' + + +class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(**kwargs) + self.workload_item_type = 'SAPAseDatabase' + + +class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP ASE System. + + 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(AzureVmWorkloadSAPAseSystemProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SAPAseSystem' + + +class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP ASE System. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(**kwargs) + self.workload_item_type = 'SAPAseSystem' + + +class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP HANA 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(AzureVmWorkloadSAPHanaDatabaseProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): + """Azure VM workload-specific protected item representing SAP HANA Database. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(**kwargs) + self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP HANA 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(**kwargs) + self.workload_item_type = 'SAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP HANA System. + + 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(AzureVmWorkloadSAPHanaSystemProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SAPHanaSystem' + + +class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP HANA System. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(**kwargs) + self.workload_item_type = 'SAPHanaSystem' + + +class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL Availability + Group. + + 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(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SQLAvailabilityGroupContainer' + + +class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL 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(AzureVmWorkloadSQLDatabaseProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SQLDataBase' + + +class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): + """Azure VM workload-specific protected item representing SQL Database. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(**kwargs) + self.protected_item_type = 'AzureVmWorkloadSQLDatabase' + + +class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SQL 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(**kwargs) + self.workload_item_type = 'SQLDataBase' + + +class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL Instance. + + 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(AzureVmWorkloadSQLInstanceProtectableItem, self).__init__(**kwargs) + self.protectable_item_type = 'SQLInstance' + + +class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SQL Instance. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + :param data_directory_paths: Data Directory Paths for default directories + :type data_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, + } + + def __init__(self, **kwargs): + super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(**kwargs) + self.data_directory_paths = kwargs.get('data_directory_paths', None) + self.workload_item_type = 'SQLInstance' + + +class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): + """Azure Recovery Services Vault specific protection intent item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLAutoProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadAutoProtectionIntent, self).__init__(**kwargs) + self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' + + +class AzureWorkloadBackupRequest(BackupRequest): + """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or + CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', + 'Log', 'CopyOnlyFull' + :type backup_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupType + :param enable_compression: Bool for Compression setting + :type enable_compression: bool + :param recovery_point_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadBackupRequest, self).__init__(**kwargs) + self.backup_type = kwargs.get('backup_type', None) + self.enable_compression = kwargs.get('enable_compression', None) + self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) + self.object_type = 'AzureWorkloadBackupRequest' + + +class AzureWorkloadContainerExtendedInfo(Model): + """Extended information of the container. + + :param host_server_name: Host Os Name in case of Stand Alone and Cluster + Name in case of distributed container. + :type host_server_name: str + :param inquiry_info: Inquiry Status for the container. + :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo + :param nodes_list: List of the nodes in case of distributed container. + :type nodes_list: + list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] + """ + + _attribute_map = { + 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, + 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, + 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) + self.host_server_name = kwargs.get('host_server_name', None) + self.inquiry_info = kwargs.get('inquiry_info', None) + self.nodes_list = kwargs.get('nodes_list', None) + + +class AzureWorkloadErrorInfo(Model): + """Azure storage specific error information. + + :param error_code: Error code. + :type error_code: int + :param error_string: Localized error string. + :type error_string: str + :param error_title: Title: Typically, the entity that the error pertains + to. + :type error_title: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + :param additional_details: Additional details for above error code. + :type additional_details: str + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadErrorInfo, self).__init__(**kwargs) + self.error_code = kwargs.get('error_code', None) + self.error_string = kwargs.get('error_string', None) + self.error_title = kwargs.get('error_title', None) + self.recommendations = kwargs.get('recommendations', None) + self.additional_details = kwargs.get('additional_details', None) + + +class AzureWorkloadJob(Job): + """Azure storage specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param workload_type: Workload type of the job + :type workload_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] + :param extended_info: Additional information about the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadJob, self).__init__(**kwargs) + self.workload_type = kwargs.get('workload_type', None) + self.duration = kwargs.get('duration', None) + self.actions_info = kwargs.get('actions_info', None) + self.error_details = kwargs.get('error_details', None) + self.extended_info = kwargs.get('extended_info', None) + self.job_type = 'AzureWorkloadJob' + + +class AzureWorkloadJobExtendedInfo(Model): + """Azure VM workload-specific additional information for job. + + :param tasks_list: List of tasks for this job + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = kwargs.get('tasks_list', None) + self.property_bag = kwargs.get('property_bag', None) + self.dynamic_error_message = kwargs.get('dynamic_error_message', None) + + +class AzureWorkloadJobTaskDetails(Model): + """Azure VM workload specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) + self.task_id = kwargs.get('task_id', None) + self.status = kwargs.get('status', None) + + +class AzureWorkloadRecoveryPoint(RecoveryPoint): + """Workload specific recovery point, specifically encapsulates full/diff + recovery point. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} + } + + 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.object_type = 'AzureWorkloadRecoveryPoint' + + +class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): + """Recovery point specific to PointInTime. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) + self.time_ranges = kwargs.get('time_ranges', None) + self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' + + +class AzureWorkloadRestoreRequest(RestoreRequest): + """AzureWorkload-specific restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) + self.recovery_type = kwargs.get('recovery_type', None) + 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.object_type = 'AzureWorkloadRestoreRequest' + + +class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) + self.point_in_time = kwargs.get('point_in_time', None) + self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' + + +class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): + """Recovery point specific to PointInTime in SAPHana. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(**kwargs) + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' + + +class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SAP Hana-specific restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) + self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' + + +class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): + """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(**kwargs) + self.point_in_time = kwargs.get('point_in_time', None) + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' + + +class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): + """SAPHana specific recovery point, specifically encapsulates full/diff + recovery points. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) + self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' + + +class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): + """Azure Workload SQL Auto Protection intent item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + :param workload_item_type: Workload item type of the item for which intent + is to be set. Possible values include: 'Invalid', 'SQLInstance', + 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + 'SAPAseDatabase' + :type workload_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(**kwargs) + self.workload_item_type = kwargs.get('workload_item_type', None) + self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' + + +class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): + """SQL specific recovery point, specifically encapsulates full/diff recovery + point along with extended info. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param extended_info: Extended Info that provides data directory details. + Will be populated in two cases: + When a specific recovery point is accessed using GetRecoveryPoint + Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo + query filter + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) + self.extended_info = kwargs.get('extended_info', None) + self.object_type = 'AzureWorkloadSQLRecoveryPoint' + + +class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): + """Recovery point specific to PointInTime. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param extended_info: Extended Info that provides data directory details. + Will be populated in two cases: + When a specific recovery point is accessed using GetRecoveryPoint + Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo + query filter + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, + 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, + } + + def __init__(self, **kwargs): + super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(**kwargs) + self.time_ranges = kwargs.get('time_ranges', None) + self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' + + +class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SQL -specific restore. Specifically for full/diff restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 + :param is_non_recoverable: SQL specific property where user can chose to + set no-recovery when restore operation is tried + :type is_non_recoverable: bool + :param alternate_directory_paths: Data directory details + :type alternate_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, + 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, + 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadSQLRestoreRequest, self).__init__(**kwargs) + self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) + self.is_non_recoverable = kwargs.get('is_non_recoverable', None) + self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) + self.object_type = 'AzureWorkloadSQLRestoreRequest' + + +class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): + """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 + :param is_non_recoverable: SQL specific property where user can chose to + set no-recovery when restore operation is tried + :type is_non_recoverable: bool + :param alternate_directory_paths: Data directory details + :type alternate_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + '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, **kwargs): + super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(**kwargs) + self.point_in_time = kwargs.get('point_in_time', None) + self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' + + +class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): + """Extended info class details. + + :param 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 + operation. + :type data_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] + """ + + _attribute_map = { + 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, + 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, + } + + 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) + + +class Resource(Model): + """ARM Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.e_tag = kwargs.get('e_tag', None) + + +class BackupEngineBaseResource(Resource): + """The base backup engine class. All workload specific backup engines derive + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupEngineBaseResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, + } + + def __init__(self, **kwargs): + super(BackupEngineBaseResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BackupEngineExtendedInfo(Model): + """Additional information on backup engine. + + :param database_name: Database name of backup engine. + :type database_name: str + :param protected_items_count: Number of protected items in the backup + engine. + :type protected_items_count: int + :param protected_servers_count: Number of protected servers in the backup + engine. + :type protected_servers_count: int + :param disk_count: Number of disks in the backup engine. + :type disk_count: int + :param used_disk_space: Disk space used in the backup engine. + :type used_disk_space: float + :param available_disk_space: Disk space currently available in the backup + engine. + :type available_disk_space: float + :param refreshed_at: Last refresh time in the backup engine. + :type refreshed_at: datetime + :param azure_protected_instances: Protected instances in the backup + engine. + :type azure_protected_instances: int + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, + 'disk_count': {'key': 'diskCount', 'type': 'int'}, + 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, + 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, + 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, + 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(BackupEngineExtendedInfo, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.protected_items_count = kwargs.get('protected_items_count', None) + self.protected_servers_count = kwargs.get('protected_servers_count', None) + self.disk_count = kwargs.get('disk_count', None) + self.used_disk_space = kwargs.get('used_disk_space', None) + self.available_disk_space = kwargs.get('available_disk_space', None) + self.refreshed_at = kwargs.get('refreshed_at', None) + self.azure_protected_instances = kwargs.get('azure_protected_instances', None) + + +class BackupManagementUsage(Model): + """Backup management usages of a vault. + + :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', + 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' + :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit + :param quota_period: Quota period of usage. + :type quota_period: str + :param next_reset_time: Next reset time of usage. + :type next_reset_time: datetime + :param current_value: Current value of usage. + :type current_value: long + :param limit: Limit of usage. + :type limit: long + :param name: Name of usage. + :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo + """ + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, + 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'NameInfo'}, + } + + def __init__(self, **kwargs): + super(BackupManagementUsage, self).__init__(**kwargs) + self.unit = kwargs.get('unit', None) + self.quota_period = kwargs.get('quota_period', None) + self.next_reset_time = kwargs.get('next_reset_time', None) + self.current_value = kwargs.get('current_value', None) + self.limit = kwargs.get('limit', None) + self.name = kwargs.get('name', None) + + +class BackupRequestResource(Resource): + """Base class for backup request. Workload-specific backup requests are + derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupRequest'}, + } + + def __init__(self, **kwargs): + super(BackupRequestResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BackupResourceConfig(Model): + """The resource storage details. + + :param storage_model_type: Storage type. Possible values include: + 'Invalid', 'GeoRedundant', 'LocallyRedundant' + :type storage_model_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type: Storage type. Possible values include: 'Invalid', + 'GeoRedundant', 'LocallyRedundant' + :type storage_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type_state: Locked or Unlocked. Once a machine is + registered against a resource, the storageTypeState is always Locked. + Possible values include: 'Invalid', 'Locked', 'Unlocked' + :type storage_type_state: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState + """ + + _attribute_map = { + 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'}, + 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupResourceConfig, self).__init__(**kwargs) + self.storage_model_type = kwargs.get('storage_model_type', None) + self.storage_type = kwargs.get('storage_type', None) + self.storage_type_state = kwargs.get('storage_type_state', None) + + +class BackupResourceConfigResource(Resource): + """The resource storage details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceConfigResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, + } + + def __init__(self, **kwargs): + super(BackupResourceConfigResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BackupResourceVaultConfig(Model): + """Backup resource vault config details. + + :param storage_model_type: Storage type. Possible values include: + 'Invalid', 'GeoRedundant', 'LocallyRedundant' + :type storage_model_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type: Storage type. Possible values include: 'Invalid', + 'GeoRedundant', 'LocallyRedundant' + :type storage_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type_state: Locked or Unlocked. Once a machine is + registered against a resource, the storageTypeState is always Locked. + Possible values include: 'Invalid', 'Locked', 'Unlocked' + :type storage_type_state: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState + :param enhanced_security_state: Enabled or Disabled. Possible values + include: 'Invalid', 'Enabled', 'Disabled' + :type enhanced_security_state: str or + ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState + """ + + _attribute_map = { + 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'}, + 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, + 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupResourceVaultConfig, self).__init__(**kwargs) + self.storage_model_type = kwargs.get('storage_model_type', None) + 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) + + +class BackupResourceVaultConfigResource(Resource): + """Backup resource vault config details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceVaultConfigResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, + } + + def __init__(self, **kwargs): + super(BackupResourceVaultConfigResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class BackupStatusRequest(Model): + """BackupStatus request. + + :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type resource_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param resource_id: Entire ARM resource id of the resource + :type resource_id: str + :param po_logical_name: Protectable Item Logical Name + :type po_logical_name: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupStatusRequest, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.resource_id = kwargs.get('resource_id', None) + self.po_logical_name = kwargs.get('po_logical_name', None) + + +class BackupStatusResponse(Model): + """BackupStatus response. + + :param protection_status: Specifies whether the container is registered or + not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + 'Protected', 'ProtectionFailed' + :type protection_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param vault_id: Specifies the arm resource id of the vault + :type vault_id: str + :param fabric_name: Specifies the fabric name - Azure or AD. Possible + values include: 'Invalid', 'Azure' + :type fabric_name: str or + ~azure.mgmt.recoveryservicesbackup.models.FabricName + :param container_name: Specifies the product specific container name. E.g. + iaasvmcontainer;iaasvmcontainer;csname;vmname. + :type container_name: str + :param protected_item_name: Specifies the product specific ds name. E.g. + vm;iaasvmcontainer;csname;vmname. + :type protected_item_name: str + :param error_code: ErrorCode in case of intent failed + :type error_code: str + :param error_message: ErrorMessage in case of intent failed. + :type error_message: str + :param policy_name: Specifies the policy name which is used for protection + :type policy_name: str + :param registration_status: Container registration status + :type registration_status: str + """ + + _attribute_map = { + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'vault_id': {'key': 'vaultId', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackupStatusResponse, self).__init__(**kwargs) + self.protection_status = kwargs.get('protection_status', None) + self.vault_id = kwargs.get('vault_id', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.container_name = kwargs.get('container_name', None) + self.protected_item_name = kwargs.get('protected_item_name', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + self.policy_name = kwargs.get('policy_name', None) + self.registration_status = kwargs.get('registration_status', None) + + +class BEKDetails(Model): + """BEK is bitlocker encryption key. + + :param secret_url: Secret is BEK. + :type secret_url: str + :param secret_vault_id: ID of the Key Vault where this Secret is stored. + :type secret_vault_id: str + :param secret_data: BEK data. + :type secret_data: str + """ + + _attribute_map = { + 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, + 'secret_data': {'key': 'secretData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BEKDetails, self).__init__(**kwargs) + self.secret_url = kwargs.get('secret_url', None) + self.secret_vault_id = kwargs.get('secret_vault_id', None) + self.secret_data = kwargs.get('secret_data', None) + + +class BMSBackupEngineQueryObject(Model): + """Query parameters to fetch list of backup engines. + + :param expand: attribute to add extended info + :type expand: str + """ + + _attribute_map = { + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSBackupEngineQueryObject, self).__init__(**kwargs) + self.expand = kwargs.get('expand', None) + + +class BMSBackupEnginesQueryObject(Model): + """Query parameters to fetch list of backup engines. + + :param backup_management_type: Backup management type for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param expand: Attribute to add extended info. + :type expand: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.expand = kwargs.get('expand', None) + + +class BMSBackupSummariesQueryObject(Model): + """Query parameters to fetch backup summaries. + + :param type: Backup management type for this container. Possible values + include: 'Invalid', 'BackupProtectedItemCountSummary', + 'BackupProtectionContainerCountSummary' + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + + +class BMSContainerQueryObject(Model): + """The query filters that can be used with the list containers API. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Required. Backup management type for this + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param container_type: Type of container for filter. Possible values + include: 'Invalid', 'Unknown', 'IaasVMContainer', + 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', + 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', + 'GenericContainer' + :type container_type: str or + ~azure.mgmt.recoveryservicesbackup.models.ContainerType + :param backup_engine_name: Backup engine name + :type backup_engine_name: str + :param fabric_name: Fabric name for filter + :type fabric_name: str + :param status: Status of registration of this container with the Recovery + Services Vault. + :type status: str + :param friendly_name: Friendly name of this container. + :type friendly_name: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSContainerQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.container_type = kwargs.get('container_type', None) + self.backup_engine_name = kwargs.get('backup_engine_name', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.status = kwargs.get('status', None) + self.friendly_name = kwargs.get('friendly_name', None) + + +class BMSContainersInquiryQueryObject(Model): + """The query filters that can be used with the inquire container API. + + :param backup_management_type: Backup management type for this container. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Workload type for this container. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_type = kwargs.get('workload_type', None) + + +class BMSPOQueryObject(Model): + """Filters to list items that can be backed up. + + :param backup_management_type: Backup management type. Possible values + include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', + 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Workload type. Possible values include: 'Invalid', + 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', + 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param container_name: Full name of the container whose Protectable + Objects should be returned. + :type container_name: str + :param status: Backup status query parameter. + :type status: str + :param friendly_name: Friendly name. + :type friendly_name: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSPOQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.container_name = kwargs.get('container_name', None) + self.status = kwargs.get('status', None) + self.friendly_name = kwargs.get('friendly_name', None) + + +class BMSRefreshContainersQueryObject(Model): + """The query filters that can be used with the refresh container API. + + :param backup_management_type: Backup management type for this container. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + + +class BMSRPQueryObject(Model): + """Filters to list backup copies. + + :param start_date: Backup copies created after this time. + :type start_date: datetime + :param end_date: Backup copies created before this time. + :type end_date: datetime + :param restore_point_query_type: RestorePoint type. Possible values + include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', + 'All' + :type restore_point_query_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType + :param extended_info: In Get Recovery Point, it tells whether extended + information about recovery point is asked. + :type extended_info: bool + """ + + _attribute_map = { + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(BMSRPQueryObject, self).__init__(**kwargs) + self.start_date = kwargs.get('start_date', None) + self.end_date = kwargs.get('end_date', None) + self.restore_point_query_type = kwargs.get('restore_point_query_type', None) + self.extended_info = kwargs.get('extended_info', None) + + +class BMSWorkloadItemQueryObject(Model): + """Filters to list items that can be backed up. + + :param backup_management_type: Backup management type. Possible values + include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', + 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_item_type: Workload Item type. Possible values include: + 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', + 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + :type workload_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType + :param workload_type: Workload type. Possible values include: 'Invalid', + 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', + 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param protection_status: Backup status query parameter. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.workload_item_type = kwargs.get('workload_item_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.protection_status = kwargs.get('protection_status', None) + + +class ClientDiscoveryDisplay(Model): + """Localized display information of an operation. + + :param provider: Name of the provider for display purposes + :type provider: str + :param resource: ResourceType for which this Operation can be performed. + :type resource: str + :param operation: Operations Name itself. + :type operation: str + :param description: Description of the operation having details of what + operation is about. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClientDiscoveryDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ClientDiscoveryForLogSpecification(Model): + """Class to represent shoebox log specification in json client discovery. + + :param name: Name for shoebox log specification. + :type name: str + :param display_name: Localized display name + :type display_name: str + :param blob_duration: blob duration of shoebox log specification + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class ClientDiscoveryForProperties(Model): + """Class to represent shoebox properties in json client discovery. + + :param service_specification: Operation properties. + :type service_specification: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(ClientDiscoveryForProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + +class ClientDiscoveryForServiceSpecification(Model): + """Class to represent shoebox service specification in json client discovery. + + :param log_specifications: List of log specifications of this operation. + :type log_specifications: + list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, + } + + def __init__(self, **kwargs): + super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + + +class ClientDiscoveryValueForSingleApi(Model): + """Available operation details. + + :param name: Name of the Operation. + :type name: str + :param display: Contains the localized display information for this + particular operation + :type display: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay + :param origin: The intended executor of the operation;governs the display + of the operation in the RBAC UX and the audit logs UX + :type origin: str + :param properties: ShoeBox properties for the given operation. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, + } + + def __init__(self, **kwargs): + super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) + + +class ClientScriptForConnect(Model): + """Client script details for file / folder restore. + + :param script_content: File content of the client script for file / folder + restore. + :type script_content: str + :param script_extension: File extension of the client script for file / + folder restore - .ps1 , .sh , etc. + :type script_extension: str + :param os_type: OS type - Windows, Linux etc. for which this file / folder + restore client script works. + :type os_type: str + :param url: URL of Executable from where to source the content. If this is + not null then ScriptContent should not be used + :type url: str + :param script_name_suffix: Mandatory suffix that should be added to the + name of script that is given for download to user. + If its null or empty then , ignore it. + :type script_name_suffix: str + """ + + _attribute_map = { + 'script_content': {'key': 'scriptContent', 'type': 'str'}, + 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClientScriptForConnect, self).__init__(**kwargs) + self.script_content = kwargs.get('script_content', None) + self.script_extension = kwargs.get('script_extension', None) + self.os_type = kwargs.get('os_type', None) + self.url = kwargs.get('url', None) + self.script_name_suffix = kwargs.get('script_name_suffix', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ContainerIdentityInfo(Model): + """Container identity information. + + :param unique_name: Unique name of the container + :type unique_name: str + :param aad_tenant_id: Protection container identity - AAD Tenant + :type aad_tenant_id: str + :param service_principal_client_id: Protection container identity - AAD + Service Principal + :type service_principal_client_id: str + :param audience: Protection container identity - Audience + :type audience: str + """ + + _attribute_map = { + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, + 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerIdentityInfo, self).__init__(**kwargs) + self.unique_name = kwargs.get('unique_name', None) + self.aad_tenant_id = kwargs.get('aad_tenant_id', None) + self.service_principal_client_id = kwargs.get('service_principal_client_id', None) + self.audience = kwargs.get('audience', None) + + +class DailyRetentionFormat(Model): + """Daily retention format. + + :param days_of_the_month: List of days of the month. + :type days_of_the_month: + list[~azure.mgmt.recoveryservicesbackup.models.Day] + """ + + _attribute_map = { + 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, + } + + def __init__(self, **kwargs): + super(DailyRetentionFormat, self).__init__(**kwargs) + self.days_of_the_month = kwargs.get('days_of_the_month', None) + + +class DailyRetentionSchedule(Model): + """Daily retention schedule. + + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, **kwargs): + super(DailyRetentionSchedule, self).__init__(**kwargs) + self.retention_times = kwargs.get('retention_times', None) + self.retention_duration = kwargs.get('retention_duration', None) + + +class Day(Model): + """Day of the week. + + :param date_property: Date of the month + :type date_property: int + :param is_last: Whether Date is last date of month + :type is_last: bool + """ + + _attribute_map = { + 'date_property': {'key': 'date', 'type': 'int'}, + 'is_last': {'key': 'isLast', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(Day, self).__init__(**kwargs) + self.date_property = kwargs.get('date_property', None) + self.is_last = kwargs.get('is_last', None) + + +class DistributedNodesInfo(Model): + """This is used to represent the various nodes of the distributed container. + + :param node_name: Name of the node under a distributed container. + :type node_name: str + :param status: Status of this Node. + Failed | Succeeded + :type status: str + :param error_detail: Error Details if the Status is non-success. + :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + """ + + _attribute_map = { + 'node_name': {'key': 'nodeName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + } + + def __init__(self, **kwargs): + super(DistributedNodesInfo, self).__init__(**kwargs) + self.node_name = kwargs.get('node_name', None) + self.status = kwargs.get('status', None) + self.error_detail = kwargs.get('error_detail', None) + + +class DpmBackupEngine(BackupEngineBase): + """Data Protection Manager (DPM) specific backup engine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DpmBackupEngine, self).__init__(**kwargs) + self.backup_engine_type = 'DpmBackupEngine' + + +class DPMContainerExtendedInfo(Model): + """Additional information of the DPMContainer. + + :param last_refreshed_at: Last refresh time of the DPMContainer. + :type last_refreshed_at: datetime + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(DPMContainerExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = kwargs.get('last_refreshed_at', None) + + +class DpmErrorInfo(Model): + """DPM workload-specific error information. + + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DpmErrorInfo, self).__init__(**kwargs) + self.error_string = kwargs.get('error_string', None) + self.recommendations = kwargs.get('recommendations', None) + + +class DpmJob(Job): + """DPM workload-specific job object. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed for job. + :type duration: timedelta + :param dpm_server_name: DPM server name managing the backup item or backup + job. + :type dpm_server_name: str + :param container_name: Name of cluster/server protecting current backup + item, if any. + :type container_name: str + :param container_type: Type of container. + :type container_type: str + :param workload_type: Type of backup item. + :type workload_type: str + :param actions_info: The state/actions applicable on this job like + cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: The errors. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] + :param extended_info: Additional information for this job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(DpmJob, self).__init__(**kwargs) + self.duration = kwargs.get('duration', None) + self.dpm_server_name = kwargs.get('dpm_server_name', None) + self.container_name = kwargs.get('container_name', None) + self.container_type = kwargs.get('container_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.actions_info = kwargs.get('actions_info', None) + self.error_details = kwargs.get('error_details', None) + self.extended_info = kwargs.get('extended_info', None) + self.job_type = 'DpmJob' + + +class DpmJobExtendedInfo(Model): + """Additional information on the DPM workload-specific job. + + :param tasks_list: List of tasks associated with this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] + :param property_bag: The job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DpmJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = kwargs.get('tasks_list', None) + self.property_bag = kwargs.get('property_bag', None) + self.dynamic_error_message = kwargs.get('dynamic_error_message', None) + + +class DpmJobTaskDetails(Model): + """DPM workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DpmJobTaskDetails, self).__init__(**kwargs) + self.task_id = kwargs.get('task_id', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.duration = kwargs.get('duration', None) + self.status = kwargs.get('status', None) + + +class DPMProtectedItem(ProtectedItem): + """Additional information on Backup engine specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the managed item + :type friendly_name: str + :param backup_engine_name: Backup Management server protecting this backup + item + :type backup_engine_name: str + :param protection_state: Protection state of the backup engine. Possible + values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState + :param extended_info: Extended info of the backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(DPMProtectedItem, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.backup_engine_name = kwargs.get('backup_engine_name', None) + self.protection_state = kwargs.get('protection_state', None) + self.extended_info = kwargs.get('extended_info', None) + self.protected_item_type = 'DPMProtectedItem' + + +class DPMProtectedItemExtendedInfo(Model): + """Additional information of DPM Protected item. + + :param protectable_object_load_path: Attribute to provide information on + various DBs. + :type protectable_object_load_path: dict[str, str] + :param protected: To check if backup item is disk protected. + :type protected: bool + :param is_present_on_cloud: To check if backup item is cloud protected. + :type is_present_on_cloud: bool + :param last_backup_status: Last backup status information on backup item. + :type last_backup_status: str + :param last_refreshed_at: Last refresh time on backup item. + :type last_refreshed_at: datetime + :param oldest_recovery_point: Oldest cloud recovery point time. + :type oldest_recovery_point: datetime + :param recovery_point_count: cloud recovery point count. + :type recovery_point_count: int + :param on_premise_oldest_recovery_point: Oldest disk recovery point time. + :type on_premise_oldest_recovery_point: datetime + :param on_premise_latest_recovery_point: latest disk recovery point time. + :type on_premise_latest_recovery_point: datetime + :param on_premise_recovery_point_count: disk recovery point count. + :type on_premise_recovery_point_count: int + :param is_collocated: To check if backup item is collocated. + :type is_collocated: bool + :param protection_group_name: Protection group name of the backup item. + :type protection_group_name: str + :param disk_storage_used_in_bytes: Used Disk storage in bytes. + :type disk_storage_used_in_bytes: str + :param total_disk_storage_size_in_bytes: total Disk storage in bytes. + :type total_disk_storage_size_in_bytes: str + """ + + _attribute_map = { + 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, + 'protected': {'key': 'protected', 'type': 'bool'}, + 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, + 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, + 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, + 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, + 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, + 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, + 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) + self.protectable_object_load_path = kwargs.get('protectable_object_load_path', None) + self.protected = kwargs.get('protected', None) + self.is_present_on_cloud = kwargs.get('is_present_on_cloud', None) + self.last_backup_status = kwargs.get('last_backup_status', None) + self.last_refreshed_at = kwargs.get('last_refreshed_at', None) + self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) + self.recovery_point_count = kwargs.get('recovery_point_count', None) + self.on_premise_oldest_recovery_point = kwargs.get('on_premise_oldest_recovery_point', None) + self.on_premise_latest_recovery_point = kwargs.get('on_premise_latest_recovery_point', None) + self.on_premise_recovery_point_count = kwargs.get('on_premise_recovery_point_count', None) + self.is_collocated = kwargs.get('is_collocated', None) + self.protection_group_name = kwargs.get('protection_group_name', None) + self.disk_storage_used_in_bytes = kwargs.get('disk_storage_used_in_bytes', None) + self.total_disk_storage_size_in_bytes = kwargs.get('total_disk_storage_size_in_bytes', None) + + +class EncryptionDetails(Model): + """Details needed if the VM was encrypted at the time of backup. + + :param encryption_enabled: Identifies whether this backup copy represents + an encrypted VM at the time of backup. + :type encryption_enabled: bool + :param kek_url: Key Url. + :type kek_url: str + :param secret_key_url: Secret Url. + :type secret_key_url: str + :param kek_vault_id: ID of Key Vault where KEK is stored. + :type kek_vault_id: str + :param secret_key_vault_id: ID of Key Vault where Secret is stored. + :type secret_key_vault_id: str + """ + + _attribute_map = { + 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, + 'kek_url': {'key': 'kekUrl', 'type': 'str'}, + 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, + 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, + 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EncryptionDetails, self).__init__(**kwargs) + self.encryption_enabled = kwargs.get('encryption_enabled', None) + self.kek_url = kwargs.get('kek_url', None) + self.secret_key_url = kwargs.get('secret_key_url', None) + self.kek_vault_id = kwargs.get('kek_vault_id', None) + self.secret_key_vault_id = kwargs.get('secret_key_vault_id', None) + + +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] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + 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) + + +class OperationResultInfoBase(Model): + """Base class for operation result info. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo + + 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': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} + } + + def __init__(self, **kwargs): + super(OperationResultInfoBase, self).__init__(**kwargs) + self.object_type = None + + +class ExportJobsOperationResultInfo(OperationResultInfoBase): + """This class is used to send blob details after exporting jobs. + + 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 blob_url: URL of the blob into which the serialized string of list + of jobs is exported. + :type blob_url: str + :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. + :type blob_sas_key: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'blob_url': {'key': 'blobUrl', 'type': 'str'}, + 'blob_sas_key': {'key': 'blobSasKey', '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.object_type = 'ExportJobsOperationResultInfo' + + +class GenericContainer(ProtectionContainer): + """Base class for generic container of backup items. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param fabric_name: Name of the container's fabric + :type fabric_name: str + :param extended_information: Extended information (not returned in List + container API calls) + :type extended_information: + ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(GenericContainer, self).__init__(**kwargs) + self.fabric_name = kwargs.get('fabric_name', None) + self.extended_information = kwargs.get('extended_information', None) + self.container_type = 'GenericContainer' + + +class GenericContainerExtendedInfo(Model): + """Container extended information. + + :param raw_cert_data: Public key of container cert + :type raw_cert_data: str + :param container_identity_info: Container identity information + :type container_identity_info: + ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo + :param service_endpoints: Azure Backup Service Endpoints for the container + :type service_endpoints: dict[str, str] + """ + + _attribute_map = { + 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, + 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, + 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(GenericContainerExtendedInfo, self).__init__(**kwargs) + self.raw_cert_data = kwargs.get('raw_cert_data', None) + self.container_identity_info = kwargs.get('container_identity_info', None) + self.service_endpoints = kwargs.get('service_endpoints', None) + + +class GenericProtectedItem(ProtectedItem): + """Base class for backup items. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param protected_item_id: Data Plane Service ID of the protected item. + :type protected_item_id: long + :param source_associations: Loosely coupled (type, value) associations + (example - parent of a protected item) + :type source_associations: dict[str, str] + :param fabric_name: Name of this backup item's fabric. + :type fabric_name: str + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, + 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericProtectedItem, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.policy_state = kwargs.get('policy_state', None) + self.protection_state = kwargs.get('protection_state', None) + self.protected_item_id = kwargs.get('protected_item_id', None) + self.source_associations = kwargs.get('source_associations', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.protected_item_type = 'GenericProtectedItem' + + +class GenericProtectionPolicy(ProtectionPolicy): + """Azure VM (Mercury) workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param sub_protection_policy: List of sub-protection policies which + includes schedule and retention + :type sub_protection_policy: + list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + :param fabric_name: Name of this policy's fabric. + :type fabric_name: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericProtectionPolicy, self).__init__(**kwargs) + self.sub_protection_policy = kwargs.get('sub_protection_policy', None) + self.time_zone = kwargs.get('time_zone', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.backup_management_type = 'GenericProtectionPolicy' + + +class GenericRecoveryPoint(RecoveryPoint): + """Generic backup copy. + + 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 friendly_name: Friendly name of the backup copy. + :type friendly_name: 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 + with this backup copy. + :type recovery_point_additional_info: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericRecoveryPoint, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + 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.object_type = 'GenericRecoveryPoint' + + +class GetProtectedItemQueryObject(Model): + """Filters to list backup items. + + :param expand: Specifies if the additional information should be provided + for this item. + :type expand: str + """ + + _attribute_map = { + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GetProtectedItemQueryObject, self).__init__(**kwargs) + self.expand = kwargs.get('expand', None) + + +class IaasVMBackupRequest(BackupRequest): + """IaaS VM workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(IaasVMBackupRequest, self).__init__(**kwargs) + self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', 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): + super(ILRRequest, self).__init__(**kwargs) + self.object_type = None + + +class IaasVMILRRegistrationRequest(ILRRequest): + """Restore files/folders from a backup copy of IaaS VM. + + 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: ID of the IaaS VM backup copy from where the + files/folders have to be restored. + :type recovery_point_id: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + whose the files / folders have to be restored. + :type virtual_machine_id: str + :param initiator_name: iSCSI initiator name. + :type initiator_name: str + :param renew_existing_registration: Whether to renew existing registration + with the iSCSI server. + :type renew_existing_registration: bool + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, + 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) + self.recovery_point_id = kwargs.get('recovery_point_id', None) + self.virtual_machine_id = kwargs.get('virtual_machine_id', None) + self.initiator_name = kwargs.get('initiator_name', None) + self.renew_existing_registration = kwargs.get('renew_existing_registration', None) + self.object_type = 'IaasVMILRRegistrationRequest' + + +class IaasVMRecoveryPoint(RecoveryPoint): + """IaaS VM workload specific backup copy. + + 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 + with this backup copy. + :type recovery_point_additional_info: str + :param 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 + :param key_and_secret: Required details for recovering an encrypted VM. + Applicable only when IsSourceVMEncrypted is true. + :type key_and_secret: + ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails + :param is_instant_ilr_session_active: Is the session to recover items from + this backup copy still active. + :type is_instant_ilr_session_active: bool + :param recovery_point_tier_details: Recovery point tier information. + :type recovery_point_tier_details: + list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] + :param is_managed_virtual_machine: Whether VM is with Managed Disks + :type is_managed_virtual_machine: bool + :param virtual_machine_size: Virtual Machine Size + :type virtual_machine_size: str + :param original_storage_account_option: Original Storage Account Option + :type original_storage_account_option: bool + :param os_type: OS type + :type os_type: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, + 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, + 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, + 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, + 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, + 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, + 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, + 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, + 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + } + + 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.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) + self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None) + 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.object_type = 'IaasVMRecoveryPoint' + + +class IaasVMRestoreRequest(RestoreRequest): + """IaaS VM workload-specific restore. + + 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: 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' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM which is being + recovered. + :type source_resource_id: str + :param target_virtual_machine_id: This is the complete ARM Id of the VM + that will be created. + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + :type target_virtual_machine_id: str + :param target_resource_group_id: This is the ARM Id of the resource group + that you want to create for this Virtual machine and other artifacts. + For e.g. /subscriptions/{subId}/resourcegroups/{rg} + :type target_resource_group_id: str + :param storage_account_id: Fully qualified ARM ID of the storage account + to which the VM has to be restored. + :type storage_account_id: str + :param virtual_network_id: This is the virtual network Id of the vnet that + will be attached to the virtual machine. + User will be validated for join action permissions in the linked access. + :type virtual_network_id: str + :param subnet_id: Subnet ID, is the subnet ID associated with the to be + restored VM. For Classic VMs it would be + {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it + would be ARM resource ID used to represent + the subnet. + :type subnet_id: str + :param target_domain_name_id: Fully qualified ARM ID of the domain name to + be associated to the VM being restored. This applies only to Classic + Virtual Machines. + :type target_domain_name_id: str + :param region: Region in which the virtual machine is restored. + :type region: str + :param affinity_group: Affinity group associated to VM to be restored. + Used only for Classic Compute Virtual Machines. + :type affinity_group: str + :param create_new_cloud_service: Should a new cloud service be created + while restoring the VM. If this is false, VM will be restored to the same + cloud service as it was at the time of backup. + :type create_new_cloud_service: bool + :param original_storage_account_option: Original Storage Account Option + :type original_storage_account_option: bool + :param encryption_details: Details needed if the VM was encrypted at the + time of backup. + :type encryption_details: + ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, + 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, + 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'}, + 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, + 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, + 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, + 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, + } + + def __init__(self, **kwargs): + super(IaasVMRestoreRequest, self).__init__(**kwargs) + self.recovery_point_id = kwargs.get('recovery_point_id', None) + self.recovery_type = kwargs.get('recovery_type', None) + self.source_resource_id = kwargs.get('source_resource_id', None) + self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) + self.target_resource_group_id = kwargs.get('target_resource_group_id', None) + self.storage_account_id = kwargs.get('storage_account_id', None) + self.virtual_network_id = kwargs.get('virtual_network_id', None) + self.subnet_id = kwargs.get('subnet_id', None) + self.target_domain_name_id = kwargs.get('target_domain_name_id', None) + self.region = kwargs.get('region', None) + self.affinity_group = kwargs.get('affinity_group', None) + 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.object_type = 'IaasVMRestoreRequest' + + +class ILRRequestResource(Resource): + """Parameters to restore file/folders API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ILRRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ILRRequest'}, + } + + def __init__(self, **kwargs): + super(ILRRequestResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class InquiryInfo(Model): + """Details about inquired protectable items under a given container. + + :param status: Inquiry Status for this container such as + InProgress | Failed | Succeeded + :type status: str + :param error_detail: Error Details if the Status is non-success. + :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param inquiry_details: Inquiry Details which will have workload specific + details. + For e.g. - For SQL and oracle this will contain different details. + :type inquiry_details: + list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, + } + + def __init__(self, **kwargs): + super(InquiryInfo, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error_detail = kwargs.get('error_detail', None) + self.inquiry_details = kwargs.get('inquiry_details', None) + + +class InquiryValidation(Model): + """Validation for inquired protectable items under a given container. + + :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 + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + } + + def __init__(self, **kwargs): + super(InquiryValidation, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error_detail = kwargs.get('error_detail', None) + + +class InstantItemRecoveryTarget(Model): + """Target details for file / folder restore. + + :param client_scripts: List of client scripts. + :type client_scripts: + list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] + """ + + _attribute_map = { + 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, + } + + def __init__(self, **kwargs): + super(InstantItemRecoveryTarget, self).__init__(**kwargs) + self.client_scripts = kwargs.get('client_scripts', None) + + +class JobQueryObject(Model): + """Filters to list the jobs. + + :param status: Status of the job. Possible values include: 'Invalid', + 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', + 'Cancelling' + :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus + :param backup_management_type: Type of backup management for the job. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: Type of operation. Possible values include: 'Invalid', + 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', + 'DisableBackup', 'DeleteBackupData' + :type operation: str or + ~azure.mgmt.recoveryservicesbackup.models.JobOperationType + :param job_id: JobID represents the job uniquely. + :type job_id: str + :param start_time: Job has started at this time. Value is in UTC. + :type start_time: datetime + :param end_time: Job has ended at this time. Value is in UTC. + :type end_time: datetime + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(JobQueryObject, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.operation = kwargs.get('operation', None) + self.job_id = kwargs.get('job_id', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + + +class JobResource(Resource): + """Defines workload agnostic properties for a job. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: JobResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'Job'}, + } + + def __init__(self, **kwargs): + super(JobResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class KEKDetails(Model): + """KEK is encryption key for BEK. + + :param key_url: Key is KEK. + :type key_url: str + :param key_vault_id: Key Vault ID where this Key is stored. + :type key_vault_id: str + :param key_backup_data: KEK data. + :type key_backup_data: str + """ + + _attribute_map = { + 'key_url': {'key': 'keyUrl', 'type': 'str'}, + 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, + 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KEKDetails, self).__init__(**kwargs) + self.key_url = kwargs.get('key_url', None) + self.key_vault_id = kwargs.get('key_vault_id', None) + self.key_backup_data = kwargs.get('key_backup_data', None) + + +class KeyAndSecretDetails(Model): + """BEK is bitlocker key. + KEK is encryption key for BEK + If the VM was encrypted then we will store following details : + 1. Secret(BEK) - Url + Backup Data + vaultId. + 2. Key(KEK) - Url + Backup Data + vaultId. + 3. EncryptionMechanism + BEK and KEK can potentially have different vault ids. + + :param kek_details: KEK is encryption key for BEK. + :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails + :param bek_details: BEK is bitlocker encryption key. + :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails + :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ + DoublePass + :type encryption_mechanism: str + """ + + _attribute_map = { + 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, + 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, + 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyAndSecretDetails, self).__init__(**kwargs) + self.kek_details = kwargs.get('kek_details', None) + self.bek_details = kwargs.get('bek_details', None) + self.encryption_mechanism = kwargs.get('encryption_mechanism', None) + + +class SchedulePolicy(Model): + """Base class for backup schedule. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, + SimpleSchedulePolicy + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} + } + + def __init__(self, **kwargs): + super(SchedulePolicy, self).__init__(**kwargs) + self.schedule_policy_type = None + + +class LogSchedulePolicy(SchedulePolicy): + """Log policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + :param schedule_frequency_in_mins: Frequency of the log schedule operation + of this policy in minutes. + :type schedule_frequency_in_mins: int + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(LogSchedulePolicy, self).__init__(**kwargs) + self.schedule_frequency_in_mins = kwargs.get('schedule_frequency_in_mins', None) + self.schedule_policy_type = 'LogSchedulePolicy' + + +class RetentionPolicy(Model): + """Base class for retention policy. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} + } + + def __init__(self, **kwargs): + super(RetentionPolicy, self).__init__(**kwargs) + self.retention_policy_type = None + + +class LongTermRetentionPolicy(RetentionPolicy): + """Long term retention policy. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param daily_schedule: Daily retention schedule of the protection policy. + :type daily_schedule: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule + :param weekly_schedule: Weekly retention schedule of the protection + policy. + :type weekly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule + :param monthly_schedule: Monthly retention schedule of the protection + policy. + :type monthly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule + :param yearly_schedule: Yearly retention schedule of the protection + policy. + :type yearly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, + 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, + 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, + 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, + } + + def __init__(self, **kwargs): + super(LongTermRetentionPolicy, self).__init__(**kwargs) + self.daily_schedule = kwargs.get('daily_schedule', None) + self.weekly_schedule = kwargs.get('weekly_schedule', None) + self.monthly_schedule = kwargs.get('monthly_schedule', None) + self.yearly_schedule = kwargs.get('yearly_schedule', None) + self.retention_policy_type = 'LongTermRetentionPolicy' + + +class LongTermSchedulePolicy(SchedulePolicy): + """Long term policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LongTermSchedulePolicy, self).__init__(**kwargs) + self.schedule_policy_type = 'LongTermSchedulePolicy' + + +class MabContainer(ProtectionContainer): + """Container with items backed up using MAB backup engine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Can the container be registered one more time. + :type can_re_register: bool + :param container_id: ContainerID represents the container. + :type container_id: long + :param protected_item_count: Number of items backed up in this container. + :type protected_item_count: long + :param agent_version: Agent version of this container. + :type agent_version: str + :param extended_info: Additional information for this container + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo + :param mab_container_health_details: Health details on this mab container. + :type mab_container_health_details: + list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] + :param container_health_state: Health state of mab container. + :type container_health_state: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'long'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, + 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, + 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MabContainer, self).__init__(**kwargs) + self.can_re_register = kwargs.get('can_re_register', None) + self.container_id = kwargs.get('container_id', None) + self.protected_item_count = kwargs.get('protected_item_count', None) + self.agent_version = kwargs.get('agent_version', None) + self.extended_info = kwargs.get('extended_info', None) + self.mab_container_health_details = kwargs.get('mab_container_health_details', None) + self.container_health_state = kwargs.get('container_health_state', None) + self.container_type = 'Windows' + + +class MabContainerExtendedInfo(Model): + """Additional information of the container. + + :param last_refreshed_at: Time stamp when this container was refreshed. + :type last_refreshed_at: datetime + :param backup_item_type: Type of backup items associated with this + container. Possible values include: 'Invalid', 'VM', 'FileFolder', + 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type backup_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupItemType + :param backup_items: List of backup items associated with this container. + :type backup_items: list[str] + :param policy_name: Backup policy associated with this container. + :type policy_name: str + :param last_backup_status: Latest backup status of this container. + :type last_backup_status: str + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, + 'backup_items': {'key': 'backupItems', 'type': '[str]'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MabContainerExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = kwargs.get('last_refreshed_at', None) + self.backup_item_type = kwargs.get('backup_item_type', None) + self.backup_items = kwargs.get('backup_items', None) + self.policy_name = kwargs.get('policy_name', None) + self.last_backup_status = kwargs.get('last_backup_status', None) + + +class MABContainerHealthDetails(Model): + """MAB 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] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MABContainerHealthDetails, 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) + + +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] + """ + + _attribute_map = { + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MabErrorInfo, self).__init__(**kwargs) + self.error_string = kwargs.get('error_string', None) + self.recommendations = kwargs.get('recommendations', None) + + +class MabFileFolderProtectedItem(ProtectedItem): + """MAB workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of this backup item. + :type friendly_name: str + :param computer_name: Name of the computer associated with this backup + item. + :type computer_name: str + :param last_backup_status: Status of last backup operation. + :type last_backup_status: str + :param protection_state: Protected, ProtectionStopped, IRPending or + ProtectionError + :type protection_state: str + :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. + :type deferred_delete_sync_time_in_utc: long + :param extended_info: Additional information with this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + '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, **kwargs): + super(MabFileFolderProtectedItem, self).__init__(**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.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) + self.protected_item_type = 'MabFileFolderProtectedItem' + + +class MabFileFolderProtectedItemExtendedInfo(Model): + """Additional information on the backed up item. + + :param last_refreshed_at: Last time when the agent data synced to service. + :type last_refreshed_at: datetime + :param oldest_recovery_point: The oldest backup copy available. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies associated with the + backup item. + :type recovery_point_count: int + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = kwargs.get('last_refreshed_at', None) + self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) + self.recovery_point_count = kwargs.get('recovery_point_count', None) + + +class MabJob(Job): + """MAB workload-specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time taken by job to run. + :type duration: timedelta + :param actions_info: The state/actions applicable on jobs like + cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param mab_server_name: Name of server protecting the DS. + :type mab_server_name: str + :param mab_server_type: Server type of MAB container. Possible values + include: 'Invalid', 'Unknown', 'IaasVMContainer', + 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', + 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', + 'GenericContainer' + :type mab_server_type: str or + ~azure.mgmt.recoveryservicesbackup.models.MabServerType + :param workload_type: Workload type of backup item. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param error_details: The errors. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] + :param extended_info: Additional information on the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, + 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(MabJob, self).__init__(**kwargs) + self.duration = kwargs.get('duration', None) + self.actions_info = kwargs.get('actions_info', None) + self.mab_server_name = kwargs.get('mab_server_name', None) + self.mab_server_type = kwargs.get('mab_server_type', None) + self.workload_type = kwargs.get('workload_type', None) + self.error_details = kwargs.get('error_details', None) + self.extended_info = kwargs.get('extended_info', None) + self.job_type = 'MabJob' + + +class MabJobExtendedInfo(Model): + """Additional information for the MAB workload-specific job. + + :param tasks_list: List of tasks for this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] + :param property_bag: The job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message specific to this + job. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MabJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = kwargs.get('tasks_list', None) + self.property_bag = kwargs.get('property_bag', None) + self.dynamic_error_message = kwargs.get('dynamic_error_message', None) + + +class MabJobTaskDetails(Model): + """MAB workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MabJobTaskDetails, self).__init__(**kwargs) + self.task_id = kwargs.get('task_id', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.duration = kwargs.get('duration', None) + self.status = kwargs.get('status', None) + + +class MabProtectionPolicy(ProtectionPolicy): + """Mab container-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param schedule_policy: Backup schedule of backup policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy details. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, **kwargs): + super(MabProtectionPolicy, self).__init__(**kwargs) + self.schedule_policy = kwargs.get('schedule_policy', None) + self.retention_policy = kwargs.get('retention_policy', None) + self.backup_management_type = 'MAB' + + +class MonthlyRetentionSchedule(Model): + """Monthly retention schedule. + + :param retention_schedule_format_type: Retention schedule format type for + monthly retention policy. Possible values include: 'Invalid', 'Daily', + 'Weekly' + :type retention_schedule_format_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat + :param retention_schedule_daily: Daily retention format for monthly + retention policy. + :type retention_schedule_daily: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat + :param retention_schedule_weekly: Weekly retention format for monthly + retention policy. + :type retention_schedule_weekly: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, + 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, + 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, **kwargs): + super(MonthlyRetentionSchedule, self).__init__(**kwargs) + self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) + self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) + self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) + self.retention_times = kwargs.get('retention_times', None) + self.retention_duration = kwargs.get('retention_duration', None) + + +class NameInfo(Model): + """The name of usage. + + :param value: Value of usage. + :type value: str + :param localized_value: Localized value of usage. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NameInfo, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.localized_value = kwargs.get('localized_value', None) + + +class OperationResultInfo(OperationResultInfoBase): + """Operation result info. + + 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 job_list: List of jobs created by this operation. + :type job_list: list[str] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_list': {'key': 'jobList', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(OperationResultInfo, self).__init__(**kwargs) + self.job_list = kwargs.get('job_list', None) + self.object_type = 'OperationResultInfo' + + +class OperationWorkerResponse(Model): + """This is the base class for operation result responses. + + :param status_code: HTTP Status Code of the operation. Possible values + include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or + ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode + :param headers: HTTP headers associated with this operation. + :type headers: dict[str, list[str]] + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, + 'headers': {'key': 'headers', 'type': '{[str]}'}, + } + + def __init__(self, **kwargs): + super(OperationWorkerResponse, self).__init__(**kwargs) + self.status_code = kwargs.get('status_code', None) + self.headers = kwargs.get('headers', None) + + +class OperationResultInfoBaseResource(OperationWorkerResponse): + """Base class for operation result info. + + :param status_code: HTTP Status Code of the operation. Possible values + include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or + ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode + :param headers: HTTP headers associated with this operation. + :type headers: dict[str, list[str]] + :param operation: OperationResultInfoBaseResource operation + :type operation: + ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, + 'headers': {'key': 'headers', 'type': '{[str]}'}, + 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, + } + + def __init__(self, **kwargs): + super(OperationResultInfoBaseResource, self).__init__(**kwargs) + self.operation = kwargs.get('operation', None) + + +class OperationStatus(Model): + """Operation status. + + :param id: ID of the operation. + :type id: str + :param name: Name of the operation. + :type name: str + :param status: Operation status. Possible values include: 'Invalid', + 'InProgress', 'Succeeded', 'Failed', 'Canceled' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues + :param start_time: Operation start time. Format: ISO-8601. + :type start_time: datetime + :param end_time: Operation end time. Format: ISO-8601. + :type end_time: datetime + :param error: Error information related to this operation. + :type error: + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError + :param properties: Additional information associated with this operation. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'OperationStatusError'}, + 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, + } + + def __init__(self, **kwargs): + super(OperationStatus, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.status = kwargs.get('status', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class OperationStatusError(Model): + """Error information associated with operation status call. + + :param code: Error code of the operation failure. + :type code: str + :param message: Error message displayed if the operation failure. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationStatusError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class OperationStatusExtendedInfo(Model): + """Base class for additional information of operation status. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo + + 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': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} + } + + def __init__(self, **kwargs): + super(OperationStatusExtendedInfo, self).__init__(**kwargs) + self.object_type = None + + +class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): + """Operation status job extended info. + + 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 job_id: ID of the job created for this protected item. + :type job_id: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) + self.job_id = kwargs.get('job_id', None) + self.object_type = 'OperationStatusJobExtendedInfo' + + +class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): + """Operation status extended info for list of jobs. + + 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 job_ids: IDs of the jobs created for the protected item. + :type job_ids: list[str] + :param failed_jobs_error: Stores all the failed jobs along with the + corresponding error codes. + :type failed_jobs_error: dict[str, str] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_ids': {'key': 'jobIds', 'type': '[str]'}, + 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) + self.job_ids = kwargs.get('job_ids', None) + self.failed_jobs_error = kwargs.get('failed_jobs_error', None) + self.object_type = 'OperationStatusJobsExtendedInfo' + + +class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): + """Operation status extended info for ILR provision action. + + 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_target: Target details for file / folder restore. + :type recovery_target: + ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, + } + + def __init__(self, **kwargs): + super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) + self.recovery_target = kwargs.get('recovery_target', None) + self.object_type = 'OperationStatusProvisionILRExtendedInfo' + + +class PointInTimeRange(Model): + """Provides details for log ranges. + + :param start_time: Start time of the time range for log recovery. + :type start_time: datetime + :param end_time: End time of the time range for log recovery. + :type end_time: datetime + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(PointInTimeRange, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + + +class PreBackupValidation(Model): + """Pre-backup validation for Azure VM Workload provider. + + :param status: Status of protectable item, i.e. + InProgress,Succeeded,Failed. Possible values include: 'Invalid', + 'Success', 'Failed' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus + :param code: Error code of protectable item + :type code: str + :param message: Message corresponding to the error code for the + protectable item + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PreBackupValidation, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class PreValidateEnableBackupRequest(Model): + """Contract to validate if backup can be enabled on the given resource in a + given vault and given configuration. + It will validate followings + 1. Vault capacity + 2. VM is already protected + 3. Any VM related configuration passed in properties. + + :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare + etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type resource_type: str or + ~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 + :type vault_id: str + :param properties: Configuration of VM if any needs to be validated like + OS type etc + :type properties: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'vault_id': {'key': 'vaultId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PreValidateEnableBackupRequest, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.resource_id = kwargs.get('resource_id', None) + self.vault_id = kwargs.get('vault_id', None) + self.properties = kwargs.get('properties', None) + + +class PreValidateEnableBackupResponse(Model): + """Response contract for enable backup validation request. + + :param status: Validation Status. Possible values include: 'Invalid', + 'Succeeded', 'Failed' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus + :param error_code: Response error code + :type error_code: str + :param error_message: Response error message + :type error_message: str + :param recommendation: Recommended action for user + :type recommendation: str + :param container_name: Specifies the product specific container name. E.g. + iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + for portal + :type container_name: str + :param protected_item_name: Specifies the product specific ds name. E.g. + vm;iaasvmcontainer;rgname;vmname. This is required for portal + :type protected_item_name: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'recommendation': {'key': 'recommendation', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PreValidateEnableBackupResponse, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + self.recommendation = kwargs.get('recommendation', None) + self.container_name = kwargs.get('container_name', None) + self.protected_item_name = kwargs.get('protected_item_name', None) + + +class ProtectableContainerResource(Resource): + """Protectable Container Class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectableContainerResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, + } + + def __init__(self, **kwargs): + super(ProtectableContainerResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ProtectedItemQueryObject(Model): + """Filters to list backup items. + + :param health_state: Health State for the backed up item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_state: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthState + :param backup_management_type: Backup management type for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param item_type: Type of workload this item represents. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param policy_name: Backup policy name associated with the backup item. + :type policy_name: str + :param container_name: Name of the container. + :type container_name: str + :param backup_engine_name: Backup Engine name + :type backup_engine_name: str + :param friendly_name: Friendly name of protected item + :type friendly_name: str + :param fabric_name: Name of the fabric. + :type fabric_name: str + :param backup_set_name: Name of the backup set. + :type backup_set_name: str + """ + + _attribute_map = { + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProtectedItemQueryObject, self).__init__(**kwargs) + self.health_state = kwargs.get('health_state', None) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.item_type = kwargs.get('item_type', None) + self.policy_name = kwargs.get('policy_name', None) + self.container_name = kwargs.get('container_name', None) + self.backup_engine_name = kwargs.get('backup_engine_name', None) + self.friendly_name = kwargs.get('friendly_name', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.backup_set_name = kwargs.get('backup_set_name', None) + + +class ProtectedItemResource(Resource): + """Base class for backup items. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectedItemResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, + } + + def __init__(self, **kwargs): + super(ProtectedItemResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ProtectionContainerResource(Resource): + """Base class for container with backup items. Containers with specific + workloads are derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionContainerResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, + } + + def __init__(self, **kwargs): + super(ProtectionContainerResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ProtectionIntentQueryObject(Model): + """Filters to list protection intent. + + :param backup_management_type: Backup management type for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param item_type: Type of workload this item represents. Possible values + include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' + :type item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.IntentItemType + :param parent_name: Parent name of the intent + :type parent_name: str + :param item_name: Item name of the intent + :type item_name: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'item_name': {'key': 'itemName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProtectionIntentQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.item_type = kwargs.get('item_type', None) + self.parent_name = kwargs.get('parent_name', None) + self.item_name = kwargs.get('item_name', None) + + +class ProtectionIntentResource(Resource): + """Base class for backup ProtectionIntent. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionIntentResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, + } + + def __init__(self, **kwargs): + super(ProtectionIntentResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class ProtectionPolicyQueryObject(Model): + """Filters the list backup policies API. + + :param backup_management_type: Backup management type for the backup + policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param fabric_name: Fabric name for filter + :type fabric_name: str + :param workload_type: Workload type for the backup policy. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProtectionPolicyQueryObject, self).__init__(**kwargs) + self.backup_management_type = kwargs.get('backup_management_type', None) + self.fabric_name = kwargs.get('fabric_name', None) + self.workload_type = kwargs.get('workload_type', None) + + +class ProtectionPolicyResource(Resource): + """Base class for backup policy. Workload-specific backup policies are derived + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionPolicyResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, + } + + def __init__(self, **kwargs): + super(ProtectionPolicyResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class RecoveryPointResource(Resource): + """Base class for backup copies. Workload-specific backup copies are derived + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: RecoveryPointResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, + } + + def __init__(self, **kwargs): + super(RecoveryPointResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class RecoveryPointTierInformation(Model): + """Recovery point tier information. + + :param type: Recovery point tier type. Possible values include: 'Invalid', + 'InstantRP', 'HardenedRP' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType + :param status: Recovery point tier status. Possible values include: + 'Invalid', 'Valid', 'Disabled', 'Deleted' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, + 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, + } + + def __init__(self, **kwargs): + super(RecoveryPointTierInformation, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.status = kwargs.get('status', None) + + +class ResourceList(Model): + """Base for all lists of resources. + + :param next_link: The uri to fetch the next page of resources. Call + ListNext() fetches next page of resources. + :type next_link: str + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + + +class RestoreFileSpecs(Model): + """Restore file specs like file path, type and target folder path info. + + :param path: Source File/Folder path + :type path: str + :param file_spec_type: Indicates what the Path variable stands for + :type file_spec_type: str + :param target_folder_path: Destination folder path in target FileShare + :type target_folder_path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, + 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RestoreFileSpecs, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.file_spec_type = kwargs.get('file_spec_type', None) + self.target_folder_path = kwargs.get('target_folder_path', None) + + +class RestoreRequestResource(Resource): + """Base class for restore request. Workload-specific restore requests are + derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: RestoreRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, + } + + def __init__(self, **kwargs): + super(RestoreRequestResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class RetentionDuration(Model): + """Retention duration. + + :param count: Count of duration types. Retention duration is obtained by + the counting the duration type Count times. + For example, when Count = 3 and DurationType = Weeks, retention duration + will be three weeks. + :type count: int + :param duration_type: Retention duration type of retention policy. + Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' + :type duration_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration_type': {'key': 'durationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RetentionDuration, self).__init__(**kwargs) + self.count = kwargs.get('count', None) + self.duration_type = kwargs.get('duration_type', None) + + +class Settings(Model): + """Common settings field for backup management. + + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + :param issqlcompression: SQL compression flag + :type issqlcompression: bool + :param is_compression: Workload compression flag. This has been added so + that 'isSqlCompression' + will be deprecated once clients upgrade to consider this flag. + :type is_compression: bool + """ + + _attribute_map = { + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, + 'is_compression': {'key': 'isCompression', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(Settings, self).__init__(**kwargs) + self.time_zone = kwargs.get('time_zone', None) + self.issqlcompression = kwargs.get('issqlcompression', None) + self.is_compression = kwargs.get('is_compression', None) + + +class SimpleRetentionPolicy(RetentionPolicy): + """Simple policy retention. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param retention_duration: Retention duration of the protection policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, **kwargs): + super(SimpleRetentionPolicy, self).__init__(**kwargs) + self.retention_duration = kwargs.get('retention_duration', None) + self.retention_policy_type = 'SimpleRetentionPolicy' + + +class SimpleSchedulePolicy(SchedulePolicy): + """Simple policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + :param schedule_run_frequency: Frequency of the schedule operation of this + policy. Possible values include: 'Invalid', 'Daily', 'Weekly' + :type schedule_run_frequency: str or + ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType + :param schedule_run_days: List of days of week this schedule has to be + run. + :type schedule_run_days: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param schedule_run_times: List of times of day this schedule has to be + run. + :type schedule_run_times: list[datetime] + :param schedule_weekly_frequency: At every number weeks this schedule has + to be run. + :type schedule_weekly_frequency: int + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, + 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, + 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, + 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(SimpleSchedulePolicy, self).__init__(**kwargs) + self.schedule_run_frequency = kwargs.get('schedule_run_frequency', None) + self.schedule_run_days = kwargs.get('schedule_run_days', None) + self.schedule_run_times = kwargs.get('schedule_run_times', None) + self.schedule_weekly_frequency = kwargs.get('schedule_weekly_frequency', None) + self.schedule_policy_type = 'SimpleSchedulePolicy' + + +class SQLDataDirectory(Model): + """SQLDataDirectory info. + + :param type: Type of data directory mapping. Possible values include: + 'Invalid', 'Data', 'Log' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType + :param path: File path + :type path: str + :param logical_name: Logical name of the file + :type logical_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SQLDataDirectory, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.path = kwargs.get('path', None) + self.logical_name = kwargs.get('logical_name', None) + + +class SQLDataDirectoryMapping(Model): + """Encapsulates information regarding data directory. + + :param mapping_type: Type of data directory mapping. Possible values + include: 'Invalid', 'Data', 'Log' + :type mapping_type: str or + ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType + :param source_logical_name: Restore source logical name path + :type source_logical_name: str + :param source_path: Restore source path + :type source_path: str + :param target_path: Target path + :type target_path: str + """ + + _attribute_map = { + 'mapping_type': {'key': 'mappingType', 'type': 'str'}, + 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, + 'source_path': {'key': 'sourcePath', 'type': 'str'}, + 'target_path': {'key': 'targetPath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SQLDataDirectoryMapping, self).__init__(**kwargs) + self.mapping_type = kwargs.get('mapping_type', None) + self.source_logical_name = kwargs.get('source_logical_name', None) + self.source_path = kwargs.get('source_path', None) + self.target_path = kwargs.get('target_path', None) + + +class SubProtectionPolicy(Model): + """Sub-protection policy which includes schedule and retention. + + :param policy_type: Type of backup policy type. Possible values include: + 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + :type policy_type: str or + ~azure.mgmt.recoveryservicesbackup.models.PolicyType + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _attribute_map = { + 'policy_type': {'key': 'policyType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, **kwargs): + super(SubProtectionPolicy, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.schedule_policy = kwargs.get('schedule_policy', None) + self.retention_policy = kwargs.get('retention_policy', None) + + +class TargetAFSRestoreInfo(Model): + """Target Azure File Share Info. + + :param name: File share name + :type name: str + :param target_resource_id: Target file share resource ARM ID + :type target_resource_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetAFSRestoreInfo, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.target_resource_id = kwargs.get('target_resource_id', None) + + +class TargetRestoreInfo(Model): + """Details about target workload during restore operation. + + :param overwrite_option: Can Overwrite if Target DataBase already exists. + Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' + :type overwrite_option: str or + ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions + :param container_id: Resource Id name of the container in which Target + DataBase resides + :type container_id: str + :param database_name: Database name InstanceName/DataBaseName for SQL or + System/DbName for SAP Hana + :type database_name: str + """ + + _attribute_map = { + 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetRestoreInfo, self).__init__(**kwargs) + self.overwrite_option = kwargs.get('overwrite_option', None) + self.container_id = kwargs.get('container_id', None) + self.database_name = kwargs.get('database_name', None) + + +class TokenInformation(Model): + """The token information details. + + :param token: Token value. + :type token: str + :param expiry_time_in_utc_ticks: Expiry time of token. + :type expiry_time_in_utc_ticks: long + :param security_pin: Security PIN + :type security_pin: str + """ + + _attribute_map = { + 'token': {'key': 'token', 'type': 'str'}, + 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, + 'security_pin': {'key': 'securityPIN', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TokenInformation, self).__init__(**kwargs) + self.token = kwargs.get('token', None) + self.expiry_time_in_utc_ticks = kwargs.get('expiry_time_in_utc_ticks', None) + self.security_pin = kwargs.get('security_pin', None) + + +class ValidateOperationRequest(Model): + """Base class for validate operation request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ValidateRestoreOperationRequest + + 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': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} + } + + def __init__(self, **kwargs): + super(ValidateOperationRequest, self).__init__(**kwargs) + self.object_type = None + + +class ValidateRestoreOperationRequest(ValidateOperationRequest): + """AzureRestoreValidation request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ValidateIaasVMRestoreOperationRequest + + 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 restore_request: Sets restore request to be validated + :type restore_request: + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, + } + + _subtype_map = { + 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} + } + + def __init__(self, **kwargs): + super(ValidateRestoreOperationRequest, self).__init__(**kwargs) + self.restore_request = kwargs.get('restore_request', None) + self.object_type = 'ValidateRestoreOperationRequest' + + +class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): + """AzureRestoreValidation 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 restore_request: Sets restore request to be validated + :type restore_request: + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, + } + + def __init__(self, **kwargs): + super(ValidateIaasVMRestoreOperationRequest, self).__init__(**kwargs) + self.object_type = 'ValidateIaasVMRestoreOperationRequest' + + +class ValidateOperationResponse(Model): + """Base class for validate operation response. + + :param validation_results: Gets the validation result + :type validation_results: + list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] + """ + + _attribute_map = { + 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, + } + + def __init__(self, **kwargs): + super(ValidateOperationResponse, self).__init__(**kwargs) + self.validation_results = kwargs.get('validation_results', None) + + +class ValidateOperationsResponse(Model): + """ValidateOperationsResponse. + + :param validate_operation_response: + :type validate_operation_response: + ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse + """ + + _attribute_map = { + 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, + } + + def __init__(self, **kwargs): + super(ValidateOperationsResponse, self).__init__(**kwargs) + self.validate_operation_response = kwargs.get('validate_operation_response', None) + + +class WeeklyRetentionFormat(Model): + """Weekly retention format. + + :param days_of_the_week: List of days of the week. + :type days_of_the_week: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param weeks_of_the_month: List of weeks of month. + :type weeks_of_the_month: list[str or + ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] + """ + + _attribute_map = { + 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, + 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, + } + + def __init__(self, **kwargs): + super(WeeklyRetentionFormat, self).__init__(**kwargs) + self.days_of_the_week = kwargs.get('days_of_the_week', None) + self.weeks_of_the_month = kwargs.get('weeks_of_the_month', None) + + +class WeeklyRetentionSchedule(Model): + """Weekly retention schedule. + + :param days_of_the_week: List of days of week for weekly retention policy. + :type days_of_the_week: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, **kwargs): + super(WeeklyRetentionSchedule, self).__init__(**kwargs) + self.days_of_the_week = kwargs.get('days_of_the_week', None) + self.retention_times = kwargs.get('retention_times', None) + self.retention_duration = kwargs.get('retention_duration', None) + + +class WorkloadInquiryDetails(Model): + """Details of an inquired protectable item. + + :param type: Type of the Workload such as SQL, Oracle etc. + :type type: str + :param item_count: Contains the protectable item Count inside this + Container. + :type item_count: long + :param inquiry_validation: Inquiry validation such as permissions and + other backup validations. + :type inquiry_validation: + ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'item_count': {'key': 'itemCount', 'type': 'long'}, + 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, + } + + def __init__(self, **kwargs): + super(WorkloadInquiryDetails, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.item_count = kwargs.get('item_count', None) + self.inquiry_validation = kwargs.get('inquiry_validation', None) + + +class WorkloadItemResource(Resource): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: WorkloadItemResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, + } + + def __init__(self, **kwargs): + super(WorkloadItemResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class WorkloadProtectableItemResource(Resource): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: WorkloadProtectableItemResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, + } + + def __init__(self, **kwargs): + super(WorkloadProtectableItemResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class YearlyRetentionSchedule(Model): + """Yearly retention schedule. + + :param retention_schedule_format_type: Retention schedule format for + yearly retention policy. Possible values include: 'Invalid', 'Daily', + 'Weekly' + :type retention_schedule_format_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat + :param months_of_year: List of months of year of yearly retention policy. + :type months_of_year: list[str or + ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] + :param retention_schedule_daily: Daily retention format for yearly + retention policy. + :type retention_schedule_daily: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat + :param retention_schedule_weekly: Weekly retention format for yearly + retention policy. + :type retention_schedule_weekly: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, + 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, + 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, + 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, **kwargs): + super(YearlyRetentionSchedule, self).__init__(**kwargs) + self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) + self.months_of_year = kwargs.get('months_of_year', None) + self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) + self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) + self.retention_times = kwargs.get('retention_times', None) + self.retention_duration = kwargs.get('retention_duration', None) 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 new file mode 100644 index 000000000000..899f0821996f --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py @@ -0,0 +1,10148 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FeatureSupportRequest(Model): + """Base class for feature request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupGoalFeatureSupportRequest, + AzureVMResourceFeatureSupportRequest + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + } + + _subtype_map = { + 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} + } + + def __init__(self, **kwargs) -> None: + super(FeatureSupportRequest, self).__init__(**kwargs) + self.feature_type = None + + +class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): + """Azure backup goal feature specific request. + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) + self.feature_type = 'AzureBackupGoals' + + +class ProtectionContainer(Model): + """Base class for container with backup items. Containers with specific + workloads are derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureSqlContainer, AzureStorageContainer, + AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, + MabContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: + super(ProtectionContainer, self).__init__(**kwargs) + self.friendly_name = friendly_name + self.backup_management_type = backup_management_type + self.registration_status = registration_status + self.health_status = health_status + self.container_type = None + + +class DpmContainer(ProtectionContainer): + """DPM workload-specific protection container. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupServerContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Specifies whether the container is re-registrable. + :type can_re_register: bool + :param container_id: ID of container. + :type container_id: str + :param protected_item_count: Number of protected items in the BackupEngine + :type protected_item_count: long + :param dpm_agent_version: Backup engine Agent version + :type dpm_agent_version: str + :param dpm_servers: List of BackupEngines protecting the container + :type dpm_servers: list[str] + :param upgrade_available: To check if upgrade available + :type upgrade_available: bool + :param protection_status: Protection status of the container. + :type protection_status: str + :param extended_info: Extended Info of the container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, + 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, + 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, + } + + _subtype_map = { + 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: + super(DpmContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.can_re_register = can_re_register + self.container_id = container_id + self.protected_item_count = protected_item_count + self.dpm_agent_version = dpm_agent_version + self.dpm_servers = dpm_servers + self.upgrade_available = upgrade_available + self.protection_status = protection_status + self.extended_info = extended_info + self.container_type = 'DPMContainer' + + +class AzureBackupServerContainer(DpmContainer): + """AzureBackupServer (DPMVenus) workload-specific protection container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Specifies whether the container is re-registrable. + :type can_re_register: bool + :param container_id: ID of container. + :type container_id: str + :param protected_item_count: Number of protected items in the BackupEngine + :type protected_item_count: long + :param dpm_agent_version: Backup engine Agent version + :type dpm_agent_version: str + :param dpm_servers: List of BackupEngines protecting the container + :type dpm_servers: list[str] + :param upgrade_available: To check if upgrade available + :type upgrade_available: bool + :param protection_status: Protection status of the container. + :type protection_status: str + :param extended_info: Extended Info of the container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, + 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, + 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: + super(AzureBackupServerContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, can_re_register=can_re_register, container_id=container_id, protected_item_count=protected_item_count, dpm_agent_version=dpm_agent_version, dpm_servers=dpm_servers, upgrade_available=upgrade_available, protection_status=protection_status, extended_info=extended_info, **kwargs) + self.container_type = 'AzureBackupServerContainer' + + +class BackupEngineBase(Model): + """The base backup engine class. All workload specific backup engines derive + from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureBackupServerEngine, DpmBackupEngine + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + _subtype_map = { + 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: + super(BackupEngineBase, self).__init__(**kwargs) + self.friendly_name = friendly_name + self.backup_management_type = backup_management_type + self.registration_status = registration_status + self.backup_engine_state = backup_engine_state + self.health_status = health_status + self.can_re_register = can_re_register + self.backup_engine_id = backup_engine_id + self.dpm_version = dpm_version + self.azure_backup_agent_version = azure_backup_agent_version + self.is_azure_backup_agent_upgrade_available = is_azure_backup_agent_upgrade_available + self.is_dpm_upgrade_available = is_dpm_upgrade_available + self.extended_info = extended_info + self.backup_engine_type = None + + +class AzureBackupServerEngine(BackupEngineBase): + """Backup engine type when Azure Backup Server is used to manage the backups. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: + super(AzureBackupServerEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) + self.backup_engine_type = 'AzureBackupServerEngine' + + +class BackupRequest(Model): + """Base class for backup request. Workload-specific backup requests are + derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, + IaasVMBackupRequest + + 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': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} + } + + def __init__(self, **kwargs) -> None: + super(BackupRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareBackupRequest(BackupRequest): + """AzureFileShare workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: + super(AzureFileShareBackupRequest, self).__init__(**kwargs) + self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc + self.object_type = 'AzureFileShareBackupRequest' + + +class WorkloadProtectableItem(Model): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareProtectableItem, + AzureVmWorkloadProtectableItem, IaaSVMProtectableItem + + 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 + """ + + _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'}, + } + + _subtype_map = { + 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: + super(WorkloadProtectableItem, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_type = workload_type + self.friendly_name = friendly_name + self.protection_state = protection_state + self.protectable_item_type = None + + +class AzureFileShareProtectableItem(WorkloadProtectableItem): + """Protectable item for Azure Fileshare workloads. + + 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_container_fabric_id: Full Fabric ID of container to which + this protectable item belongs. For example, ARM ID. + :type parent_container_fabric_id: str + :param parent_container_friendly_name: Friendly name of container to which + this protectable item belongs. + :type parent_container_friendly_name: str + :param azure_file_share_type: File Share type XSync or XSMB. Possible + values include: 'Invalid', 'XSMB', 'XSync' + :type azure_file_share_type: str or + ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType + """ + + _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_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, + 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, + 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_container_fabric_id: str=None, parent_container_friendly_name: str=None, azure_file_share_type=None, **kwargs) -> None: + super(AzureFileShareProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) + self.parent_container_fabric_id = parent_container_fabric_id + self.parent_container_friendly_name = parent_container_friendly_name + self.azure_file_share_type = azure_file_share_type + self.protectable_item_type = 'AzureFileShare' + + +class ProtectedItem(Model): + """Base class for backup items. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, + AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, + GenericProtectedItem, MabFileFolderProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} + } + + 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, **kwargs) -> None: + super(ProtectedItem, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_type = workload_type + self.container_name = container_name + self.source_resource_id = source_resource_id + self.policy_id = policy_id + self.last_recovery_point = last_recovery_point + self.backup_set_name = backup_set_name + self.create_mode = create_mode + self.deferred_delete_time_in_utc = deferred_delete_time_in_utc + self.is_scheduled_for_deferred_delete = is_scheduled_for_deferred_delete + self.deferred_delete_time_remaining = deferred_delete_time_remaining + self.is_deferred_delete_schedule_upcoming = is_deferred_delete_schedule_upcoming + self.is_rehydrate = is_rehydrate + self.protected_item_type = None + + +class AzureFileshareProtectedItem(ProtectedItem): + """Azure File Share workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the fileshare represented by this + backup item. + :type friendly_name: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: backups running status for this backup item. + Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', + 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. + :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 extended_info: Additional information with this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, + } + + 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, protection_status: str=None, protection_state=None, health_status=None, last_backup_status: str=None, last_backup_time=None, extended_info=None, **kwargs) -> None: + super(AzureFileshareProtectedItem, 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.protection_status = protection_status + self.protection_state = protection_state + self.health_status = health_status + self.last_backup_status = last_backup_status + self.last_backup_time = last_backup_time + self.extended_info = extended_info + self.protected_item_type = 'AzureFileShareProtectedItem' + + +class AzureFileshareProtectedItemExtendedInfo(Model): + """Additional information about Azure File Share backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + item in the service. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of available backup copies associated + with this backup item. + :type recovery_point_count: int + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: + super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + self.policy_state = policy_state + + +class ProtectionPolicy(Model): + """Base class for backup policy. Workload-specific backup policies are derived + 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 + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + } + + _subtype_map = { + 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} + } + + def __init__(self, *, protected_items_count: int=None, **kwargs) -> None: + super(ProtectionPolicy, self).__init__(**kwargs) + self.protected_items_count = protected_items_count + self.backup_management_type = None + + +class AzureFileShareProtectionPolicy(ProtectionPolicy): + """AzureStorage backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param work_load_type: Type of workload for the backup management. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type work_load_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + } + + def __init__(self, *, protected_items_count: int=None, work_load_type=None, schedule_policy=None, retention_policy=None, time_zone: str=None, **kwargs) -> None: + super(AzureFileShareProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + self.work_load_type = work_load_type + self.schedule_policy = schedule_policy + self.retention_policy = retention_policy + self.time_zone = time_zone + self.backup_management_type = 'AzureStorage' + + +class RecoveryPoint(Model): + """Base class for backup copies. Workload-specific backup copies are derived + from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, + GenericRecoveryPoint, IaasVMRecoveryPoint + + 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': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} + } + + def __init__(self, **kwargs) -> None: + super(RecoveryPoint, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareRecoveryPoint(RecoveryPoint): + """Azure File Share workload specific backup copy. + + 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 + 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, + if applicable + :type file_share_snapshot_uri: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, + } + + def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, file_share_snapshot_uri: str=None, **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.object_type = 'AzureFileShareRecoveryPoint' + + +class RestoreRequest(Model): + """Base class for restore request. Workload-specific restore requests are + derived from this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, + IaasVMRestoreRequest + + 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': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + } + + def __init__(self, **kwargs) -> None: + super(RestoreRequest, self).__init__(**kwargs) + self.object_type = None + + +class AzureFileShareRestoreRequest(RestoreRequest): + """AzureFileShare Restore 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_type: Type of this recovery. Possible values include: + 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Source storage account ARM Id + :type source_resource_id: str + :param copy_options: Options to resolve copy conflicts. Possible values + include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' + :type copy_options: str or + ~azure.mgmt.recoveryservicesbackup.models.CopyOptions + :param restore_request_type: Restore Type (FullShareRestore or + ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', + 'ItemLevelRestore' + :type restore_request_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType + :param restore_file_specs: List of Source Files/Folders(which need to + recover) and TargetFolderPath details + :type restore_file_specs: + list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] + :param target_details: Target File Share Details + :type target_details: + ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'copy_options': {'key': 'copyOptions', 'type': 'str'}, + 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, + 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, + 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, + } + + def __init__(self, *, recovery_type=None, source_resource_id: str=None, copy_options=None, restore_request_type=None, restore_file_specs=None, target_details=None, **kwargs) -> None: + super(AzureFileShareRestoreRequest, self).__init__(**kwargs) + self.recovery_type = recovery_type + self.source_resource_id = source_resource_id + self.copy_options = copy_options + self.restore_request_type = restore_request_type + self.restore_file_specs = restore_file_specs + self.target_details = target_details + self.object_type = 'AzureFileShareRestoreRequest' + + +class IaaSVMContainer(ProtectionContainer): + """IaaS VM workload-specific container. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMContainer, + AzureIaaSComputeVMContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: + super(IaaSVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.virtual_machine_id = virtual_machine_id + self.virtual_machine_version = virtual_machine_version + self.resource_group = resource_group + self.container_type = 'IaaSVMContainer' + + +class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): + """IaaS VM workload-specific backup item representing a classic virtual + machine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: + super(AzureIaaSClassicComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) + self.container_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class IaaSVMProtectableItem(WorkloadProtectableItem): + """IaaS VM workload-specific backup item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSComputeVMProtectableItem + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + _subtype_map = { + 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: + super(IaaSVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) + self.virtual_machine_id = virtual_machine_id + self.protectable_item_type = 'IaaSVMProtectableItem' + + +class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): + """IaaS VM workload-specific backup item representing the Classic Compute VM. + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: + super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) + self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class AzureIaaSVMProtectedItem(ProtectedItem): + """IaaS VM workload-specific backup item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + _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: + 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 + self.protection_status = protection_status + self.protection_state = protection_state + self.health_status = health_status + self.health_details = health_details + self.last_backup_status = last_backup_status + self.last_backup_time = last_backup_time + self.protected_item_data_id = protected_item_data_id + self.extended_info = extended_info + self.protected_item_type = 'AzureIaaSVMProtectedItem' + + +class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): + """IaaS VM workload-specific backup item representing the Classic Compute VM. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + 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) + self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' + + +class AzureIaaSComputeVMContainer(IaaSVMContainer): + """IaaS VM workload-specific backup item representing an Azure Resource + Manager virtual machine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param virtual_machine_id: Fully qualified ARM url of the virtual machine + represented by this Azure IaaS VM container. + :type virtual_machine_id: str + :param virtual_machine_version: Specifies whether the container represents + a Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: + super(AzureIaaSComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) + self.container_type = 'Microsoft.Compute/virtualMachines' + + +class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): + """IaaS VM workload-specific backup item representing the Azure Resource + Manager VM. + + 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. + :type virtual_machine_id: str + """ + + _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'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: + super(AzureIaaSComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) + self.protectable_item_type = 'Microsoft.Compute/virtualMachines' + + +class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): + """IaaS VM workload-specific backup item representing the Azure Resource + Manager VM. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + represented by this item. + :type virtual_machine_id: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param health_status: Health status of protected item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthStatus + :param health_details: Health details on this backup item. + :type health_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] + :param last_backup_status: Last backup operation status. + :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 protected_item_data_id: Data ID of the protected item. + :type protected_item_data_id: str + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, + } + + 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) + 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 + to. + :type error_title: str + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, error_code: int=None, error_title: str=None, error_string: str=None, recommendations=None, **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 + + +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] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: + super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) + self.code = code + self.title = title + self.message = message + self.recommendations = recommendations + + +class Job(Model): + """Defines workload agnostic properties for a job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, + MabJob + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + } + + _subtype_map = { + 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, **kwargs) -> None: + super(Job, self).__init__(**kwargs) + self.entity_friendly_name = entity_friendly_name + self.backup_management_type = backup_management_type + self.operation = operation + self.status = status + self.start_time = start_time + self.end_time = end_time + self.activity_id = activity_id + self.job_type = None + + +class AzureIaaSVMJob(Job): + """Azure IaaS VM workload-specific job object. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] + :param virtual_machine_version: Specifies whether the backup item is a + Classic or an Azure Resource Manager VM. + :type virtual_machine_version: str + :param extended_info: Additional information for this job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, + 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, virtual_machine_version: str=None, extended_info=None, **kwargs) -> None: + super(AzureIaaSVMJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) + self.duration = duration + self.actions_info = actions_info + self.error_details = error_details + self.virtual_machine_version = virtual_machine_version + self.extended_info = extended_info + self.job_type = 'AzureIaaSVMJob' + + +class AzureIaaSVMJobExtendedInfo(Model): + """Azure IaaS VM workload-specific additional information for job. + + :param tasks_list: List of tasks associated with this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param internal_property_bag: Job internal properties. + :type internal_property_bag: dict[str, str] + :param progress_percentage: Indicates progress of the job. Null if it has + not started or completed. + :type progress_percentage: float + :param estimated_remaining_duration: Time remaining for execution of this + job. + :type estimated_remaining_duration: str + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, + 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, + 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, *, tasks_list=None, property_bag=None, internal_property_bag=None, progress_percentage: float=None, estimated_remaining_duration: str=None, dynamic_error_message: str=None, **kwargs) -> None: + super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = tasks_list + self.property_bag = property_bag + self.internal_property_bag = internal_property_bag + self.progress_percentage = progress_percentage + self.estimated_remaining_duration = estimated_remaining_duration + self.dynamic_error_message = dynamic_error_message + + +class AzureIaaSVMJobTaskDetails(Model): + """Azure IaaS VM workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param instance_id: The instanceId. + :type instance_id: str + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + :param progress_percentage: Progress of the task. + :type progress_percentage: float + :param task_execution_details: Details about execution of the task. + eg: number of bytes transferred etc + :type task_execution_details: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, + 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, + } + + def __init__(self, *, task_id: str=None, start_time=None, end_time=None, instance_id: str=None, duration=None, status: str=None, progress_percentage: float=None, task_execution_details: str=None, **kwargs) -> None: + super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) + self.task_id = task_id + self.start_time = start_time + self.end_time = end_time + self.instance_id = instance_id + self.duration = duration + self.status = status + self.progress_percentage = progress_percentage + self.task_execution_details = task_execution_details + + +class AzureIaaSVMProtectedItemExtendedInfo(Model): + """Additional information on Azure IaaS VM specific backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + backup item. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies available for this + backup item. + :type recovery_point_count: int + :param policy_inconsistent: Specifies if backup policy associated with the + backup item is inconsistent. + :type policy_inconsistent: bool + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, + } + + def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_inconsistent: bool=None, **kwargs) -> None: + super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + self.policy_inconsistent = policy_inconsistent + + +class AzureIaaSVMProtectionPolicy(ProtectionPolicy): + """IaaS VM workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + :param instant_rp_retention_range_in_days: Instant RP retention policy + range in days + :type instant_rp_retention_range_in_days: int + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + } + + def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, instant_rp_retention_range_in_days: int=None, time_zone: str=None, **kwargs) -> None: + super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + self.schedule_policy = schedule_policy + self.retention_policy = retention_policy + self.instant_rp_retention_range_in_days = instant_rp_retention_range_in_days + self.time_zone = time_zone + self.backup_management_type = 'AzureIaasVM' + + +class ProtectionIntent(Model): + """Base class for backup ProtectionIntent. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} + } + + def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: + super(ProtectionIntent, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.source_resource_id = source_resource_id + self.item_id = item_id + self.policy_id = policy_id + self.protection_state = protection_state + self.protection_intent_item_type = None + + +class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): + """Azure Recovery Services Vault specific protection intent item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadAutoProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} + } + + def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: + super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) + self.protection_intent_item_type = 'RecoveryServiceVaultItem' + + +class AzureResourceProtectionIntent(ProtectionIntent): + """IaaS VM specific backup protection intent item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + :param friendly_name: Friendly name of the VM represented by this backup + item. + :type friendly_name: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, friendly_name: str=None, **kwargs) -> None: + super(AzureResourceProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) + self.friendly_name = friendly_name + self.protection_intent_item_type = 'AzureResourceItem' + + +class AzureWorkloadContainer(ProtectionContainer): + """Container for the workloads running inside Azure Compute or Classic + Compute. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, + AzureVMAppContainerProtectionContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + _subtype_map = { + 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: + super(AzureWorkloadContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.source_resource_id = source_resource_id + self.last_updated_time = last_updated_time + self.extended_info = extended_info + self.workload_type = workload_type + self.operation_type = operation_type + self.container_type = 'AzureWorkloadContainer' + + +class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): + """Container for SQL workloads under SQL Availability Group. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: + super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) + self.container_type = 'SQLAGWorkLoadContainer' + + +class AzureSqlContainer(ProtectionContainer): + """Azure Sql workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: + super(AzureSqlContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.container_type = 'AzureSqlContainer' + + +class AzureSqlProtectedItem(ProtectedItem): + """Azure SQL workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param protected_item_data_id: Internal ID of a backup item. Used by Azure + SQL Backup engine to contact Recovery Services. + :type protected_item_data_id: str + :param protection_state: Backup state of the backed up item. Possible + values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, + } + + 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, protected_item_data_id: str=None, protection_state=None, extended_info=None, **kwargs) -> None: + super(AzureSqlProtectedItem, 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.protected_item_data_id = protected_item_data_id + self.protection_state = protection_state + self.extended_info = extended_info + self.protected_item_type = 'Microsoft.Sql/servers/databases' + + +class AzureSqlProtectedItemExtendedInfo(Model): + """Additional information on Azure Sql specific protected item. + + :param oldest_recovery_point: The oldest backup copy available for this + item in the service. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of available backup copies associated + with this backup item. + :type recovery_point_count: int + :param policy_state: State of the backup policy associated with this + backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: + super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + self.policy_state = policy_state + + +class AzureSqlProtectionPolicy(ProtectionPolicy): + """Azure SQL workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param retention_policy: Retention policy details. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, *, protected_items_count: int=None, retention_policy=None, **kwargs) -> None: + super(AzureSqlProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + self.retention_policy = retention_policy + self.backup_management_type = 'AzureSql' + + +class AzureStorageContainer(ProtectionContainer): + """Azure Storage Account workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: Fully qualified ARM url. + :type source_resource_id: str + :param storage_account_version: Storage account version. + :type storage_account_version: str + :param resource_group: Resource group name of Recovery Services Vault. + :type resource_group: str + :param protected_item_count: Number of items backed up in this container. + :type protected_item_count: long + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, storage_account_version: str=None, resource_group: str=None, protected_item_count: int=None, **kwargs) -> None: + super(AzureStorageContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.source_resource_id = source_resource_id + self.storage_account_version = storage_account_version + self.resource_group = resource_group + self.protected_item_count = protected_item_count + self.container_type = 'StorageContainer' + + +class AzureStorageErrorInfo(Model): + """Azure storage specific error information. + + :param error_code: Error code. + :type error_code: int + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, error_code: int=None, error_string: str=None, recommendations=None, **kwargs) -> None: + super(AzureStorageErrorInfo, self).__init__(**kwargs) + self.error_code = error_code + self.error_string = error_string + self.recommendations = recommendations + + +class AzureStorageJob(Job): + """Azure storage specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] + :param storage_account_name: Specifies friendly name of the storage + account. + :type storage_account_name: str + :param storage_account_version: Specifies whether the Storage account is a + Classic or an Azure Resource Manager Storage account. + :type storage_account_version: str + :param extended_info: Additional information about the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, storage_account_name: str=None, storage_account_version: str=None, extended_info=None, **kwargs) -> None: + super(AzureStorageJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) + self.duration = duration + self.actions_info = actions_info + self.error_details = error_details + self.storage_account_name = storage_account_name + self.storage_account_version = storage_account_version + self.extended_info = extended_info + self.job_type = 'AzureStorageJob' + + +class AzureStorageJobExtendedInfo(Model): + """Azure Storage workload-specific additional information for job. + + :param tasks_list: List of tasks for this job + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: + super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = tasks_list + self.property_bag = property_bag + self.dynamic_error_message = dynamic_error_message + + +class AzureStorageJobTaskDetails(Model): + """Azure storage workload specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: + super(AzureStorageJobTaskDetails, self).__init__(**kwargs) + self.task_id = task_id + self.status = status + + +class ProtectableContainer(Model): + """Protectable Container Class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + _subtype_map = { + 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: + super(ProtectableContainer, self).__init__(**kwargs) + self.friendly_name = friendly_name + self.backup_management_type = backup_management_type + self.health_status = health_status + self.container_id = container_id + self.protectable_container_type = None + + +class AzureStorageProtectableContainer(ProtectableContainer): + """Azure Storage-specific protectable containers. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: + super(AzureStorageProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) + self.protectable_container_type = 'StorageContainer' + + +class AzureVMAppContainerProtectableContainer(ProtectableContainer): + """Azure workload-specific container. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param health_status: Status of health of the container. + :type health_status: str + :param container_id: Fabric Id of the container such as ARM Id. + :type container_id: str + :param protectable_container_type: Required. Constant filled by server. + :type protectable_container_type: str + """ + + _validation = { + 'protectable_container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: + super(AzureVMAppContainerProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) + self.protectable_container_type = 'VMAppContainer' + + +class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): + """Container for SQL workloads under Azure Virtual Machines. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param source_resource_id: ARM ID of the virtual machine represented by + this Azure Workload Container + :type source_resource_id: str + :param last_updated_time: Time stamp when this container was updated. + :type last_updated_time: datetime + :param extended_info: Additional details of a workload container. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo + :param workload_type: Workload type for which registration was sent. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param operation_type: Re-Do Operation. Possible values include: + 'Invalid', 'Register', 'Reregister' + :type operation_type: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationType + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: + super(AzureVMAppContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) + self.container_type = 'VMAppContainer' + + +class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): + """AzureResource(IaaS VM) Specific feature support request. + + All required parameters must be populated in order to send to Azure. + + :param feature_type: Required. Constant filled by server. + :type feature_type: str + :param vm_size: Size of the resource: VM size(A/D series etc) in case of + IaasVM + :type vm_size: str + :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM + :type vm_sku: str + """ + + _validation = { + 'feature_type': {'required': True}, + } + + _attribute_map = { + 'feature_type': {'key': 'featureType', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'vm_sku': {'key': 'vmSku', 'type': 'str'}, + } + + def __init__(self, *, vm_size: str=None, vm_sku: str=None, **kwargs) -> None: + super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) + self.vm_size = vm_size + self.vm_sku = vm_sku + self.feature_type = 'AzureVMResourceBackup' + + +class AzureVMResourceFeatureSupportResponse(Model): + """Response for feature support requests for Azure IaasVm. + + :param support_status: Support status of feature. Possible values include: + 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' + :type support_status: str or + ~azure.mgmt.recoveryservicesbackup.models.SupportStatus + """ + + _attribute_map = { + 'support_status': {'key': 'supportStatus', 'type': 'str'}, + } + + def __init__(self, *, support_status=None, **kwargs) -> None: + super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) + self.support_status = support_status + + +class WorkloadItem(Model): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadItem + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + } + + _subtype_map = { + 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: + super(WorkloadItem, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_type = workload_type + self.friendly_name = friendly_name + self.protection_state = protection_state + self.workload_item_type = None + + +class AzureVmWorkloadItem(WorkloadItem): + """Azure VM workload-specific workload item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceWorkloadItem + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + _subtype_map = { + 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) + self.parent_name = parent_name + self.server_name = server_name + self.is_auto_protectable = is_auto_protectable + self.subinquireditemcount = subinquireditemcount + self.sub_workload_item_count = sub_workload_item_count + self.workload_item_type = 'AzureVmWorkloadItem' + + +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, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLInstanceProtectableItem + + 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'}, + } + + _subtype_map = { + 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', '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: + super(AzureVmWorkloadProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) + self.parent_name = parent_name + self.parent_unique_name = parent_unique_name + self.server_name = server_name + self.is_auto_protectable = is_auto_protectable + self.is_auto_protected = is_auto_protected + self.subinquireditemcount = subinquireditemcount + self.subprotectableitemcount = subprotectableitemcount + self.prebackupvalidation = prebackupvalidation + self.protectable_item_type = 'AzureVmWorkloadProtectableItem' + + +class AzureVmWorkloadProtectedItem(ProtectedItem): + """Azure VM workload-specific protected item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + _subtype_map = { + 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} + } + + 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, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: + super(AzureVmWorkloadProtectedItem, 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.server_name = server_name + self.parent_name = parent_name + self.parent_type = parent_type + self.protection_status = protection_status + self.protection_state = protection_state + self.last_backup_status = last_backup_status + self.last_backup_time = last_backup_time + self.last_backup_error_detail = last_backup_error_detail + self.protected_item_data_source_id = protected_item_data_source_id + self.protected_item_health_status = protected_item_health_status + self.extended_info = extended_info + self.protected_item_type = 'AzureVmWorkloadProtectedItem' + + +class AzureVmWorkloadProtectedItemExtendedInfo(Model): + """Additional information on Azure Workload for SQL specific backup item. + + :param oldest_recovery_point: The oldest backup copy available for this + backup item. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies available for this + backup item. + :type recovery_point_count: int + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + """ + + _attribute_map = { + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + } + + def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: + super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + self.policy_state = policy_state + + +class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): + """Azure VM (Mercury) workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param work_load_type: Type of workload for the backup management. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type work_load_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param settings: Common settings for the backup management + :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings + :param sub_protection_policy: List of sub-protection policies which + includes schedule and retention + :type sub_protection_policy: + list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, + 'settings': {'key': 'settings', 'type': 'Settings'}, + 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + } + + def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=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.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. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + 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, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: + super(AzureVmWorkloadSAPAseDatabaseProtectedItem, 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, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) + self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' + + +class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.workload_item_type = 'SAPAseDatabase' + + +class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP ASE System. + + 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(AzureVmWorkloadSAPAseSystemProtectableItem, 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 = 'SAPAseSystem' + + +class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP ASE System. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.workload_item_type = 'SAPAseSystem' + + +class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP HANA 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(AzureVmWorkloadSAPHanaDatabaseProtectableItem, 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 = 'SAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): + """Azure VM workload-specific protected item representing SAP HANA Database. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + 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, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: + super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, 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, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) + self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP HANA 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.workload_item_type = 'SAPHanaDatabase' + + +class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SAP HANA System. + + 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(AzureVmWorkloadSAPHanaSystemProtectableItem, 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 = 'SAPHanaSystem' + + +class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP HANA System. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.workload_item_type = 'SAPHanaSystem' + + +class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL Availability + Group. + + 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(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, 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 = 'SQLAvailabilityGroupContainer' + + +class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL 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(AzureVmWorkloadSQLDatabaseProtectableItem, 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 = 'SQLDataBase' + + +class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): + """Azure VM workload-specific protected item representing SQL Database. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the DB represented by this backup + item. + :type friendly_name: str + :param server_name: Host/Cluster Name for instance or AG + :type server_name: str + :param parent_name: Parent name of the DB such as Instance or Availability + Group. + :type parent_name: str + :param parent_type: Parent type of protected item, example: for a DB, + standalone server or distributed + :type parent_type: str + :param protection_status: Backup status of this backup item. + :type protection_status: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param last_backup_status: Last backup operation status. Possible values: + Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', + 'Unhealthy', 'IRPending' + :type last_backup_status: str or + ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus + :param last_backup_time: Timestamp of the last backup operation on this + backup item. + :type last_backup_time: datetime + :param last_backup_error_detail: Error details in last backup + :type last_backup_error_detail: + ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param protected_item_data_source_id: Data ID of the protected item. + :type protected_item_data_source_id: str + :param protected_item_health_status: Health status of the backup item, + evaluated based on last heartbeat received. Possible values include: + 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' + :type protected_item_health_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus + :param extended_info: Additional information for this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, + 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, + 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, + 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, + } + + 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, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: + super(AzureVmWorkloadSQLDatabaseProtectedItem, 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, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) + self.protected_item_type = 'AzureVmWorkloadSQLDatabase' + + +class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SQL 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: + super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.workload_item_type = 'SQLDataBase' + + +class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): + """Azure VM workload-specific protectable item representing SQL Instance. + + 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(AzureVmWorkloadSQLInstanceProtectableItem, 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 = 'SQLInstance' + + +class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SQL Instance. + + 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 workload_item_type: Required. Constant filled by server. + :type workload_item_type: str + :param parent_name: Name for instance or AG + :type parent_name: str + :param server_name: Host/Cluster Name for instance or AG + :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 + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DBs to be protected + :type sub_workload_item_count: int + :param data_directory_paths: Data Directory Paths for default directories + :type data_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] + """ + + _validation = { + 'workload_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'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'server_name': {'key': 'serverName', 'type': 'str'}, + 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, + 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, + 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, + 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, + } + + def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, data_directory_paths=None, **kwargs) -> None: + super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) + self.data_directory_paths = data_directory_paths + self.workload_item_type = 'SQLInstance' + + +class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): + """Azure Recovery Services Vault specific protection intent item. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLAutoProtectionIntent + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + } + + _subtype_map = { + 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} + } + + def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: + super(AzureWorkloadAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) + self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' + + +class AzureWorkloadBackupRequest(BackupRequest): + """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or + CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', + 'Log', 'CopyOnlyFull' + :type backup_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupType + :param enable_compression: Bool for Compression setting + :type enable_compression: bool + :param recovery_point_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'backup_type': {'key': 'backupType', 'type': 'str'}, + 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, *, backup_type=None, enable_compression: bool=None, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: + super(AzureWorkloadBackupRequest, self).__init__(**kwargs) + self.backup_type = backup_type + self.enable_compression = enable_compression + self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc + self.object_type = 'AzureWorkloadBackupRequest' + + +class AzureWorkloadContainerExtendedInfo(Model): + """Extended information of the container. + + :param host_server_name: Host Os Name in case of Stand Alone and Cluster + Name in case of distributed container. + :type host_server_name: str + :param inquiry_info: Inquiry Status for the container. + :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo + :param nodes_list: List of the nodes in case of distributed container. + :type nodes_list: + list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] + """ + + _attribute_map = { + 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, + 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, + 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, + } + + def __init__(self, *, host_server_name: str=None, inquiry_info=None, nodes_list=None, **kwargs) -> None: + super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) + self.host_server_name = host_server_name + self.inquiry_info = inquiry_info + self.nodes_list = nodes_list + + +class AzureWorkloadErrorInfo(Model): + """Azure storage specific error information. + + :param error_code: Error code. + :type error_code: int + :param error_string: Localized error string. + :type error_string: str + :param error_title: Title: Typically, the entity that the error pertains + to. + :type error_title: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + :param additional_details: Additional details for above error code. + :type additional_details: str + """ + + _attribute_map = { + 'error_code': {'key': 'errorCode', 'type': 'int'}, + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'error_title': {'key': 'errorTitle', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, + } + + def __init__(self, *, error_code: int=None, error_string: str=None, error_title: str=None, recommendations=None, additional_details: str=None, **kwargs) -> None: + super(AzureWorkloadErrorInfo, self).__init__(**kwargs) + self.error_code = error_code + self.error_string = error_string + self.error_title = error_title + self.recommendations = recommendations + self.additional_details = additional_details + + +class AzureWorkloadJob(Job): + """Azure storage specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param workload_type: Workload type of the job + :type workload_type: str + :param duration: Time elapsed during the execution of this job. + :type duration: timedelta + :param actions_info: Gets or sets the state/actions applicable on this job + like cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: Error details on execution of this job. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] + :param extended_info: Additional information about the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, workload_type: str=None, duration=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: + super(AzureWorkloadJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) + self.workload_type = workload_type + self.duration = duration + self.actions_info = actions_info + self.error_details = error_details + self.extended_info = extended_info + self.job_type = 'AzureWorkloadJob' + + +class AzureWorkloadJobExtendedInfo(Model): + """Azure VM workload-specific additional information for job. + + :param tasks_list: List of tasks for this job + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] + :param property_bag: Job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: + super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = tasks_list + self.property_bag = property_bag + self.dynamic_error_message = dynamic_error_message + + +class AzureWorkloadJobTaskDetails(Model): + """Azure VM workload specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: + super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) + self.task_id = task_id + self.status = status + + +class AzureWorkloadRecoveryPoint(RecoveryPoint): + """Workload specific recovery point, specifically encapsulates full/diff + recovery point. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} + } + + def __init__(self, *, recovery_point_time_in_utc=None, type=None, **kwargs) -> None: + super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) + self.recovery_point_time_in_utc = recovery_point_time_in_utc + self.type = type + self.object_type = 'AzureWorkloadRecoveryPoint' + + +class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): + """Recovery point specific to PointInTime. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, + } + + _subtype_map = { + '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) + self.time_ranges = time_ranges + self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' + + +class AzureWorkloadRestoreRequest(RestoreRequest): + """AzureWorkload-specific restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + } + + _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: + 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.object_type = 'AzureWorkloadRestoreRequest' + + +class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + '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) + self.point_in_time = point_in_time + self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' + + +class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): + """Recovery point specific to PointInTime in SAPHana. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + '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) + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' + + +class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SAP Hana-specific restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + } + + _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) + self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' + + +class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): + """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + '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) + self.point_in_time = point_in_time + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' + + +class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): + """SAPHana specific recovery point, specifically encapsulates full/diff + recovery points. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + '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) + self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' + + +class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): + """Azure Workload SQL Auto Protection intent item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param item_id: ID of the item which is getting protected, In case of + Azure Vm , it is ProtectedItemId + :type item_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param protection_intent_item_type: Required. Constant filled by server. + :type protection_intent_item_type: str + :param workload_item_type: Workload item type of the item for which intent + is to be set. Possible values include: 'Invalid', 'SQLInstance', + 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + 'SAPAseDatabase' + :type workload_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType + """ + + _validation = { + 'protection_intent_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'item_id': {'key': 'itemId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, workload_item_type=None, **kwargs) -> None: + super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) + self.workload_item_type = workload_item_type + self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' + + +class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): + """SQL specific recovery point, specifically encapsulates full/diff recovery + point along with extended info. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param extended_info: Extended Info that provides data directory details. + Will be populated in two cases: + When a specific recovery point is accessed using GetRecoveryPoint + Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo + query filter + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, + } + + _subtype_map = { + '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) + self.extended_info = extended_info + self.object_type = 'AzureWorkloadSQLRecoveryPoint' + + +class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): + """Recovery point specific to PointInTime. + + 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 + created + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', + 'Full', 'Log', 'Differential' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointType + :param extended_info: Extended Info that provides data directory details. + Will be populated in two cases: + When a specific recovery point is accessed using GetRecoveryPoint + Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo + query filter + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo + :param time_ranges: List of log ranges + :type time_ranges: + list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, + 'type': {'key': 'type', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, + '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) + self.time_ranges = time_ranges + self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' + + +class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): + """AzureWorkload SQL -specific restore. Specifically for full/diff restore. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 + :param is_non_recoverable: SQL specific property where user can chose to + set no-recovery when restore operation is tried + :type is_non_recoverable: bool + :param alternate_directory_paths: Data directory details + :type alternate_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, + 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, + 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, + } + + _subtype_map = { + '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) + 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 + self.object_type = 'AzureWorkloadSQLRestoreRequest' + + +class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): + """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log + restore. + + 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_type: OLR/ALR, RestoreDisks is invalid option. Possible + values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', + 'RestoreDisks' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM on which + workload that was running is being recovered. + :type source_resource_id: str + :param property_bag: Workload specific property bag. + :type property_bag: dict[str, str] + :param target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 + :param is_non_recoverable: SQL specific property where user can chose to + set no-recovery when restore operation is tried + :type is_non_recoverable: bool + :param alternate_directory_paths: Data directory details + :type alternate_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] + :param point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + '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) + self.point_in_time = point_in_time + self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' + + +class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): + """Extended info class details. + + :param 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 + operation. + :type data_directory_paths: + list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] + """ + + _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: + super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) + self.data_directory_time_in_utc = data_directory_time_in_utc + self.data_directory_paths = data_directory_paths + + +class Resource(Model): + """ARM Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.e_tag = e_tag + + +class BackupEngineBaseResource(Resource): + """The base backup engine class. All workload specific backup engines derive + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupEngineBaseResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(BackupEngineBaseResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class BackupEngineExtendedInfo(Model): + """Additional information on backup engine. + + :param database_name: Database name of backup engine. + :type database_name: str + :param protected_items_count: Number of protected items in the backup + engine. + :type protected_items_count: int + :param protected_servers_count: Number of protected servers in the backup + engine. + :type protected_servers_count: int + :param disk_count: Number of disks in the backup engine. + :type disk_count: int + :param used_disk_space: Disk space used in the backup engine. + :type used_disk_space: float + :param available_disk_space: Disk space currently available in the backup + engine. + :type available_disk_space: float + :param refreshed_at: Last refresh time in the backup engine. + :type refreshed_at: datetime + :param azure_protected_instances: Protected instances in the backup + engine. + :type azure_protected_instances: int + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, + 'disk_count': {'key': 'diskCount', 'type': 'int'}, + 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, + 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, + 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, + 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, + } + + def __init__(self, *, database_name: str=None, protected_items_count: int=None, protected_servers_count: int=None, disk_count: int=None, used_disk_space: float=None, available_disk_space: float=None, refreshed_at=None, azure_protected_instances: int=None, **kwargs) -> None: + super(BackupEngineExtendedInfo, self).__init__(**kwargs) + self.database_name = database_name + self.protected_items_count = protected_items_count + self.protected_servers_count = protected_servers_count + self.disk_count = disk_count + self.used_disk_space = used_disk_space + self.available_disk_space = available_disk_space + self.refreshed_at = refreshed_at + self.azure_protected_instances = azure_protected_instances + + +class BackupManagementUsage(Model): + """Backup management usages of a vault. + + :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', + 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' + :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit + :param quota_period: Quota period of usage. + :type quota_period: str + :param next_reset_time: Next reset time of usage. + :type next_reset_time: datetime + :param current_value: Current value of usage. + :type current_value: long + :param limit: Limit of usage. + :type limit: long + :param name: Name of usage. + :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo + """ + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, + 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'NameInfo'}, + } + + def __init__(self, *, unit=None, quota_period: str=None, next_reset_time=None, current_value: int=None, limit: int=None, name=None, **kwargs) -> None: + super(BackupManagementUsage, self).__init__(**kwargs) + self.unit = unit + self.quota_period = quota_period + self.next_reset_time = next_reset_time + self.current_value = current_value + self.limit = limit + self.name = name + + +class BackupRequestResource(Resource): + """Base class for backup request. Workload-specific backup requests are + derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupRequest'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(BackupRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class BackupResourceConfig(Model): + """The resource storage details. + + :param storage_model_type: Storage type. Possible values include: + 'Invalid', 'GeoRedundant', 'LocallyRedundant' + :type storage_model_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type: Storage type. Possible values include: 'Invalid', + 'GeoRedundant', 'LocallyRedundant' + :type storage_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type_state: Locked or Unlocked. Once a machine is + registered against a resource, the storageTypeState is always Locked. + Possible values include: 'Invalid', 'Locked', 'Unlocked' + :type storage_type_state: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState + """ + + _attribute_map = { + 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'}, + 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, + } + + def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, **kwargs) -> None: + super(BackupResourceConfig, self).__init__(**kwargs) + self.storage_model_type = storage_model_type + self.storage_type = storage_type + self.storage_type_state = storage_type_state + + +class BackupResourceConfigResource(Resource): + """The resource storage details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceConfigResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(BackupResourceConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class BackupResourceVaultConfig(Model): + """Backup resource vault config details. + + :param storage_model_type: Storage type. Possible values include: + 'Invalid', 'GeoRedundant', 'LocallyRedundant' + :type storage_model_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type: Storage type. Possible values include: 'Invalid', + 'GeoRedundant', 'LocallyRedundant' + :type storage_type: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageType + :param storage_type_state: Locked or Unlocked. Once a machine is + registered against a resource, the storageTypeState is always Locked. + Possible values include: 'Invalid', 'Locked', 'Unlocked' + :type storage_type_state: str or + ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState + :param enhanced_security_state: Enabled or Disabled. Possible values + include: 'Invalid', 'Enabled', 'Disabled' + :type enhanced_security_state: str or + ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState + """ + + _attribute_map = { + 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, + 'storage_type': {'key': 'storageType', 'type': 'str'}, + 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, + 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, + } + + def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_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 + + +class BackupResourceVaultConfigResource(Resource): + """Backup resource vault config details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceVaultConfigResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(BackupResourceVaultConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class BackupStatusRequest(Model): + """BackupStatus request. + + :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. + Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type resource_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param resource_id: Entire ARM resource id of the resource + :type resource_id: str + :param po_logical_name: Protectable Item Logical Name + :type po_logical_name: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, + } + + def __init__(self, *, resource_type=None, resource_id: str=None, po_logical_name: str=None, **kwargs) -> None: + super(BackupStatusRequest, self).__init__(**kwargs) + self.resource_type = resource_type + self.resource_id = resource_id + self.po_logical_name = po_logical_name + + +class BackupStatusResponse(Model): + """BackupStatus response. + + :param protection_status: Specifies whether the container is registered or + not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + 'Protected', 'ProtectionFailed' + :type protection_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + :param vault_id: Specifies the arm resource id of the vault + :type vault_id: str + :param fabric_name: Specifies the fabric name - Azure or AD. Possible + values include: 'Invalid', 'Azure' + :type fabric_name: str or + ~azure.mgmt.recoveryservicesbackup.models.FabricName + :param container_name: Specifies the product specific container name. E.g. + iaasvmcontainer;iaasvmcontainer;csname;vmname. + :type container_name: str + :param protected_item_name: Specifies the product specific ds name. E.g. + vm;iaasvmcontainer;csname;vmname. + :type protected_item_name: str + :param error_code: ErrorCode in case of intent failed + :type error_code: str + :param error_message: ErrorMessage in case of intent failed. + :type error_message: str + :param policy_name: Specifies the policy name which is used for protection + :type policy_name: str + :param registration_status: Container registration status + :type registration_status: str + """ + + _attribute_map = { + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + 'vault_id': {'key': 'vaultId', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + } + + def __init__(self, *, protection_status=None, vault_id: str=None, fabric_name=None, container_name: str=None, protected_item_name: str=None, error_code: str=None, error_message: str=None, policy_name: str=None, registration_status: str=None, **kwargs) -> None: + super(BackupStatusResponse, self).__init__(**kwargs) + self.protection_status = protection_status + self.vault_id = vault_id + self.fabric_name = fabric_name + self.container_name = container_name + self.protected_item_name = protected_item_name + self.error_code = error_code + self.error_message = error_message + self.policy_name = policy_name + self.registration_status = registration_status + + +class BEKDetails(Model): + """BEK is bitlocker encryption key. + + :param secret_url: Secret is BEK. + :type secret_url: str + :param secret_vault_id: ID of the Key Vault where this Secret is stored. + :type secret_vault_id: str + :param secret_data: BEK data. + :type secret_data: str + """ + + _attribute_map = { + 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, + 'secret_data': {'key': 'secretData', 'type': 'str'}, + } + + def __init__(self, *, secret_url: str=None, secret_vault_id: str=None, secret_data: str=None, **kwargs) -> None: + super(BEKDetails, self).__init__(**kwargs) + self.secret_url = secret_url + self.secret_vault_id = secret_vault_id + self.secret_data = secret_data + + +class BMSBackupEngineQueryObject(Model): + """Query parameters to fetch list of backup engines. + + :param expand: attribute to add extended info + :type expand: str + """ + + _attribute_map = { + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, *, expand: str=None, **kwargs) -> None: + super(BMSBackupEngineQueryObject, self).__init__(**kwargs) + self.expand = expand + + +class BMSBackupEnginesQueryObject(Model): + """Query parameters to fetch list of backup engines. + + :param backup_management_type: Backup management type for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param expand: Attribute to add extended info. + :type expand: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, friendly_name: str=None, expand: str=None, **kwargs) -> None: + super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.friendly_name = friendly_name + self.expand = expand + + +class BMSBackupSummariesQueryObject(Model): + """Query parameters to fetch backup summaries. + + :param type: Backup management type for this container. Possible values + include: 'Invalid', 'BackupProtectedItemCountSummary', + 'BackupProtectionContainerCountSummary' + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) + self.type = type + + +class BMSContainerQueryObject(Model): + """The query filters that can be used with the list containers API. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Required. Backup management type for this + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param container_type: Type of container for filter. Possible values + include: 'Invalid', 'Unknown', 'IaasVMContainer', + 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', + 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', + 'GenericContainer' + :type container_type: str or + ~azure.mgmt.recoveryservicesbackup.models.ContainerType + :param backup_engine_name: Backup engine name + :type backup_engine_name: str + :param fabric_name: Fabric name for filter + :type fabric_name: str + :param status: Status of registration of this container with the Recovery + Services Vault. + :type status: str + :param friendly_name: Friendly name of this container. + :type friendly_name: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type, container_type=None, backup_engine_name: str=None, fabric_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: + super(BMSContainerQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.container_type = container_type + self.backup_engine_name = backup_engine_name + self.fabric_name = fabric_name + self.status = status + self.friendly_name = friendly_name + + +class BMSContainersInquiryQueryObject(Model): + """The query filters that can be used with the inquire container API. + + :param backup_management_type: Backup management type for this container. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Workload type for this container. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, workload_type=None, **kwargs) -> None: + super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_type = workload_type + + +class BMSPOQueryObject(Model): + """Filters to list items that can be backed up. + + :param backup_management_type: Backup management type. Possible values + include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', + 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Workload type. Possible values include: 'Invalid', + 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', + 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param container_name: Full name of the container whose Protectable + Objects should be returned. + :type container_name: str + :param status: Backup status query parameter. + :type status: str + :param friendly_name: Friendly name. + :type friendly_name: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: + super(BMSPOQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_type = workload_type + self.container_name = container_name + self.status = status + self.friendly_name = friendly_name + + +class BMSRefreshContainersQueryObject(Model): + """The query filters that can be used with the refresh container API. + + :param backup_management_type: Backup management type for this container. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, **kwargs) -> None: + super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + + +class BMSRPQueryObject(Model): + """Filters to list backup copies. + + :param start_date: Backup copies created after this time. + :type start_date: datetime + :param end_date: Backup copies created before this time. + :type end_date: datetime + :param restore_point_query_type: RestorePoint type. Possible values + include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', + 'All' + :type restore_point_query_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType + :param extended_info: In Get Recovery Point, it tells whether extended + information about recovery point is asked. + :type extended_info: bool + """ + + _attribute_map = { + 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, + 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, + 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, + } + + def __init__(self, *, start_date=None, end_date=None, restore_point_query_type=None, extended_info: bool=None, **kwargs) -> None: + super(BMSRPQueryObject, self).__init__(**kwargs) + self.start_date = start_date + self.end_date = end_date + self.restore_point_query_type = restore_point_query_type + self.extended_info = extended_info + + +class BMSWorkloadItemQueryObject(Model): + """Filters to list items that can be backed up. + + :param backup_management_type: Backup management type. Possible values + include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', + 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_item_type: Workload Item type. Possible values include: + 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', + 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + :type workload_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType + :param workload_type: Workload type. Possible values include: 'Invalid', + 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', + 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param protection_status: Backup status query parameter. Possible values + include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', + 'ProtectionFailed' + :type protection_status: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, workload_item_type=None, workload_type=None, protection_status=None, **kwargs) -> None: + super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.workload_item_type = workload_item_type + self.workload_type = workload_type + self.protection_status = protection_status + + +class ClientDiscoveryDisplay(Model): + """Localized display information of an operation. + + :param provider: Name of the provider for display purposes + :type provider: str + :param resource: ResourceType for which this Operation can be performed. + :type resource: str + :param operation: Operations Name itself. + :type operation: str + :param description: Description of the operation having details of what + operation is about. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ClientDiscoveryDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ClientDiscoveryForLogSpecification(Model): + """Class to represent shoebox log specification in json client discovery. + + :param name: Name for shoebox log specification. + :type name: str + :param display_name: Localized display name + :type display_name: str + :param blob_duration: blob duration of shoebox log specification + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: + super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class ClientDiscoveryForProperties(Model): + """Class to represent shoebox properties in json client discovery. + + :param service_specification: Operation properties. + :type service_specification: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, + } + + def __init__(self, *, service_specification=None, **kwargs) -> None: + super(ClientDiscoveryForProperties, self).__init__(**kwargs) + self.service_specification = service_specification + + +class ClientDiscoveryForServiceSpecification(Model): + """Class to represent shoebox service specification in json client discovery. + + :param log_specifications: List of log specifications of this operation. + :type log_specifications: + list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, + } + + def __init__(self, *, log_specifications=None, **kwargs) -> None: + super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + + +class ClientDiscoveryValueForSingleApi(Model): + """Available operation details. + + :param name: Name of the Operation. + :type name: str + :param display: Contains the localized display information for this + particular operation + :type display: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay + :param origin: The intended executor of the operation;governs the display + of the operation in the RBAC UX and the audit logs UX + :type origin: str + :param properties: ShoeBox properties for the given operation. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: + super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.properties = properties + + +class ClientScriptForConnect(Model): + """Client script details for file / folder restore. + + :param script_content: File content of the client script for file / folder + restore. + :type script_content: str + :param script_extension: File extension of the client script for file / + folder restore - .ps1 , .sh , etc. + :type script_extension: str + :param os_type: OS type - Windows, Linux etc. for which this file / folder + restore client script works. + :type os_type: str + :param url: URL of Executable from where to source the content. If this is + not null then ScriptContent should not be used + :type url: str + :param script_name_suffix: Mandatory suffix that should be added to the + name of script that is given for download to user. + If its null or empty then , ignore it. + :type script_name_suffix: str + """ + + _attribute_map = { + 'script_content': {'key': 'scriptContent', 'type': 'str'}, + 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, + } + + def __init__(self, *, script_content: str=None, script_extension: str=None, os_type: str=None, url: str=None, script_name_suffix: str=None, **kwargs) -> None: + super(ClientScriptForConnect, self).__init__(**kwargs) + self.script_content = script_content + self.script_extension = script_extension + self.os_type = os_type + self.url = url + self.script_name_suffix = script_name_suffix + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ContainerIdentityInfo(Model): + """Container identity information. + + :param unique_name: Unique name of the container + :type unique_name: str + :param aad_tenant_id: Protection container identity - AAD Tenant + :type aad_tenant_id: str + :param service_principal_client_id: Protection container identity - AAD + Service Principal + :type service_principal_client_id: str + :param audience: Protection container identity - Audience + :type audience: str + """ + + _attribute_map = { + 'unique_name': {'key': 'uniqueName', 'type': 'str'}, + 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, + 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + } + + def __init__(self, *, unique_name: str=None, aad_tenant_id: str=None, service_principal_client_id: str=None, audience: str=None, **kwargs) -> None: + super(ContainerIdentityInfo, self).__init__(**kwargs) + self.unique_name = unique_name + self.aad_tenant_id = aad_tenant_id + self.service_principal_client_id = service_principal_client_id + self.audience = audience + + +class DailyRetentionFormat(Model): + """Daily retention format. + + :param days_of_the_month: List of days of the month. + :type days_of_the_month: + list[~azure.mgmt.recoveryservicesbackup.models.Day] + """ + + _attribute_map = { + 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, + } + + def __init__(self, *, days_of_the_month=None, **kwargs) -> None: + super(DailyRetentionFormat, self).__init__(**kwargs) + self.days_of_the_month = days_of_the_month + + +class DailyRetentionSchedule(Model): + """Daily retention schedule. + + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, *, retention_times=None, retention_duration=None, **kwargs) -> None: + super(DailyRetentionSchedule, self).__init__(**kwargs) + self.retention_times = retention_times + self.retention_duration = retention_duration + + +class Day(Model): + """Day of the week. + + :param date_property: Date of the month + :type date_property: int + :param is_last: Whether Date is last date of month + :type is_last: bool + """ + + _attribute_map = { + 'date_property': {'key': 'date', 'type': 'int'}, + 'is_last': {'key': 'isLast', 'type': 'bool'}, + } + + def __init__(self, *, date_property: int=None, is_last: bool=None, **kwargs) -> None: + super(Day, self).__init__(**kwargs) + self.date_property = date_property + self.is_last = is_last + + +class DistributedNodesInfo(Model): + """This is used to represent the various nodes of the distributed container. + + :param node_name: Name of the node under a distributed container. + :type node_name: str + :param status: Status of this Node. + Failed | Succeeded + :type status: str + :param error_detail: Error Details if the Status is non-success. + :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + """ + + _attribute_map = { + 'node_name': {'key': 'nodeName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + } + + def __init__(self, *, node_name: str=None, status: str=None, error_detail=None, **kwargs) -> None: + super(DistributedNodesInfo, self).__init__(**kwargs) + self.node_name = node_name + self.status = status + self.error_detail = error_detail + + +class DpmBackupEngine(BackupEngineBase): + """Data Protection Manager (DPM) specific backup engine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the backup engine. + :type friendly_name: str + :param backup_management_type: Type of backup management for the backup + engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Registration status of the backup engine with + the Recovery Services Vault. + :type registration_status: str + :param backup_engine_state: Status of the backup engine with the Recovery + Services Vault. = {Active/Deleting/DeleteFailed} + :type backup_engine_state: str + :param health_status: Backup status of the backup engine. + :type health_status: str + :param can_re_register: Flag indicating if the backup engine be + registered, once already registered. + :type can_re_register: bool + :param backup_engine_id: ID of the backup engine. + :type backup_engine_id: str + :param dpm_version: Backup engine version + :type dpm_version: str + :param azure_backup_agent_version: Backup agent version + :type azure_backup_agent_version: str + :param is_azure_backup_agent_upgrade_available: To check if backup agent + upgrade available + :type is_azure_backup_agent_upgrade_available: bool + :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 + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo + :param backup_engine_type: Required. Constant filled by server. + :type backup_engine_type: str + """ + + _validation = { + 'backup_engine_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, + 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, + 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, + 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, + 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, + 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: + super(DpmBackupEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) + self.backup_engine_type = 'DpmBackupEngine' + + +class DPMContainerExtendedInfo(Model): + """Additional information of the DPMContainer. + + :param last_refreshed_at: Last refresh time of the DPMContainer. + :type last_refreshed_at: datetime + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + } + + def __init__(self, *, last_refreshed_at=None, **kwargs) -> None: + super(DPMContainerExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = last_refreshed_at + + +class DpmErrorInfo(Model): + """DPM workload-specific error information. + + :param error_string: Localized error string. + :type error_string: str + :param recommendations: List of localized recommendations for above error + code. + :type recommendations: list[str] + """ + + _attribute_map = { + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: + super(DpmErrorInfo, self).__init__(**kwargs) + self.error_string = error_string + self.recommendations = recommendations + + +class DpmJob(Job): + """DPM workload-specific job object. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time elapsed for job. + :type duration: timedelta + :param dpm_server_name: DPM server name managing the backup item or backup + job. + :type dpm_server_name: str + :param container_name: Name of cluster/server protecting current backup + item, if any. + :type container_name: str + :param container_type: Type of container. + :type container_type: str + :param workload_type: Type of backup item. + :type workload_type: str + :param actions_info: The state/actions applicable on this job like + cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param error_details: The errors. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] + :param extended_info: Additional information for this job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, dpm_server_name: str=None, container_name: str=None, container_type: str=None, workload_type: str=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: + super(DpmJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) + self.duration = duration + self.dpm_server_name = dpm_server_name + self.container_name = container_name + self.container_type = container_type + self.workload_type = workload_type + self.actions_info = actions_info + self.error_details = error_details + self.extended_info = extended_info + self.job_type = 'DpmJob' + + +class DpmJobExtendedInfo(Model): + """Additional information on the DPM workload-specific job. + + :param tasks_list: List of tasks associated with this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] + :param property_bag: The job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message on job + execution. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: + super(DpmJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = tasks_list + self.property_bag = property_bag + self.dynamic_error_message = dynamic_error_message + + +class DpmJobTaskDetails(Model): + """DPM workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: + super(DpmJobTaskDetails, self).__init__(**kwargs) + self.task_id = task_id + self.start_time = start_time + self.end_time = end_time + self.duration = duration + self.status = status + + +class DPMProtectedItem(ProtectedItem): + """Additional information on Backup engine specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the managed item + :type friendly_name: str + :param backup_engine_name: Backup Management server protecting this backup + item + :type backup_engine_name: str + :param protection_state: Protection state of the backup engine. Possible + values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState + :param extended_info: Extended info of the backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, + } + + 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, backup_engine_name: str=None, protection_state=None, extended_info=None, **kwargs) -> None: + super(DPMProtectedItem, 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.backup_engine_name = backup_engine_name + self.protection_state = protection_state + self.extended_info = extended_info + self.protected_item_type = 'DPMProtectedItem' + + +class DPMProtectedItemExtendedInfo(Model): + """Additional information of DPM Protected item. + + :param protectable_object_load_path: Attribute to provide information on + various DBs. + :type protectable_object_load_path: dict[str, str] + :param protected: To check if backup item is disk protected. + :type protected: bool + :param is_present_on_cloud: To check if backup item is cloud protected. + :type is_present_on_cloud: bool + :param last_backup_status: Last backup status information on backup item. + :type last_backup_status: str + :param last_refreshed_at: Last refresh time on backup item. + :type last_refreshed_at: datetime + :param oldest_recovery_point: Oldest cloud recovery point time. + :type oldest_recovery_point: datetime + :param recovery_point_count: cloud recovery point count. + :type recovery_point_count: int + :param on_premise_oldest_recovery_point: Oldest disk recovery point time. + :type on_premise_oldest_recovery_point: datetime + :param on_premise_latest_recovery_point: latest disk recovery point time. + :type on_premise_latest_recovery_point: datetime + :param on_premise_recovery_point_count: disk recovery point count. + :type on_premise_recovery_point_count: int + :param is_collocated: To check if backup item is collocated. + :type is_collocated: bool + :param protection_group_name: Protection group name of the backup item. + :type protection_group_name: str + :param disk_storage_used_in_bytes: Used Disk storage in bytes. + :type disk_storage_used_in_bytes: str + :param total_disk_storage_size_in_bytes: total Disk storage in bytes. + :type total_disk_storage_size_in_bytes: str + """ + + _attribute_map = { + 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, + 'protected': {'key': 'protected', 'type': 'bool'}, + 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, + 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, + 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, + 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, + 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, + 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, + 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, + } + + def __init__(self, *, protectable_object_load_path=None, protected: bool=None, is_present_on_cloud: bool=None, last_backup_status: str=None, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, on_premise_oldest_recovery_point=None, on_premise_latest_recovery_point=None, on_premise_recovery_point_count: int=None, is_collocated: bool=None, protection_group_name: str=None, disk_storage_used_in_bytes: str=None, total_disk_storage_size_in_bytes: str=None, **kwargs) -> None: + super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) + self.protectable_object_load_path = protectable_object_load_path + self.protected = protected + self.is_present_on_cloud = is_present_on_cloud + self.last_backup_status = last_backup_status + self.last_refreshed_at = last_refreshed_at + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + self.on_premise_oldest_recovery_point = on_premise_oldest_recovery_point + self.on_premise_latest_recovery_point = on_premise_latest_recovery_point + self.on_premise_recovery_point_count = on_premise_recovery_point_count + self.is_collocated = is_collocated + self.protection_group_name = protection_group_name + self.disk_storage_used_in_bytes = disk_storage_used_in_bytes + self.total_disk_storage_size_in_bytes = total_disk_storage_size_in_bytes + + +class EncryptionDetails(Model): + """Details needed if the VM was encrypted at the time of backup. + + :param encryption_enabled: Identifies whether this backup copy represents + an encrypted VM at the time of backup. + :type encryption_enabled: bool + :param kek_url: Key Url. + :type kek_url: str + :param secret_key_url: Secret Url. + :type secret_key_url: str + :param kek_vault_id: ID of Key Vault where KEK is stored. + :type kek_vault_id: str + :param secret_key_vault_id: ID of Key Vault where Secret is stored. + :type secret_key_vault_id: str + """ + + _attribute_map = { + 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, + 'kek_url': {'key': 'kekUrl', 'type': 'str'}, + 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, + 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, + 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, + } + + def __init__(self, *, encryption_enabled: bool=None, kek_url: str=None, secret_key_url: str=None, kek_vault_id: str=None, secret_key_vault_id: str=None, **kwargs) -> None: + super(EncryptionDetails, self).__init__(**kwargs) + self.encryption_enabled = encryption_enabled + self.kek_url = kek_url + self.secret_key_url = secret_key_url + self.kek_vault_id = kek_vault_id + self.secret_key_vault_id = secret_key_vault_id + + +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] + """ + + _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: + super(ErrorDetail, self).__init__(**kwargs) + self.code = code + self.message = message + self.recommendations = recommendations + + +class OperationResultInfoBase(Model): + """Base class for operation result info. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo + + 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': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} + } + + def __init__(self, **kwargs) -> None: + super(OperationResultInfoBase, self).__init__(**kwargs) + self.object_type = None + + +class ExportJobsOperationResultInfo(OperationResultInfoBase): + """This class is used to send blob details after exporting jobs. + + 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 blob_url: URL of the blob into which the serialized string of list + of jobs is exported. + :type blob_url: str + :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. + :type blob_sas_key: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'blob_url': {'key': 'blobUrl', 'type': 'str'}, + 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, + } + + def __init__(self, *, blob_url: str=None, 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.object_type = 'ExportJobsOperationResultInfo' + + +class GenericContainer(ProtectionContainer): + """Base class for generic container of backup items. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param fabric_name: Name of the container's fabric + :type fabric_name: str + :param extended_information: Extended information (not returned in List + container API calls) + :type extended_information: + ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, fabric_name: str=None, extended_information=None, **kwargs) -> None: + super(GenericContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.fabric_name = fabric_name + self.extended_information = extended_information + self.container_type = 'GenericContainer' + + +class GenericContainerExtendedInfo(Model): + """Container extended information. + + :param raw_cert_data: Public key of container cert + :type raw_cert_data: str + :param container_identity_info: Container identity information + :type container_identity_info: + ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo + :param service_endpoints: Azure Backup Service Endpoints for the container + :type service_endpoints: dict[str, str] + """ + + _attribute_map = { + 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, + 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, + 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, + } + + def __init__(self, *, raw_cert_data: str=None, container_identity_info=None, service_endpoints=None, **kwargs) -> None: + super(GenericContainerExtendedInfo, self).__init__(**kwargs) + self.raw_cert_data = raw_cert_data + self.container_identity_info = container_identity_info + self.service_endpoints = service_endpoints + + +class GenericProtectedItem(ProtectedItem): + """Base class for backup items. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param policy_state: Indicates consistency of policy object and policy + applied to this backup item. + :type policy_state: str + :param protection_state: Backup state of this backup item. Possible values + include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', + 'ProtectionStopped', 'ProtectionPaused' + :type protection_state: str or + ~azure.mgmt.recoveryservicesbackup.models.ProtectionState + :param protected_item_id: Data Plane Service ID of the protected item. + :type protected_item_id: long + :param source_associations: Loosely coupled (type, value) associations + (example - parent of a protected item) + :type source_associations: dict[str, str] + :param fabric_name: Name of this backup item's fabric. + :type fabric_name: str + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'policy_state': {'key': 'policyState', 'type': 'str'}, + 'protection_state': {'key': 'protectionState', 'type': 'str'}, + 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, + 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + } + + 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, policy_state: str=None, protection_state=None, protected_item_id: int=None, source_associations=None, fabric_name: str=None, **kwargs) -> None: + super(GenericProtectedItem, 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.policy_state = policy_state + self.protection_state = protection_state + self.protected_item_id = protected_item_id + self.source_associations = source_associations + self.fabric_name = fabric_name + self.protected_item_type = 'GenericProtectedItem' + + +class GenericProtectionPolicy(ProtectionPolicy): + """Azure VM (Mercury) workload-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param sub_protection_policy: List of sub-protection policies which + includes schedule and retention + :type sub_protection_policy: + list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + :param fabric_name: Name of this policy's fabric. + :type fabric_name: str + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + } + + def __init__(self, *, protected_items_count: int=None, sub_protection_policy=None, time_zone: str=None, fabric_name: str=None, **kwargs) -> None: + super(GenericProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + self.sub_protection_policy = sub_protection_policy + self.time_zone = time_zone + self.fabric_name = fabric_name + self.backup_management_type = 'GenericProtectionPolicy' + + +class GenericRecoveryPoint(RecoveryPoint): + """Generic backup copy. + + 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 friendly_name: Friendly name of the backup copy. + :type friendly_name: 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 + with this backup copy. + :type recovery_point_additional_info: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, recovery_point_type: str=None, recovery_point_time=None, recovery_point_additional_info: str=None, **kwargs) -> None: + super(GenericRecoveryPoint, self).__init__(**kwargs) + self.friendly_name = friendly_name + self.recovery_point_type = recovery_point_type + self.recovery_point_time = recovery_point_time + self.recovery_point_additional_info = recovery_point_additional_info + self.object_type = 'GenericRecoveryPoint' + + +class GetProtectedItemQueryObject(Model): + """Filters to list backup items. + + :param expand: Specifies if the additional information should be provided + for this item. + :type expand: str + """ + + _attribute_map = { + 'expand': {'key': 'expand', 'type': 'str'}, + } + + def __init__(self, *, expand: str=None, **kwargs) -> None: + super(GetProtectedItemQueryObject, self).__init__(**kwargs) + self.expand = expand + + +class IaasVMBackupRequest(BackupRequest): + """IaaS VM workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after + the time specified (UTC). + :type recovery_point_expiry_time_in_utc: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, + } + + def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: + super(IaasVMBackupRequest, self).__init__(**kwargs) + self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc + 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. + + 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: ID of the IaaS VM backup copy from where the + files/folders have to be restored. + :type recovery_point_id: str + :param virtual_machine_id: Fully qualified ARM ID of the virtual machine + whose the files / folders have to be restored. + :type virtual_machine_id: str + :param initiator_name: iSCSI initiator name. + :type initiator_name: str + :param renew_existing_registration: Whether to renew existing registration + with the iSCSI server. + :type renew_existing_registration: bool + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, + 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, + 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, + } + + def __init__(self, *, recovery_point_id: str=None, virtual_machine_id: str=None, initiator_name: str=None, renew_existing_registration: bool=None, **kwargs) -> None: + super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) + self.recovery_point_id = recovery_point_id + self.virtual_machine_id = virtual_machine_id + self.initiator_name = initiator_name + self.renew_existing_registration = renew_existing_registration + self.object_type = 'IaasVMILRRegistrationRequest' + + +class IaasVMRecoveryPoint(RecoveryPoint): + """IaaS VM workload specific backup copy. + + 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 + with this backup copy. + :type recovery_point_additional_info: str + :param 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 + :param key_and_secret: Required details for recovering an encrypted VM. + Applicable only when IsSourceVMEncrypted is true. + :type key_and_secret: + ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails + :param is_instant_ilr_session_active: Is the session to recover items from + this backup copy still active. + :type is_instant_ilr_session_active: bool + :param recovery_point_tier_details: Recovery point tier information. + :type recovery_point_tier_details: + list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] + :param is_managed_virtual_machine: Whether VM is with Managed Disks + :type is_managed_virtual_machine: bool + :param virtual_machine_size: Virtual Machine Size + :type virtual_machine_size: str + :param original_storage_account_option: Original Storage Account Option + :type original_storage_account_option: bool + :param os_type: OS type + :type os_type: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, + 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, + 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, + 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, + 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, + 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, + 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, + 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, + 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, + 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, + 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + } + + 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: + 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.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 + self.is_managed_virtual_machine = is_managed_virtual_machine + self.virtual_machine_size = virtual_machine_size + self.original_storage_account_option = original_storage_account_option + self.os_type = os_type + self.object_type = 'IaasVMRecoveryPoint' + + +class IaasVMRestoreRequest(RestoreRequest): + """IaaS VM workload-specific restore. + + 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: 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' + :type recovery_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryType + :param source_resource_id: Fully qualified ARM ID of the VM which is being + recovered. + :type source_resource_id: str + :param target_virtual_machine_id: This is the complete ARM Id of the VM + that will be created. + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + :type target_virtual_machine_id: str + :param target_resource_group_id: This is the ARM Id of the resource group + that you want to create for this Virtual machine and other artifacts. + For e.g. /subscriptions/{subId}/resourcegroups/{rg} + :type target_resource_group_id: str + :param storage_account_id: Fully qualified ARM ID of the storage account + to which the VM has to be restored. + :type storage_account_id: str + :param virtual_network_id: This is the virtual network Id of the vnet that + will be attached to the virtual machine. + User will be validated for join action permissions in the linked access. + :type virtual_network_id: str + :param subnet_id: Subnet ID, is the subnet ID associated with the to be + restored VM. For Classic VMs it would be + {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it + would be ARM resource ID used to represent + the subnet. + :type subnet_id: str + :param target_domain_name_id: Fully qualified ARM ID of the domain name to + be associated to the VM being restored. This applies only to Classic + Virtual Machines. + :type target_domain_name_id: str + :param region: Region in which the virtual machine is restored. + :type region: str + :param affinity_group: Affinity group associated to VM to be restored. + Used only for Classic Compute Virtual Machines. + :type affinity_group: str + :param create_new_cloud_service: Should a new cloud service be created + while restoring the VM. If this is false, VM will be restored to the same + cloud service as it was at the time of backup. + :type create_new_cloud_service: bool + :param original_storage_account_option: Original Storage Account Option + :type original_storage_account_option: bool + :param encryption_details: Details needed if the VM was encrypted at the + time of backup. + :type encryption_details: + ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, + 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, + 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, + 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'}, + 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, + 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, + 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, + 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, + } + + 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: + super(IaasVMRestoreRequest, self).__init__(**kwargs) + self.recovery_point_id = recovery_point_id + self.recovery_type = recovery_type + self.source_resource_id = source_resource_id + self.target_virtual_machine_id = target_virtual_machine_id + self.target_resource_group_id = target_resource_group_id + self.storage_account_id = storage_account_id + self.virtual_network_id = virtual_network_id + self.subnet_id = subnet_id + self.target_domain_name_id = target_domain_name_id + self.region = region + self.affinity_group = affinity_group + self.create_new_cloud_service = create_new_cloud_service + self.original_storage_account_option = original_storage_account_option + self.encryption_details = encryption_details + self.object_type = 'IaasVMRestoreRequest' + + +class ILRRequestResource(Resource): + """Parameters to restore file/folders API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ILRRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ILRRequest'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ILRRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class InquiryInfo(Model): + """Details about inquired protectable items under a given container. + + :param status: Inquiry Status for this container such as + InProgress | Failed | Succeeded + :type status: str + :param error_detail: Error Details if the Status is non-success. + :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail + :param inquiry_details: Inquiry Details which will have workload specific + details. + For e.g. - For SQL and oracle this will contain different details. + :type inquiry_details: + list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, + } + + def __init__(self, *, status: str=None, error_detail=None, inquiry_details=None, **kwargs) -> None: + super(InquiryInfo, self).__init__(**kwargs) + self.status = status + self.error_detail = error_detail + self.inquiry_details = inquiry_details + + +class InquiryValidation(Model): + """Validation for inquired protectable items under a given container. + + :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 + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, + } + + def __init__(self, *, status: str=None, error_detail=None, **kwargs) -> None: + super(InquiryValidation, self).__init__(**kwargs) + self.status = status + self.error_detail = error_detail + + +class InstantItemRecoveryTarget(Model): + """Target details for file / folder restore. + + :param client_scripts: List of client scripts. + :type client_scripts: + list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] + """ + + _attribute_map = { + 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, + } + + def __init__(self, *, client_scripts=None, **kwargs) -> None: + super(InstantItemRecoveryTarget, self).__init__(**kwargs) + self.client_scripts = client_scripts + + +class JobQueryObject(Model): + """Filters to list the jobs. + + :param status: Status of the job. Possible values include: 'Invalid', + 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', + 'Cancelling' + :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus + :param backup_management_type: Type of backup management for the job. + Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: Type of operation. Possible values include: 'Invalid', + 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', + 'DisableBackup', 'DeleteBackupData' + :type operation: str or + ~azure.mgmt.recoveryservicesbackup.models.JobOperationType + :param job_id: JobID represents the job uniquely. + :type job_id: str + :param start_time: Job has started at this time. Value is in UTC. + :type start_time: datetime + :param end_time: Job has ended at this time. Value is in UTC. + :type end_time: datetime + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, status=None, backup_management_type=None, operation=None, job_id: str=None, start_time=None, end_time=None, **kwargs) -> None: + super(JobQueryObject, self).__init__(**kwargs) + self.status = status + self.backup_management_type = backup_management_type + self.operation = operation + self.job_id = job_id + self.start_time = start_time + self.end_time = end_time + + +class JobResource(Resource): + """Defines workload agnostic properties for a job. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: JobResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'Job'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(JobResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class KEKDetails(Model): + """KEK is encryption key for BEK. + + :param key_url: Key is KEK. + :type key_url: str + :param key_vault_id: Key Vault ID where this Key is stored. + :type key_vault_id: str + :param key_backup_data: KEK data. + :type key_backup_data: str + """ + + _attribute_map = { + 'key_url': {'key': 'keyUrl', 'type': 'str'}, + 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, + 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, + } + + def __init__(self, *, key_url: str=None, key_vault_id: str=None, key_backup_data: str=None, **kwargs) -> None: + super(KEKDetails, self).__init__(**kwargs) + self.key_url = key_url + self.key_vault_id = key_vault_id + self.key_backup_data = key_backup_data + + +class KeyAndSecretDetails(Model): + """BEK is bitlocker key. + KEK is encryption key for BEK + If the VM was encrypted then we will store following details : + 1. Secret(BEK) - Url + Backup Data + vaultId. + 2. Key(KEK) - Url + Backup Data + vaultId. + 3. EncryptionMechanism + BEK and KEK can potentially have different vault ids. + + :param kek_details: KEK is encryption key for BEK. + :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails + :param bek_details: BEK is bitlocker encryption key. + :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails + :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ + DoublePass + :type encryption_mechanism: str + """ + + _attribute_map = { + 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, + 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, + 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, + } + + def __init__(self, *, kek_details=None, bek_details=None, encryption_mechanism: str=None, **kwargs) -> None: + super(KeyAndSecretDetails, self).__init__(**kwargs) + self.kek_details = kek_details + self.bek_details = bek_details + self.encryption_mechanism = encryption_mechanism + + +class SchedulePolicy(Model): + """Base class for backup schedule. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, + SimpleSchedulePolicy + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} + } + + def __init__(self, **kwargs) -> None: + super(SchedulePolicy, self).__init__(**kwargs) + self.schedule_policy_type = None + + +class LogSchedulePolicy(SchedulePolicy): + """Log policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + :param schedule_frequency_in_mins: Frequency of the log schedule operation + of this policy in minutes. + :type schedule_frequency_in_mins: int + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, + } + + def __init__(self, *, schedule_frequency_in_mins: int=None, **kwargs) -> None: + super(LogSchedulePolicy, self).__init__(**kwargs) + self.schedule_frequency_in_mins = schedule_frequency_in_mins + self.schedule_policy_type = 'LogSchedulePolicy' + + +class RetentionPolicy(Model): + """Base class for retention policy. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} + } + + def __init__(self, **kwargs) -> None: + super(RetentionPolicy, self).__init__(**kwargs) + self.retention_policy_type = None + + +class LongTermRetentionPolicy(RetentionPolicy): + """Long term retention policy. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param daily_schedule: Daily retention schedule of the protection policy. + :type daily_schedule: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule + :param weekly_schedule: Weekly retention schedule of the protection + policy. + :type weekly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule + :param monthly_schedule: Monthly retention schedule of the protection + policy. + :type monthly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule + :param yearly_schedule: Yearly retention schedule of the protection + policy. + :type yearly_schedule: + ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, + 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, + 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, + 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, + } + + def __init__(self, *, daily_schedule=None, weekly_schedule=None, monthly_schedule=None, yearly_schedule=None, **kwargs) -> None: + super(LongTermRetentionPolicy, self).__init__(**kwargs) + self.daily_schedule = daily_schedule + self.weekly_schedule = weekly_schedule + self.monthly_schedule = monthly_schedule + self.yearly_schedule = yearly_schedule + self.retention_policy_type = 'LongTermRetentionPolicy' + + +class LongTermSchedulePolicy(SchedulePolicy): + """Long term policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(LongTermSchedulePolicy, self).__init__(**kwargs) + self.schedule_policy_type = 'LongTermSchedulePolicy' + + +class MabContainer(ProtectionContainer): + """Container with items backed up using MAB backup engine. + + All required parameters must be populated in order to send to Azure. + + :param friendly_name: Friendly name of the container. + :type friendly_name: str + :param backup_management_type: Type of backup management for the + container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param registration_status: Status of registration of the container with + the Recovery Services Vault. + :type registration_status: str + :param health_status: Status of health of the container. + :type health_status: str + :param container_type: Required. Constant filled by server. + :type container_type: str + :param can_re_register: Can the container be registered one more time. + :type can_re_register: bool + :param container_id: ContainerID represents the container. + :type container_id: long + :param protected_item_count: Number of items backed up in this container. + :type protected_item_count: long + :param agent_version: Agent version of this container. + :type agent_version: str + :param extended_info: Additional information for this container + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo + :param mab_container_health_details: Health details on this mab container. + :type mab_container_health_details: + list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] + :param container_health_state: Health state of mab container. + :type container_health_state: str + """ + + _validation = { + 'container_type': {'required': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, + 'health_status': {'key': 'healthStatus', 'type': 'str'}, + 'container_type': {'key': 'containerType', 'type': 'str'}, + 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, + 'container_id': {'key': 'containerId', 'type': 'long'}, + 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, + 'agent_version': {'key': 'agentVersion', 'type': 'str'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, + 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, + 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: int=None, protected_item_count: int=None, agent_version: str=None, extended_info=None, mab_container_health_details=None, container_health_state: str=None, **kwargs) -> None: + super(MabContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) + self.can_re_register = can_re_register + self.container_id = container_id + self.protected_item_count = protected_item_count + self.agent_version = agent_version + self.extended_info = extended_info + self.mab_container_health_details = mab_container_health_details + self.container_health_state = container_health_state + self.container_type = 'Windows' + + +class MabContainerExtendedInfo(Model): + """Additional information of the container. + + :param last_refreshed_at: Time stamp when this container was refreshed. + :type last_refreshed_at: datetime + :param backup_item_type: Type of backup items associated with this + container. Possible values include: 'Invalid', 'VM', 'FileFolder', + 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', + 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type backup_item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupItemType + :param backup_items: List of backup items associated with this container. + :type backup_items: list[str] + :param policy_name: Backup policy associated with this container. + :type policy_name: str + :param last_backup_status: Latest backup status of this container. + :type last_backup_status: str + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, + 'backup_items': {'key': 'backupItems', 'type': '[str]'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + } + + def __init__(self, *, last_refreshed_at=None, backup_item_type=None, backup_items=None, policy_name: str=None, last_backup_status: str=None, **kwargs) -> None: + super(MabContainerExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = last_refreshed_at + self.backup_item_type = backup_item_type + self.backup_items = backup_items + self.policy_name = policy_name + self.last_backup_status = last_backup_status + + +class MABContainerHealthDetails(Model): + """MAB 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] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'title': {'key': 'title', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: + super(MABContainerHealthDetails, self).__init__(**kwargs) + self.code = code + self.title = title + self.message = message + self.recommendations = recommendations + + +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] + """ + + _attribute_map = { + 'error_string': {'key': 'errorString', 'type': 'str'}, + 'recommendations': {'key': 'recommendations', 'type': '[str]'}, + } + + def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: + super(MabErrorInfo, self).__init__(**kwargs) + self.error_string = error_string + self.recommendations = recommendations + + +class MabFileFolderProtectedItem(ProtectedItem): + """MAB workload-specific backup item. + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup management for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param workload_type: Type of workload this item represents. Possible + values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param container_name: Unique name of container + :type container_name: str + :param source_resource_id: ARM ID of the resource to be backed up. + :type source_resource_id: str + :param policy_id: ID of the backup policy with which this item is backed + up. + :type policy_id: str + :param last_recovery_point: Timestamp when the last (latest) backup copy + was created for this backup item. + :type last_recovery_point: datetime + :param backup_set_name: Name of the backup set the backup item belongs to + :type backup_set_name: str + :param create_mode: Create mode to indicate recovery of existing soft + deleted data source or creation of new data source. Possible values + include: 'Invalid', 'Default', 'Recover' + :type create_mode: str or + ~azure.mgmt.recoveryservicesbackup.models.CreateMode + :param deferred_delete_time_in_utc: Time for deferred deletion in UTC + :type deferred_delete_time_in_utc: datetime + :param is_scheduled_for_deferred_delete: Flag to identify whether the DS + is scheduled for deferred delete + :type is_scheduled_for_deferred_delete: bool + :param deferred_delete_time_remaining: Time remaining before the DS marked + for deferred delete is permanently deleted + :type deferred_delete_time_remaining: str + :param is_deferred_delete_schedule_upcoming: Flag to identify whether the + deferred deleted DS is to be purged soon + :type is_deferred_delete_schedule_upcoming: bool + :param is_rehydrate: Flag to identify that deferred deleted DS is to be + moved into Pause state + :type is_rehydrate: bool + :param protected_item_type: Required. Constant filled by server. + :type protected_item_type: str + :param friendly_name: Friendly name of this backup item. + :type friendly_name: str + :param computer_name: Name of the computer associated with this backup + item. + :type computer_name: str + :param last_backup_status: Status of last backup operation. + :type last_backup_status: str + :param protection_state: Protected, ProtectionStopped, IRPending or + ProtectionError + :type protection_state: str + :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. + :type deferred_delete_sync_time_in_utc: long + :param extended_info: Additional information with this backup item. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo + """ + + _validation = { + 'protected_item_type': {'required': True}, + } + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'deferred_delete_time_in_utc': {'key': 'deferredDeleteTimeInUTC', 'type': 'iso-8601'}, + 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, + 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, + 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, + 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, + '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: + 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.protection_state = protection_state + self.deferred_delete_sync_time_in_utc = deferred_delete_sync_time_in_utc + self.extended_info = extended_info + self.protected_item_type = 'MabFileFolderProtectedItem' + + +class MabFileFolderProtectedItemExtendedInfo(Model): + """Additional information on the backed up item. + + :param last_refreshed_at: Last time when the agent data synced to service. + :type last_refreshed_at: datetime + :param oldest_recovery_point: The oldest backup copy available. + :type oldest_recovery_point: datetime + :param recovery_point_count: Number of backup copies associated with the + backup item. + :type recovery_point_count: int + """ + + _attribute_map = { + 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, + 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, + 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, + } + + def __init__(self, *, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, **kwargs) -> None: + super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) + self.last_refreshed_at = last_refreshed_at + self.oldest_recovery_point = oldest_recovery_point + self.recovery_point_count = recovery_point_count + + +class MabJob(Job): + """MAB workload-specific job. + + All required parameters must be populated in order to send to Azure. + + :param entity_friendly_name: Friendly name of the entity on which the + current job is executing. + :type entity_friendly_name: str + :param backup_management_type: Backup management type to execute the + current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', + 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param operation: The operation name. + :type operation: str + :param status: Job status. + :type status: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param activity_id: ActivityId of job. + :type activity_id: str + :param job_type: Required. Constant filled by server. + :type job_type: str + :param duration: Time taken by job to run. + :type duration: timedelta + :param actions_info: The state/actions applicable on jobs like + cancel/retry. + :type actions_info: list[str or + ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] + :param mab_server_name: Name of server protecting the DS. + :type mab_server_name: str + :param mab_server_type: Server type of MAB container. Possible values + include: 'Invalid', 'Unknown', 'IaasVMContainer', + 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', + 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', + 'GenericContainer' + :type mab_server_type: str or + ~azure.mgmt.recoveryservicesbackup.models.MabServerType + :param workload_type: Workload type of backup item. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + :param error_details: The errors. + :type error_details: + list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] + :param extended_info: Additional information on the job. + :type extended_info: + ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo + """ + + _validation = { + 'job_type': {'required': True}, + } + + _attribute_map = { + 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'job_type': {'key': 'jobType', 'type': 'str'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, + 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, + 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, + 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, + } + + def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, mab_server_name: str=None, mab_server_type=None, workload_type=None, error_details=None, extended_info=None, **kwargs) -> None: + super(MabJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) + self.duration = duration + self.actions_info = actions_info + self.mab_server_name = mab_server_name + self.mab_server_type = mab_server_type + self.workload_type = workload_type + self.error_details = error_details + self.extended_info = extended_info + self.job_type = 'MabJob' + + +class MabJobExtendedInfo(Model): + """Additional information for the MAB workload-specific job. + + :param tasks_list: List of tasks for this job. + :type tasks_list: + list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] + :param property_bag: The job properties. + :type property_bag: dict[str, str] + :param dynamic_error_message: Non localized error message specific to this + job. + :type dynamic_error_message: str + """ + + _attribute_map = { + 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, + } + + def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: + super(MabJobExtendedInfo, self).__init__(**kwargs) + self.tasks_list = tasks_list + self.property_bag = property_bag + self.dynamic_error_message = dynamic_error_message + + +class MabJobTaskDetails(Model): + """MAB workload-specific job task details. + + :param task_id: The task display name. + :type task_id: str + :param start_time: The start time. + :type start_time: datetime + :param end_time: The end time. + :type end_time: datetime + :param duration: Time elapsed for task. + :type duration: timedelta + :param status: The status. + :type status: str + """ + + _attribute_map = { + 'task_id': {'key': 'taskId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'duration'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: + super(MabJobTaskDetails, self).__init__(**kwargs) + self.task_id = task_id + self.start_time = start_time + self.end_time = end_time + self.duration = duration + self.status = status + + +class MabProtectionPolicy(ProtectionPolicy): + """Mab container-specific backup policy. + + All required parameters must be populated in order to send to Azure. + + :param protected_items_count: Number of items associated with this policy. + :type protected_items_count: int + :param backup_management_type: Required. Constant filled by server. + :type backup_management_type: str + :param schedule_policy: Backup schedule of backup policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy details. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _validation = { + 'backup_management_type': {'required': True}, + } + + _attribute_map = { + 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: + super(MabProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + self.schedule_policy = schedule_policy + self.retention_policy = retention_policy + self.backup_management_type = 'MAB' + + +class MonthlyRetentionSchedule(Model): + """Monthly retention schedule. + + :param retention_schedule_format_type: Retention schedule format type for + monthly retention policy. Possible values include: 'Invalid', 'Daily', + 'Weekly' + :type retention_schedule_format_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat + :param retention_schedule_daily: Daily retention format for monthly + retention policy. + :type retention_schedule_daily: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat + :param retention_schedule_weekly: Weekly retention format for monthly + retention policy. + :type retention_schedule_weekly: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, + 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, + 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, *, retention_schedule_format_type=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: + super(MonthlyRetentionSchedule, self).__init__(**kwargs) + self.retention_schedule_format_type = retention_schedule_format_type + self.retention_schedule_daily = retention_schedule_daily + self.retention_schedule_weekly = retention_schedule_weekly + self.retention_times = retention_times + self.retention_duration = retention_duration + + +class NameInfo(Model): + """The name of usage. + + :param value: Value of usage. + :type value: str + :param localized_value: Localized value of usage. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: + super(NameInfo, self).__init__(**kwargs) + self.value = value + self.localized_value = localized_value + + +class OperationResultInfo(OperationResultInfoBase): + """Operation result info. + + 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 job_list: List of jobs created by this operation. + :type job_list: list[str] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_list': {'key': 'jobList', 'type': '[str]'}, + } + + def __init__(self, *, job_list=None, **kwargs) -> None: + super(OperationResultInfo, self).__init__(**kwargs) + self.job_list = job_list + self.object_type = 'OperationResultInfo' + + +class OperationWorkerResponse(Model): + """This is the base class for operation result responses. + + :param status_code: HTTP Status Code of the operation. Possible values + include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or + ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode + :param headers: HTTP headers associated with this operation. + :type headers: dict[str, list[str]] + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, + 'headers': {'key': 'headers', 'type': '{[str]}'}, + } + + def __init__(self, *, status_code=None, headers=None, **kwargs) -> None: + super(OperationWorkerResponse, self).__init__(**kwargs) + self.status_code = status_code + self.headers = headers + + +class OperationResultInfoBaseResource(OperationWorkerResponse): + """Base class for operation result info. + + :param status_code: HTTP Status Code of the operation. Possible values + include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', + 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + 'HttpVersionNotSupported' + :type status_code: str or + ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode + :param headers: HTTP headers associated with this operation. + :type headers: dict[str, list[str]] + :param operation: OperationResultInfoBaseResource operation + :type operation: + ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, + 'headers': {'key': 'headers', 'type': '{[str]}'}, + 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, + } + + def __init__(self, *, status_code=None, headers=None, operation=None, **kwargs) -> None: + super(OperationResultInfoBaseResource, self).__init__(status_code=status_code, headers=headers, **kwargs) + self.operation = operation + + +class OperationStatus(Model): + """Operation status. + + :param id: ID of the operation. + :type id: str + :param name: Name of the operation. + :type name: str + :param status: Operation status. Possible values include: 'Invalid', + 'InProgress', 'Succeeded', 'Failed', 'Canceled' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues + :param start_time: Operation start time. Format: ISO-8601. + :type start_time: datetime + :param end_time: Operation end time. Format: ISO-8601. + :type end_time: datetime + :param error: Error information related to this operation. + :type error: + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError + :param properties: Additional information associated with this operation. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'OperationStatusError'}, + 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, + } + + def __init__(self, *, id: str=None, name: str=None, status=None, start_time=None, end_time=None, error=None, properties=None, **kwargs) -> None: + super(OperationStatus, self).__init__(**kwargs) + self.id = id + self.name = name + self.status = status + self.start_time = start_time + self.end_time = end_time + self.error = error + self.properties = properties + + +class OperationStatusError(Model): + """Error information associated with operation status call. + + :param code: Error code of the operation failure. + :type code: str + :param message: Error message displayed if the operation failure. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(OperationStatusError, self).__init__(**kwargs) + self.code = code + self.message = message + + +class OperationStatusExtendedInfo(Model): + """Base class for additional information of operation status. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo + + 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': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} + } + + def __init__(self, **kwargs) -> None: + super(OperationStatusExtendedInfo, self).__init__(**kwargs) + self.object_type = None + + +class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): + """Operation status job extended info. + + 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 job_id: ID of the job created for this protected item. + :type job_id: str + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + } + + def __init__(self, *, job_id: str=None, **kwargs) -> None: + super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) + self.job_id = job_id + self.object_type = 'OperationStatusJobExtendedInfo' + + +class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): + """Operation status extended info for list of jobs. + + 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 job_ids: IDs of the jobs created for the protected item. + :type job_ids: list[str] + :param failed_jobs_error: Stores all the failed jobs along with the + corresponding error codes. + :type failed_jobs_error: dict[str, str] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'job_ids': {'key': 'jobIds', 'type': '[str]'}, + 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, + } + + def __init__(self, *, job_ids=None, failed_jobs_error=None, **kwargs) -> None: + super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) + self.job_ids = job_ids + self.failed_jobs_error = failed_jobs_error + self.object_type = 'OperationStatusJobsExtendedInfo' + + +class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): + """Operation status extended info for ILR provision action. + + 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_target: Target details for file / folder restore. + :type recovery_target: + ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, + } + + def __init__(self, *, recovery_target=None, **kwargs) -> None: + super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) + self.recovery_target = recovery_target + self.object_type = 'OperationStatusProvisionILRExtendedInfo' + + +class PointInTimeRange(Model): + """Provides details for log ranges. + + :param start_time: Start time of the time range for log recovery. + :type start_time: datetime + :param end_time: End time of the time range for log recovery. + :type end_time: datetime + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, start_time=None, end_time=None, **kwargs) -> None: + super(PointInTimeRange, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + + +class PreBackupValidation(Model): + """Pre-backup validation for Azure VM Workload provider. + + :param status: Status of protectable item, i.e. + InProgress,Succeeded,Failed. Possible values include: 'Invalid', + 'Success', 'Failed' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus + :param code: Error code of protectable item + :type code: str + :param message: Message corresponding to the error code for the + protectable item + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, status=None, code: str=None, message: str=None, **kwargs) -> None: + super(PreBackupValidation, self).__init__(**kwargs) + self.status = status + self.code = code + self.message = message + + +class PreValidateEnableBackupRequest(Model): + """Contract to validate if backup can be enabled on the given resource in a + given vault and given configuration. + It will validate followings + 1. Vault capacity + 2. VM is already protected + 3. Any VM related configuration passed in properties. + + :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare + etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', + 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + 'SAPAseDatabase' + :type resource_type: str or + ~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 + :type vault_id: str + :param properties: Configuration of VM if any needs to be validated like + OS type etc + :type properties: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'vault_id': {'key': 'vaultId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'str'}, + } + + def __init__(self, *, resource_type=None, resource_id: str=None, vault_id: str=None, properties: str=None, **kwargs) -> None: + super(PreValidateEnableBackupRequest, self).__init__(**kwargs) + self.resource_type = resource_type + self.resource_id = resource_id + self.vault_id = vault_id + self.properties = properties + + +class PreValidateEnableBackupResponse(Model): + """Response contract for enable backup validation request. + + :param status: Validation Status. Possible values include: 'Invalid', + 'Succeeded', 'Failed' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus + :param error_code: Response error code + :type error_code: str + :param error_message: Response error message + :type error_message: str + :param recommendation: Recommended action for user + :type recommendation: str + :param container_name: Specifies the product specific container name. E.g. + iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + for portal + :type container_name: str + :param protected_item_name: Specifies the product specific ds name. E.g. + vm;iaasvmcontainer;rgname;vmname. This is required for portal + :type protected_item_name: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'recommendation': {'key': 'recommendation', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, + } + + def __init__(self, *, status=None, error_code: str=None, error_message: str=None, recommendation: str=None, container_name: str=None, protected_item_name: str=None, **kwargs) -> None: + super(PreValidateEnableBackupResponse, self).__init__(**kwargs) + self.status = status + self.error_code = error_code + self.error_message = error_message + self.recommendation = recommendation + self.container_name = container_name + self.protected_item_name = protected_item_name + + +class ProtectableContainerResource(Resource): + """Protectable Container Class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectableContainerResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ProtectableContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class ProtectedItemQueryObject(Model): + """Filters to list backup items. + + :param health_state: Health State for the backed up item. Possible values + include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' + :type health_state: str or + ~azure.mgmt.recoveryservicesbackup.models.HealthState + :param backup_management_type: Backup management type for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param item_type: Type of workload this item represents. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.DataSourceType + :param policy_name: Backup policy name associated with the backup item. + :type policy_name: str + :param container_name: Name of the container. + :type container_name: str + :param backup_engine_name: Backup Engine name + :type backup_engine_name: str + :param friendly_name: Friendly name of protected item + :type friendly_name: str + :param fabric_name: Name of the fabric. + :type fabric_name: str + :param backup_set_name: Name of the backup set. + :type backup_set_name: str + """ + + _attribute_map = { + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, + } + + def __init__(self, *, health_state=None, backup_management_type=None, item_type=None, policy_name: str=None, container_name: str=None, backup_engine_name: str=None, friendly_name: str=None, fabric_name: str=None, backup_set_name: str=None, **kwargs) -> None: + super(ProtectedItemQueryObject, self).__init__(**kwargs) + self.health_state = health_state + self.backup_management_type = backup_management_type + self.item_type = item_type + self.policy_name = policy_name + self.container_name = container_name + self.backup_engine_name = backup_engine_name + self.friendly_name = friendly_name + self.fabric_name = fabric_name + self.backup_set_name = backup_set_name + + +class ProtectedItemResource(Resource): + """Base class for backup items. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectedItemResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ProtectedItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class ProtectionContainerResource(Resource): + """Base class for container with backup items. Containers with specific + workloads are derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionContainerResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ProtectionContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class ProtectionIntentQueryObject(Model): + """Filters to list protection intent. + + :param backup_management_type: Backup management type for the backed up + item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param item_type: Type of workload this item represents. Possible values + include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' + :type item_type: str or + ~azure.mgmt.recoveryservicesbackup.models.IntentItemType + :param parent_name: Parent name of the intent + :type parent_name: str + :param item_name: Item name of the intent + :type item_name: str + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'item_type': {'key': 'itemType', 'type': 'str'}, + 'parent_name': {'key': 'parentName', 'type': 'str'}, + 'item_name': {'key': 'itemName', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, item_type=None, parent_name: str=None, item_name: str=None, **kwargs) -> None: + super(ProtectionIntentQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.item_type = item_type + self.parent_name = parent_name + self.item_name = item_name + + +class ProtectionIntentResource(Resource): + """Base class for backup ProtectionIntent. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionIntentResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ProtectionIntentResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class ProtectionPolicyQueryObject(Model): + """Filters the list backup policies API. + + :param backup_management_type: Backup management type for the backup + policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + 'DefaultBackup' + :type backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType + :param fabric_name: Fabric name for filter + :type fabric_name: str + :param workload_type: Workload type for the backup policy. Possible values + include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', + 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType + """ + + _attribute_map = { + 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, + 'fabric_name': {'key': 'fabricName', 'type': 'str'}, + 'workload_type': {'key': 'workloadType', 'type': 'str'}, + } + + def __init__(self, *, backup_management_type=None, fabric_name: str=None, workload_type=None, **kwargs) -> None: + super(ProtectionPolicyQueryObject, self).__init__(**kwargs) + self.backup_management_type = backup_management_type + self.fabric_name = fabric_name + self.workload_type = workload_type + + +class ProtectionPolicyResource(Resource): + """Base class for backup policy. Workload-specific backup policies are derived + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ProtectionPolicyResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ProtectionPolicyResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class RecoveryPointResource(Resource): + """Base class for backup copies. Workload-specific backup copies are derived + from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: RecoveryPointResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(RecoveryPointResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class RecoveryPointTierInformation(Model): + """Recovery point tier information. + + :param type: Recovery point tier type. Possible values include: 'Invalid', + 'InstantRP', 'HardenedRP' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType + :param status: Recovery point tier status. Possible values include: + 'Invalid', 'Valid', 'Disabled', 'Deleted' + :type status: str or + ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, + 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, + } + + def __init__(self, *, type=None, status=None, **kwargs) -> None: + super(RecoveryPointTierInformation, self).__init__(**kwargs) + self.type = type + self.status = status + + +class ResourceList(Model): + """Base for all lists of resources. + + :param next_link: The uri to fetch the next page of resources. Call + ListNext() fetches next page of resources. + :type next_link: str + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(ResourceList, self).__init__(**kwargs) + self.next_link = next_link + + +class RestoreFileSpecs(Model): + """Restore file specs like file path, type and target folder path info. + + :param path: Source File/Folder path + :type path: str + :param file_spec_type: Indicates what the Path variable stands for + :type file_spec_type: str + :param target_folder_path: Destination folder path in target FileShare + :type target_folder_path: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, + 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, + } + + def __init__(self, *, path: str=None, file_spec_type: str=None, target_folder_path: str=None, **kwargs) -> None: + super(RestoreFileSpecs, self).__init__(**kwargs) + self.path = path + self.file_spec_type = file_spec_type + self.target_folder_path = target_folder_path + + +class RestoreRequestResource(Resource): + """Base class for restore request. Workload-specific restore requests are + derived from this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: RestoreRequestResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(RestoreRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class RetentionDuration(Model): + """Retention duration. + + :param count: Count of duration types. Retention duration is obtained by + the counting the duration type Count times. + For example, when Count = 3 and DurationType = Weeks, retention duration + will be three weeks. + :type count: int + :param duration_type: Retention duration type of retention policy. + Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' + :type duration_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType + """ + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'duration_type': {'key': 'durationType', 'type': 'str'}, + } + + def __init__(self, *, count: int=None, duration_type=None, **kwargs) -> None: + super(RetentionDuration, self).__init__(**kwargs) + self.count = count + self.duration_type = duration_type + + +class Settings(Model): + """Common settings field for backup management. + + :param time_zone: TimeZone optional input as string. For example: TimeZone + = "Pacific Standard Time". + :type time_zone: str + :param issqlcompression: SQL compression flag + :type issqlcompression: bool + :param is_compression: Workload compression flag. This has been added so + that 'isSqlCompression' + will be deprecated once clients upgrade to consider this flag. + :type is_compression: bool + """ + + _attribute_map = { + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, + 'is_compression': {'key': 'isCompression', 'type': 'bool'}, + } + + def __init__(self, *, time_zone: str=None, issqlcompression: bool=None, is_compression: bool=None, **kwargs) -> None: + super(Settings, self).__init__(**kwargs) + self.time_zone = time_zone + self.issqlcompression = issqlcompression + self.is_compression = is_compression + + +class SimpleRetentionPolicy(RetentionPolicy): + """Simple policy retention. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param retention_duration: Retention duration of the protection policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, *, retention_duration=None, **kwargs) -> None: + super(SimpleRetentionPolicy, self).__init__(**kwargs) + self.retention_duration = retention_duration + self.retention_policy_type = 'SimpleRetentionPolicy' + + +class SimpleSchedulePolicy(SchedulePolicy): + """Simple policy schedule. + + All required parameters must be populated in order to send to Azure. + + :param schedule_policy_type: Required. Constant filled by server. + :type schedule_policy_type: str + :param schedule_run_frequency: Frequency of the schedule operation of this + policy. Possible values include: 'Invalid', 'Daily', 'Weekly' + :type schedule_run_frequency: str or + ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType + :param schedule_run_days: List of days of week this schedule has to be + run. + :type schedule_run_days: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param schedule_run_times: List of times of day this schedule has to be + run. + :type schedule_run_times: list[datetime] + :param schedule_weekly_frequency: At every number weeks this schedule has + to be run. + :type schedule_weekly_frequency: int + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, + 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, + 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, + 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, + } + + def __init__(self, *, schedule_run_frequency=None, schedule_run_days=None, schedule_run_times=None, schedule_weekly_frequency: int=None, **kwargs) -> None: + super(SimpleSchedulePolicy, self).__init__(**kwargs) + self.schedule_run_frequency = schedule_run_frequency + self.schedule_run_days = schedule_run_days + self.schedule_run_times = schedule_run_times + self.schedule_weekly_frequency = schedule_weekly_frequency + self.schedule_policy_type = 'SimpleSchedulePolicy' + + +class SQLDataDirectory(Model): + """SQLDataDirectory info. + + :param type: Type of data directory mapping. Possible values include: + 'Invalid', 'Data', 'Log' + :type type: str or + ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType + :param path: File path + :type path: str + :param logical_name: Logical name of the file + :type logical_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, + 'logical_name': {'key': 'logicalName', 'type': 'str'}, + } + + def __init__(self, *, type=None, path: str=None, logical_name: str=None, **kwargs) -> None: + super(SQLDataDirectory, self).__init__(**kwargs) + self.type = type + self.path = path + self.logical_name = logical_name + + +class SQLDataDirectoryMapping(Model): + """Encapsulates information regarding data directory. + + :param mapping_type: Type of data directory mapping. Possible values + include: 'Invalid', 'Data', 'Log' + :type mapping_type: str or + ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType + :param source_logical_name: Restore source logical name path + :type source_logical_name: str + :param source_path: Restore source path + :type source_path: str + :param target_path: Target path + :type target_path: str + """ + + _attribute_map = { + 'mapping_type': {'key': 'mappingType', 'type': 'str'}, + 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, + 'source_path': {'key': 'sourcePath', 'type': 'str'}, + 'target_path': {'key': 'targetPath', 'type': 'str'}, + } + + def __init__(self, *, mapping_type=None, source_logical_name: str=None, source_path: str=None, target_path: str=None, **kwargs) -> None: + super(SQLDataDirectoryMapping, self).__init__(**kwargs) + self.mapping_type = mapping_type + self.source_logical_name = source_logical_name + self.source_path = source_path + self.target_path = target_path + + +class SubProtectionPolicy(Model): + """Sub-protection policy which includes schedule and retention. + + :param policy_type: Type of backup policy type. Possible values include: + 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + :type policy_type: str or + ~azure.mgmt.recoveryservicesbackup.models.PolicyType + :param schedule_policy: Backup schedule specified as part of backup + policy. + :type schedule_policy: + ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy + :param retention_policy: Retention policy with the details on backup copy + retention ranges. + :type retention_policy: + ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy + """ + + _attribute_map = { + 'policy_type': {'key': 'policyType', 'type': 'str'}, + 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, + 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, + } + + def __init__(self, *, policy_type=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: + super(SubProtectionPolicy, self).__init__(**kwargs) + self.policy_type = policy_type + self.schedule_policy = schedule_policy + self.retention_policy = retention_policy + + +class TargetAFSRestoreInfo(Model): + """Target Azure File Share Info. + + :param name: File share name + :type name: str + :param target_resource_id: Target file share resource ARM ID + :type target_resource_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, target_resource_id: str=None, **kwargs) -> None: + super(TargetAFSRestoreInfo, self).__init__(**kwargs) + self.name = name + self.target_resource_id = target_resource_id + + +class TargetRestoreInfo(Model): + """Details about target workload during restore operation. + + :param overwrite_option: Can Overwrite if Target DataBase already exists. + Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' + :type overwrite_option: str or + ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions + :param container_id: Resource Id name of the container in which Target + DataBase resides + :type container_id: str + :param database_name: Database name InstanceName/DataBaseName for SQL or + System/DbName for SAP Hana + :type database_name: str + """ + + _attribute_map = { + 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, + 'container_id': {'key': 'containerId', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, *, overwrite_option=None, container_id: str=None, database_name: str=None, **kwargs) -> None: + super(TargetRestoreInfo, self).__init__(**kwargs) + self.overwrite_option = overwrite_option + self.container_id = container_id + self.database_name = database_name + + +class TokenInformation(Model): + """The token information details. + + :param token: Token value. + :type token: str + :param expiry_time_in_utc_ticks: Expiry time of token. + :type expiry_time_in_utc_ticks: long + :param security_pin: Security PIN + :type security_pin: str + """ + + _attribute_map = { + 'token': {'key': 'token', 'type': 'str'}, + 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, + 'security_pin': {'key': 'securityPIN', 'type': 'str'}, + } + + def __init__(self, *, token: str=None, expiry_time_in_utc_ticks: int=None, security_pin: str=None, **kwargs) -> None: + super(TokenInformation, self).__init__(**kwargs) + self.token = token + self.expiry_time_in_utc_ticks = expiry_time_in_utc_ticks + self.security_pin = security_pin + + +class ValidateOperationRequest(Model): + """Base class for validate operation request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ValidateRestoreOperationRequest + + 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': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} + } + + def __init__(self, **kwargs) -> None: + super(ValidateOperationRequest, self).__init__(**kwargs) + self.object_type = None + + +class ValidateRestoreOperationRequest(ValidateOperationRequest): + """AzureRestoreValidation request. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ValidateIaasVMRestoreOperationRequest + + 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 restore_request: Sets restore request to be validated + :type restore_request: + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, + } + + _subtype_map = { + 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} + } + + def __init__(self, *, restore_request=None, **kwargs) -> None: + super(ValidateRestoreOperationRequest, self).__init__(**kwargs) + self.restore_request = restore_request + self.object_type = 'ValidateRestoreOperationRequest' + + +class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): + """AzureRestoreValidation 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 restore_request: Sets restore request to be validated + :type restore_request: + ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, + } + + def __init__(self, *, restore_request=None, **kwargs) -> None: + super(ValidateIaasVMRestoreOperationRequest, self).__init__(restore_request=restore_request, **kwargs) + self.object_type = 'ValidateIaasVMRestoreOperationRequest' + + +class ValidateOperationResponse(Model): + """Base class for validate operation response. + + :param validation_results: Gets the validation result + :type validation_results: + list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] + """ + + _attribute_map = { + 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, + } + + def __init__(self, *, validation_results=None, **kwargs) -> None: + super(ValidateOperationResponse, self).__init__(**kwargs) + self.validation_results = validation_results + + +class ValidateOperationsResponse(Model): + """ValidateOperationsResponse. + + :param validate_operation_response: + :type validate_operation_response: + ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse + """ + + _attribute_map = { + 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, + } + + def __init__(self, *, validate_operation_response=None, **kwargs) -> None: + super(ValidateOperationsResponse, self).__init__(**kwargs) + self.validate_operation_response = validate_operation_response + + +class WeeklyRetentionFormat(Model): + """Weekly retention format. + + :param days_of_the_week: List of days of the week. + :type days_of_the_week: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param weeks_of_the_month: List of weeks of month. + :type weeks_of_the_month: list[str or + ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] + """ + + _attribute_map = { + 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, + 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, + } + + def __init__(self, *, days_of_the_week=None, weeks_of_the_month=None, **kwargs) -> None: + super(WeeklyRetentionFormat, self).__init__(**kwargs) + self.days_of_the_week = days_of_the_week + self.weeks_of_the_month = weeks_of_the_month + + +class WeeklyRetentionSchedule(Model): + """Weekly retention schedule. + + :param days_of_the_week: List of days of week for weekly retention policy. + :type days_of_the_week: list[str or + ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, *, days_of_the_week=None, retention_times=None, retention_duration=None, **kwargs) -> None: + super(WeeklyRetentionSchedule, self).__init__(**kwargs) + self.days_of_the_week = days_of_the_week + self.retention_times = retention_times + self.retention_duration = retention_duration + + +class WorkloadInquiryDetails(Model): + """Details of an inquired protectable item. + + :param type: Type of the Workload such as SQL, Oracle etc. + :type type: str + :param item_count: Contains the protectable item Count inside this + Container. + :type item_count: long + :param inquiry_validation: Inquiry validation such as permissions and + other backup validations. + :type inquiry_validation: + ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'item_count': {'key': 'itemCount', 'type': 'long'}, + 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, + } + + def __init__(self, *, type: str=None, item_count: int=None, inquiry_validation=None, **kwargs) -> None: + super(WorkloadInquiryDetails, self).__init__(**kwargs) + self.type = type + self.item_count = item_count + self.inquiry_validation = inquiry_validation + + +class WorkloadItemResource(Resource): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: WorkloadItemResource properties + :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(WorkloadItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class WorkloadProtectableItemResource(Resource): + """Base class for backup item. Workload-specific backup items are derived from + this class. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: WorkloadProtectableItemResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(WorkloadProtectableItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + +class YearlyRetentionSchedule(Model): + """Yearly retention schedule. + + :param retention_schedule_format_type: Retention schedule format for + yearly retention policy. Possible values include: 'Invalid', 'Daily', + 'Weekly' + :type retention_schedule_format_type: str or + ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat + :param months_of_year: List of months of year of yearly retention policy. + :type months_of_year: list[str or + ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] + :param retention_schedule_daily: Daily retention format for yearly + retention policy. + :type retention_schedule_daily: + ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat + :param retention_schedule_weekly: Weekly retention format for yearly + retention policy. + :type retention_schedule_weekly: + ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat + :param retention_times: Retention times of retention policy. + :type retention_times: list[datetime] + :param retention_duration: Retention duration of retention Policy. + :type retention_duration: + ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration + """ + + _attribute_map = { + 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, + 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, + 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, + 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, + 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, + 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, + } + + def __init__(self, *, retention_schedule_format_type=None, months_of_year=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: + super(YearlyRetentionSchedule, self).__init__(**kwargs) + self.retention_schedule_format_type = retention_schedule_format_type + self.months_of_year = months_of_year + self.retention_schedule_daily = retention_schedule_daily + self.retention_schedule_weekly = retention_schedule_weekly + self.retention_times = retention_times + self.retention_duration = retention_duration 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 new file mode 100644 index 000000000000..a33c8e376acc --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py @@ -0,0 +1,170 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +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 ProtectionPolicyResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProtectionPolicyResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProtectionPolicyResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ProtectionPolicyResourcePaged, self).__init__(*args, **kwargs) +class ProtectedItemResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProtectedItemResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProtectedItemResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ProtectedItemResourcePaged, self).__init__(*args, **kwargs) +class ProtectionIntentResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProtectionIntentResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProtectionIntentResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ProtectionIntentResourcePaged, self).__init__(*args, **kwargs) +class BackupManagementUsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`BackupManagementUsage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BackupManagementUsage]'} + } + + def __init__(self, *args, **kwargs): + + super(BackupManagementUsagePaged, self).__init__(*args, **kwargs) +class BackupEngineBaseResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`BackupEngineBaseResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BackupEngineBaseResource]'} + } + + def __init__(self, *args, **kwargs): + + super(BackupEngineBaseResourcePaged, self).__init__(*args, **kwargs) +class ProtectableContainerResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProtectableContainerResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProtectableContainerResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ProtectableContainerResourcePaged, self).__init__(*args, **kwargs) +class WorkloadItemResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`WorkloadItemResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[WorkloadItemResource]'} + } + + 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 + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[WorkloadProtectableItemResource]'} + } + + def __init__(self, *args, **kwargs): + + super(WorkloadProtectableItemResourcePaged, self).__init__(*args, **kwargs) +class ProtectionContainerResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ProtectionContainerResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ProtectionContainerResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ProtectionContainerResourcePaged, self).__init__(*args, **kwargs) +class ClientDiscoveryValueForSingleApiPaged(Paged): + """ + A paging container for iterating over a list of :class:`ClientDiscoveryValueForSingleApi ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ClientDiscoveryValueForSingleApi]'} + } + + def __init__(self, *args, **kwargs): + + super(ClientDiscoveryValueForSingleApiPaged, self).__init__(*args, **kwargs) 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 similarity index 100% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_services_backup_client_enums.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py deleted file mode 100644 index ad2495dd5f10..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .feature_support_request import FeatureSupportRequest - - -class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): - """Azure backup goal feature specific request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureBackupGoals' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py deleted file mode 100644 index 0db35ed680b8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .feature_support_request_py3 import FeatureSupportRequest - - -class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): - """Azure backup goal feature specific request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureBackupGoals' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container.py deleted file mode 100644 index 48b872b627bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .dpm_container import DpmContainer - - -class AzureBackupServerContainer(DpmContainer): - """AzureBackupServer (DPMVenus) workload-specific protection container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureBackupServerContainer, self).__init__(**kwargs) - self.container_type = 'AzureBackupServerContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container_py3.py deleted file mode 100644 index 0a04c30aab8c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_container_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .dpm_container_py3 import DpmContainer - - -class AzureBackupServerContainer(DpmContainer): - """AzureBackupServer (DPMVenus) workload-specific protection container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: - super(AzureBackupServerContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, can_re_register=can_re_register, container_id=container_id, protected_item_count=protected_item_count, dpm_agent_version=dpm_agent_version, dpm_servers=dpm_servers, upgrade_available=upgrade_available, protection_status=protection_status, extended_info=extended_info, **kwargs) - self.container_type = 'AzureBackupServerContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine.py deleted file mode 100644 index 6b52ef8925ab..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_engine_base import BackupEngineBase - - -class AzureBackupServerEngine(BackupEngineBase): - """Backup engine type when Azure Backup Server is used to manage the backups. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureBackupServerEngine, self).__init__(**kwargs) - self.backup_engine_type = 'AzureBackupServerEngine' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine_py3.py deleted file mode 100644 index 70218b27f427..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_server_engine_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_engine_base_py3 import BackupEngineBase - - -class AzureBackupServerEngine(BackupEngineBase): - """Backup engine type when Azure Backup Server is used to manage the backups. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(AzureBackupServerEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) - self.backup_engine_type = 'AzureBackupServerEngine' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request.py deleted file mode 100644 index 59314ba015ee..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request import BackupRequest - - -class AzureFileShareBackupRequest(BackupRequest): - """AzureFileShare workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'AzureFileShareBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request_py3.py deleted file mode 100644 index 0c5b79db093a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_backup_request_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request_py3 import BackupRequest - - -class AzureFileShareBackupRequest(BackupRequest): - """AzureFileShare workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(AzureFileShareBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'AzureFileShareBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item.py deleted file mode 100644 index 98076de11082..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item import WorkloadProtectableItem - - -class AzureFileShareProtectableItem(WorkloadProtectableItem): - """Protectable item for Azure Fileshare workloads. - - 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_container_fabric_id: Full Fabric ID of container to which - this protectable item belongs. For example, ARM ID. - :type parent_container_fabric_id: str - :param parent_container_friendly_name: Friendly name of container to which - this protectable item belongs. - :type parent_container_friendly_name: str - :param azure_file_share_type: File Share type XSync or XSMB. Possible - values include: 'Invalid', 'XSMB', 'XSync' - :type azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType - """ - - _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_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, - 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, - 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareProtectableItem, self).__init__(**kwargs) - self.parent_container_fabric_id = kwargs.get('parent_container_fabric_id', None) - self.parent_container_friendly_name = kwargs.get('parent_container_friendly_name', None) - self.azure_file_share_type = kwargs.get('azure_file_share_type', None) - self.protectable_item_type = 'AzureFileShare' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item_py3.py deleted file mode 100644 index 551af4045b91..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protectable_item_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item_py3 import WorkloadProtectableItem - - -class AzureFileShareProtectableItem(WorkloadProtectableItem): - """Protectable item for Azure Fileshare workloads. - - 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_container_fabric_id: Full Fabric ID of container to which - this protectable item belongs. For example, ARM ID. - :type parent_container_fabric_id: str - :param parent_container_friendly_name: Friendly name of container to which - this protectable item belongs. - :type parent_container_friendly_name: str - :param azure_file_share_type: File Share type XSync or XSMB. Possible - values include: 'Invalid', 'XSMB', 'XSync' - :type azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.models.AzureFileShareType - """ - - _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_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, - 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, - 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_container_fabric_id: str=None, parent_container_friendly_name: str=None, azure_file_share_type=None, **kwargs) -> None: - super(AzureFileShareProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_container_fabric_id = parent_container_fabric_id - self.parent_container_friendly_name = parent_container_friendly_name - self.azure_file_share_type = azure_file_share_type - self.protectable_item_type = 'AzureFileShare' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy.py deleted file mode 100644 index 914da0ddd3da..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class AzureFileShareProtectionPolicy(ProtectionPolicy): - """AzureStorage backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareProtectionPolicy, self).__init__(**kwargs) - self.work_load_type = kwargs.get('work_load_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.time_zone = kwargs.get('time_zone', None) - self.backup_management_type = 'AzureStorage' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy_py3.py deleted file mode 100644 index 5988c6bf2474..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_protection_policy_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class AzureFileShareProtectionPolicy(ProtectionPolicy): - """AzureStorage backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, work_load_type=None, schedule_policy=None, retention_policy=None, time_zone: str=None, **kwargs) -> None: - super(AzureFileShareProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.work_load_type = work_load_type - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.time_zone = time_zone - self.backup_management_type = 'AzureStorage' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point.py deleted file mode 100644 index 8e5145dd4c8a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point import RecoveryPoint - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - 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 - 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, - if applicable - :type file_share_snapshot_uri: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, - } - - 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.object_type = 'AzureFileShareRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point_py3.py deleted file mode 100644 index 128bf5e798e4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_recovery_point_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point_py3 import RecoveryPoint - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - 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 - 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, - if applicable - :type file_share_snapshot_uri: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'file_share_snapshot_uri': {'key': 'fileShareSnapshotUri', 'type': 'str'}, - } - - def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, file_share_snapshot_uri: str=None, **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.object_type = 'AzureFileShareRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request.py deleted file mode 100644 index a3cd00181ee8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request import RestoreRequest - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore 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_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Source storage account ARM Id - :type source_resource_id: str - :param copy_options: Options to resolve copy conflicts. Possible values - include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' - :type copy_options: str or - ~azure.mgmt.recoveryservicesbackup.models.CopyOptions - :param restore_request_type: Restore Type (FullShareRestore or - ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', - 'ItemLevelRestore' - :type restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType - :param restore_file_specs: List of Source Files/Folders(which need to - recover) and TargetFolderPath details - :type restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] - :param target_details: Target File Share Details - :type target_details: - ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__(self, **kwargs): - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.copy_options = kwargs.get('copy_options', None) - self.restore_request_type = kwargs.get('restore_request_type', None) - self.restore_file_specs = kwargs.get('restore_file_specs', None) - self.target_details = kwargs.get('target_details', None) - self.object_type = 'AzureFileShareRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request_py3.py deleted file mode 100644 index 8dd0eb1d1bd5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_file_share_restore_request_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request_py3 import RestoreRequest - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore 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_type: Type of this recovery. Possible values include: - 'Invalid', 'OriginalLocation', 'AlternateLocation', 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Source storage account ARM Id - :type source_resource_id: str - :param copy_options: Options to resolve copy conflicts. Possible values - include: 'Invalid', 'CreateCopy', 'Skip', 'Overwrite', 'FailOnConflict' - :type copy_options: str or - ~azure.mgmt.recoveryservicesbackup.models.CopyOptions - :param restore_request_type: Restore Type (FullShareRestore or - ItemLevelRestore). Possible values include: 'Invalid', 'FullShareRestore', - 'ItemLevelRestore' - :type restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequestType - :param restore_file_specs: List of Source Files/Folders(which need to - recover) and TargetFolderPath details - :type restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.models.RestoreFileSpecs] - :param target_details: Target File Share Details - :type target_details: - ~azure.mgmt.recoveryservicesbackup.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__(self, *, recovery_type=None, source_resource_id: str=None, copy_options=None, restore_request_type=None, restore_file_specs=None, target_details=None, **kwargs) -> None: - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.copy_options = copy_options - self.restore_request_type = restore_request_type - self.restore_file_specs = restore_file_specs - self.target_details = target_details - self.object_type = 'AzureFileShareRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py deleted file mode 100644 index f1bb006da998..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the fileshare represented by this - backup item. - :type friendly_name: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. - :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 extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureFileshareProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'AzureFileShareProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info.py deleted file mode 100644 index 92790d59f9dd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureFileshareProtectedItemExtendedInfo(Model): - """Additional information about Azure File Share backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info_py3.py deleted file mode 100644 index 5927f81a2c3a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_extended_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureFileshareProtectedItemExtendedInfo(Model): - """Additional information about Azure File Share backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py deleted file mode 100644 index fbd13e5ecada..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the fileshare represented by this - backup item. - :type friendly_name: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. - :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 extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - 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, friendly_name: str=None, protection_status: str=None, protection_state=None, health_status=None, last_backup_status: str=None, last_backup_time=None, extended_info=None, **kwargs) -> None: - super(AzureFileshareProtectedItem, 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, **kwargs) - self.friendly_name = friendly_name - self.protection_status = protection_status - self.protection_state = protection_state - self.health_status = health_status - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.extended_info = extended_info - self.protected_item_type = 'AzureFileShareProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py deleted file mode 100644 index 7975ad6d2232..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_container import IaaSVMContainer - - -class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing a classic virtual - machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container_py3.py deleted file mode 100644 index b3a5ec4f356f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_container_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_container_py3 import IaaSVMContainer - - -class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing a classic virtual - machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) - self.container_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item.py deleted file mode 100644 index 5ae6e8aed854..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_protectable_item import IaaSVMProtectableItem - - -class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item_py3.py deleted file mode 100644 index 852c90aa36d8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protectable_item_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_protectable_item_py3 import IaaSVMProtectableItem - - -class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) - self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py deleted file mode 100644 index e423c64da0d6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_iaa_svm_protected_item import AzureIaaSVMProtectedItem - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py deleted file mode 100644 index e29373eb4a68..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_iaa_svm_protected_item_py3 import AzureIaaSVMProtectedItem - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - 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, 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, 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) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container.py deleted file mode 100644 index cf7f3759fb4f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_container import IaaSVMContainer - - -class AzureIaaSComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing an Azure Resource - Manager virtual machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container_py3.py deleted file mode 100644 index 8e603cc3d8cc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_container_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_container_py3 import IaaSVMContainer - - -class AzureIaaSComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing an Azure Resource - Manager virtual machine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(AzureIaaSComputeVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, virtual_machine_id=virtual_machine_id, virtual_machine_version=virtual_machine_version, resource_group=resource_group, **kwargs) - self.container_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item.py deleted file mode 100644 index 7f8fbbadea45..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_protectable_item import IaaSVMProtectableItem - - -class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item_py3.py deleted file mode 100644 index c78343c95070..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protectable_item_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .iaa_svm_protectable_item_py3 import IaaSVMProtectableItem - - -class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(AzureIaaSComputeVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, virtual_machine_id=virtual_machine_id, **kwargs) - self.protectable_item_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py deleted file mode 100644 index 0025229ccb90..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_iaa_svm_protected_item import AzureIaaSVMProtectedItem - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py deleted file mode 100644 index 8413b75761c8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_iaa_svm_protected_item_py3 import AzureIaaSVMProtectedItem - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource - Manager VM. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - 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, 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, 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) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info.py deleted file mode 100644 index a52b009c69de..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 - to. - :type error_title: str - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info_py3.py deleted file mode 100644 index ff1743e4fb20..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_error_info_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 - to. - :type error_title: str - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_code: int=None, error_title: str=None, error_string: str=None, recommendations=None, **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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details.py deleted file mode 100644 index c84e0911db5f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details_py3.py deleted file mode 100644 index 720bfc0840fc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_health_details_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: - super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - self.code = code - self.title = title - self.message = message - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job.py deleted file mode 100644 index 613a76fb6dc2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job import Job - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] - :param virtual_machine_version: Specifies whether the backup item is a - Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureIaaSVMJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py deleted file mode 100644 index a7d1885c10c6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMJobExtendedInfo(Model): - """Azure IaaS VM workload-specific additional information for job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param internal_property_bag: Job internal properties. - :type internal_property_bag: dict[str, str] - :param progress_percentage: Indicates progress of the job. Null if it has - not started or completed. - :type progress_percentage: float - :param estimated_remaining_duration: Time remaining for execution of this - job. - :type estimated_remaining_duration: str - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.internal_property_bag = kwargs.get('internal_property_bag', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.estimated_remaining_duration = kwargs.get('estimated_remaining_duration', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py deleted file mode 100644 index fabfbcf7c4ca..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMJobExtendedInfo(Model): - """Azure IaaS VM workload-specific additional information for job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param internal_property_bag: Job internal properties. - :type internal_property_bag: dict[str, str] - :param progress_percentage: Indicates progress of the job. Null if it has - not started or completed. - :type progress_percentage: float - :param estimated_remaining_duration: Time remaining for execution of this - job. - :type estimated_remaining_duration: str - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, internal_property_bag=None, progress_percentage: float=None, estimated_remaining_duration: str=None, dynamic_error_message: str=None, **kwargs) -> None: - super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.internal_property_bag = internal_property_bag - self.progress_percentage = progress_percentage - self.estimated_remaining_duration = estimated_remaining_duration - self.dynamic_error_message = dynamic_error_message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_py3.py deleted file mode 100644 index 26b8bd66d024..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_py3.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_py3 import Job - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMErrorInfo] - :param virtual_machine_version: Specifies whether the backup item is a - Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, virtual_machine_version: str=None, extended_info=None, **kwargs) -> None: - super(AzureIaaSVMJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.virtual_machine_version = virtual_machine_version - self.extended_info = extended_info - self.job_type = 'AzureIaaSVMJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details.py deleted file mode 100644 index 5b7d1f78d49b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMJobTaskDetails(Model): - """Azure IaaS VM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param instance_id: The instanceId. - :type instance_id: str - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - :param progress_percentage: Progress of the task. - :type progress_percentage: float - :param task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc - :type task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.instance_id = kwargs.get('instance_id', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.task_execution_details = kwargs.get('task_execution_details', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details_py3.py deleted file mode 100644 index a1a682967863..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_task_details_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMJobTaskDetails(Model): - """Azure IaaS VM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param instance_id: The instanceId. - :type instance_id: str - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - :param progress_percentage: Progress of the task. - :type progress_percentage: float - :param task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc - :type task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, start_time=None, end_time=None, instance_id: str=None, duration=None, status: str=None, progress_percentage: float=None, task_execution_details: str=None, **kwargs) -> None: - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.instance_id = instance_id - self.duration = duration - self.status = status - self.progress_percentage = progress_percentage - self.task_execution_details = task_execution_details diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py deleted file mode 100644 index a8dfea39bdc8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, - AzureIaaSComputeVMProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - _subtype_map = { - 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.health_details = kwargs.get('health_details', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - 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.protected_item_type = 'AzureIaaSVMProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info.py deleted file mode 100644 index 6be200ce3cbb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMProtectedItemExtendedInfo(Model): - """Additional information on Azure IaaS VM specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_inconsistent: Specifies if backup policy associated with the - backup item is inconsistent. - :type policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_inconsistent = kwargs.get('policy_inconsistent', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info_py3.py deleted file mode 100644 index 278c17d0f10b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_extended_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureIaaSVMProtectedItemExtendedInfo(Model): - """Additional information on Azure IaaS VM specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_inconsistent: Specifies if backup policy associated with the - backup item is inconsistent. - :type policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_inconsistent: bool=None, **kwargs) -> None: - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_inconsistent = policy_inconsistent diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py deleted file mode 100644 index adad23ab7162..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, - AzureIaaSComputeVMProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - represented by this item. - :type virtual_machine_id: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param health_status: Health status of protected item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus - :param health_details: Health details on this backup item. - :type health_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMHealthDetails] - :param last_backup_status: Last backup operation status. - :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 protected_item_data_id: Data ID of the protected item. - :type protected_item_data_id: str - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureIaaSVMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - } - - _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, 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(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, **kwargs) - self.friendly_name = friendly_name - self.virtual_machine_id = virtual_machine_id - self.protection_status = protection_status - self.protection_state = protection_state - self.health_status = health_status - self.health_details = health_details - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.protected_item_data_id = protected_item_data_id - self.extended_info = extended_info - self.protected_item_type = 'AzureIaaSVMProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py deleted file mode 100644 index b1145707dd15..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class AzureIaaSVMProtectionPolicy(ProtectionPolicy): - """IaaS VM workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param instant_rp_retention_range_in_days: Instant RP retention policy - range in days - :type instant_rp_retention_range_in_days: int - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureIaaSVMProtectionPolicy, self).__init__(**kwargs) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.instant_rp_retention_range_in_days = kwargs.get('instant_rp_retention_range_in_days', None) - self.time_zone = kwargs.get('time_zone', None) - self.backup_management_type = 'AzureIaasVM' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py deleted file mode 100644 index 331896c34801..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class AzureIaaSVMProtectionPolicy(ProtectionPolicy): - """IaaS VM workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - :param instant_rp_retention_range_in_days: Instant RP retention policy - range in days - :type instant_rp_retention_range_in_days: int - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, instant_rp_retention_range_in_days: int=None, time_zone: str=None, **kwargs) -> None: - super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.instant_rp_retention_range_in_days = instant_rp_retention_range_in_days - self.time_zone = time_zone - self.backup_management_type = 'AzureIaasVM' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py deleted file mode 100644 index 8294878affe7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_intent import ProtectionIntent - - -class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} - } - - def __init__(self, **kwargs): - super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'RecoveryServiceVaultItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py deleted file mode 100644 index 80b33ae0c5fd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_intent_py3 import ProtectionIntent - - -class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.protection_intent_item_type = 'RecoveryServiceVaultItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent.py deleted file mode 100644 index a13d588d2ffd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_intent import ProtectionIntent - - -class AzureResourceProtectionIntent(ProtectionIntent): - """IaaS VM specific backup protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureResourceProtectionIntent, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_intent_item_type = 'AzureResourceItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent_py3.py deleted file mode 100644 index e14da8efa42f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_resource_protection_intent_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_intent_py3 import ProtectionIntent - - -class AzureResourceProtectionIntent(ProtectionIntent): - """IaaS VM specific backup protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param friendly_name: Friendly name of the VM represented by this backup - item. - :type friendly_name: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, friendly_name: str=None, **kwargs) -> None: - super(AzureResourceProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.friendly_name = friendly_name - self.protection_intent_item_type = 'AzureResourceItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container.py deleted file mode 100644 index f879c89bba05..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class AzureSqlContainer(ProtectionContainer): - """Azure Sql workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSqlContainer, self).__init__(**kwargs) - self.container_type = 'AzureSqlContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container_py3.py deleted file mode 100644 index 9cbb72c3880b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_container_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class AzureSqlContainer(ProtectionContainer): - """Azure Sql workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: - super(AzureSqlContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.container_type = 'AzureSqlContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py deleted file mode 100644 index 86f20f360c05..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param protected_item_data_id: Internal ID of a backup item. Used by Azure - SQL Backup engine to contact Recovery Services. - :type protected_item_data_id: str - :param protection_state: Backup state of the backed up item. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectedItem, self).__init__(**kwargs) - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'Microsoft.Sql/servers/databases' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info.py deleted file mode 100644 index 7b3542dd932d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureSqlProtectedItemExtendedInfo(Model): - """Additional information on Azure Sql specific protected item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: State of the backup policy associated with this - backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info_py3.py deleted file mode 100644 index 96c7ad27cdc1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_extended_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureSqlProtectedItemExtendedInfo(Model): - """Additional information on Azure Sql specific protected item. - - :param oldest_recovery_point: The oldest backup copy available for this - item in the service. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of available backup copies associated - with this backup item. - :type recovery_point_count: int - :param policy_state: State of the backup policy associated with this - backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py deleted file mode 100644 index 7809e1f1194c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param protected_item_data_id: Internal ID of a backup item. Used by Azure - SQL Backup engine to contact Recovery Services. - :type protected_item_data_id: str - :param protection_state: Backup state of the backed up item. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - 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, protected_item_data_id: str=None, protection_state=None, extended_info=None, **kwargs) -> None: - super(AzureSqlProtectedItem, 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, **kwargs) - self.protected_item_data_id = protected_item_data_id - self.protection_state = protection_state - self.extended_info = extended_info - self.protected_item_type = 'Microsoft.Sql/servers/databases' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy.py deleted file mode 100644 index 3e8a0a04c40a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class AzureSqlProtectionPolicy(ProtectionPolicy): - """Azure SQL workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(AzureSqlProtectionPolicy, self).__init__(**kwargs) - self.retention_policy = kwargs.get('retention_policy', None) - self.backup_management_type = 'AzureSql' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy_py3.py deleted file mode 100644 index af341a49fd86..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protection_policy_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class AzureSqlProtectionPolicy(ProtectionPolicy): - """Azure SQL workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, protected_items_count: int=None, retention_policy=None, **kwargs) -> None: - super(AzureSqlProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.retention_policy = retention_policy - self.backup_management_type = 'AzureSql' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py deleted file mode 100644 index 1cc7956f6cb6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_container import AzureWorkloadContainer - - -class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under SQL Availability Group. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'SQLAGWorkLoadContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py deleted file mode 100644 index 3a27450e5633..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_container_py3 import AzureWorkloadContainer - - -class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under SQL Availability Group. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) - self.container_type = 'SQLAGWorkLoadContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container.py deleted file mode 100644 index 18c2630301b1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class AzureStorageContainer(ProtectionContainer): - """Azure Storage Account workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: Fully qualified ARM url. - :type source_resource_id: str - :param storage_account_version: Storage account version. - :type storage_account_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(AzureStorageContainer, self).__init__(**kwargs) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.resource_group = kwargs.get('resource_group', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.container_type = 'StorageContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container_py3.py deleted file mode 100644 index dfbbe3381acc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_container_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class AzureStorageContainer(ProtectionContainer): - """Azure Storage Account workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: Fully qualified ARM url. - :type source_resource_id: str - :param storage_account_version: Storage account version. - :type storage_account_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, storage_account_version: str=None, resource_group: str=None, protected_item_count: int=None, **kwargs) -> None: - super(AzureStorageContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.source_resource_id = source_resource_id - self.storage_account_version = storage_account_version - self.resource_group = resource_group - self.protected_item_count = protected_item_count - self.container_type = 'StorageContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info.py deleted file mode 100644 index 3854dac09848..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info_py3.py deleted file mode 100644 index f2914ed24b34..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_error_info_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_code: int=None, error_string: str=None, recommendations=None, **kwargs) -> None: - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = error_code - self.error_string = error_string - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job.py deleted file mode 100644 index 19bcf3d6d0b2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job import Job - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] - :param storage_account_name: Specifies friendly name of the storage - account. - :type storage_account_name: str - :param storage_account_version: Specifies whether the Storage account is a - Classic or an Azure Resource Manager Storage account. - :type storage_account_version: str - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureStorageJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info.py deleted file mode 100644 index 54e3f5b569ea..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageJobExtendedInfo(Model): - """Azure Storage workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info_py3.py deleted file mode 100644 index cf82e7b63c9f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageJobExtendedInfo(Model): - """Azure Storage workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_py3.py deleted file mode 100644 index c3a12fabe30a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_py3.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_py3 import Job - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureStorageErrorInfo] - :param storage_account_name: Specifies friendly name of the storage - account. - :type storage_account_name: str - :param storage_account_version: Specifies whether the Storage account is a - Classic or an Azure Resource Manager Storage account. - :type storage_account_version: str - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureStorageJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, error_details=None, storage_account_name: str=None, storage_account_version: str=None, extended_info=None, **kwargs) -> None: - super(AzureStorageJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.storage_account_name = storage_account_name - self.storage_account_version = storage_account_version - self.extended_info = extended_info - self.job_type = 'AzureStorageJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details.py deleted file mode 100644 index b6e06b21c7aa..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageJobTaskDetails(Model): - """Azure storage workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details_py3.py deleted file mode 100644 index d6a341e6c35a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_job_task_details_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureStorageJobTaskDetails(Model): - """Azure storage workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.status = status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container.py deleted file mode 100644 index dbad38a90074..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protectable_container import ProtectableContainer - - -class AzureStorageProtectableContainer(ProtectableContainer): - """Azure Storage-specific protectable containers. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureStorageProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'StorageContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container_py3.py deleted file mode 100644 index 9993519ea0e2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_storage_protectable_container_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protectable_container_py3 import ProtectableContainer - - -class AzureStorageProtectableContainer(ProtectableContainer): - """Azure Storage-specific protectable containers. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(AzureStorageProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) - self.protectable_container_type = 'StorageContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container.py deleted file mode 100644 index 1aa12abbf8fc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protectable_container import ProtectableContainer - - -class AzureVMAppContainerProtectableContainer(ProtectableContainer): - """Azure workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMAppContainerProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'VMAppContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container_py3.py deleted file mode 100644 index bd13162329af..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protectable_container_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protectable_container_py3 import ProtectableContainer - - -class AzureVMAppContainerProtectableContainer(ProtectableContainer): - """Azure workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(AzureVMAppContainerProtectableContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, health_status=health_status, container_id=container_id, **kwargs) - self.protectable_container_type = 'VMAppContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py deleted file mode 100644 index 598e09f8b53e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_container import AzureWorkloadContainer - - -class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under Azure Virtual Machines. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMAppContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'VMAppContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py deleted file mode 100644 index 3026b3450921..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_container_py3 import AzureWorkloadContainer - - -class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under Azure Virtual Machines. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureVMAppContainerProtectionContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, source_resource_id=source_resource_id, last_updated_time=last_updated_time, extended_info=extended_info, workload_type=workload_type, operation_type=operation_type, **kwargs) - self.container_type = 'VMAppContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request.py deleted file mode 100644 index dd59b276fd5b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .feature_support_request import FeatureSupportRequest - - -class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): - """AzureResource(IaaS VM) Specific feature support request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - :param vm_size: Size of the resource: VM size(A/D series etc) in case of - IaasVM - :type vm_size: str - :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM - :type vm_sku: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_sku': {'key': 'vmSku', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) - self.vm_size = kwargs.get('vm_size', None) - self.vm_sku = kwargs.get('vm_sku', None) - self.feature_type = 'AzureVMResourceBackup' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request_py3.py deleted file mode 100644 index 8894f7766128..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_request_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .feature_support_request_py3 import FeatureSupportRequest - - -class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): - """AzureResource(IaaS VM) Specific feature support request. - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - :param vm_size: Size of the resource: VM size(A/D series etc) in case of - IaasVM - :type vm_size: str - :param vm_sku: SKUs (Premium/Managed etc) in case of IaasVM - :type vm_sku: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_sku': {'key': 'vmSku', 'type': 'str'}, - } - - def __init__(self, *, vm_size: str=None, vm_sku: str=None, **kwargs) -> None: - super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) - self.vm_size = vm_size - self.vm_sku = vm_sku - self.feature_type = 'AzureVMResourceBackup' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response.py deleted file mode 100644 index 01bd45d0db4a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureVMResourceFeatureSupportResponse(Model): - """Response for feature support requests for Azure IaasVm. - - :param support_status: Support status of feature. Possible values include: - 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' - :type support_status: str or - ~azure.mgmt.recoveryservicesbackup.models.SupportStatus - """ - - _attribute_map = { - 'support_status': {'key': 'supportStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) - self.support_status = kwargs.get('support_status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response_py3.py deleted file mode 100644 index edaaf251d6a5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_resource_feature_support_response_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureVMResourceFeatureSupportResponse(Model): - """Response for feature support requests for Azure IaasVm. - - :param support_status: Support status of feature. Possible values include: - 'Invalid', 'Supported', 'DefaultOFF', 'DefaultON', 'NotSupported' - :type support_status: str or - ~azure.mgmt.recoveryservicesbackup.models.SupportStatus - """ - - _attribute_map = { - 'support_status': {'key': 'supportStatus', 'type': 'str'}, - } - - def __init__(self, *, support_status=None, **kwargs) -> None: - super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) - self.support_status = support_status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py deleted file mode 100644 index 82fd94130c70..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_item import WorkloadItem - - -class AzureVmWorkloadItem(WorkloadItem): - """Azure VM workload-specific workload item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, - AzureVmWorkloadSAPAseSystemWorkloadItem, - AzureVmWorkloadSAPHanaDatabaseWorkloadItem, - AzureVmWorkloadSAPHanaSystemWorkloadItem, - AzureVmWorkloadSQLDatabaseWorkloadItem, - AzureVmWorkloadSQLInstanceWorkloadItem - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - _subtype_map = { - 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadItem, self).__init__(**kwargs) - self.parent_name = kwargs.get('parent_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.sub_workload_item_count = kwargs.get('sub_workload_item_count', None) - self.workload_item_type = 'AzureVmWorkloadItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py deleted file mode 100644 index 7451b436412d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_item_py3 import WorkloadItem - - -class AzureVmWorkloadItem(WorkloadItem): - """Azure VM workload-specific workload item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, - AzureVmWorkloadSAPAseSystemWorkloadItem, - AzureVmWorkloadSAPHanaDatabaseWorkloadItem, - AzureVmWorkloadSAPHanaSystemWorkloadItem, - AzureVmWorkloadSQLDatabaseWorkloadItem, - AzureVmWorkloadSQLInstanceWorkloadItem - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - _subtype_map = { - 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_name = parent_name - self.server_name = server_name - self.is_auto_protectable = is_auto_protectable - self.subinquireditemcount = subinquireditemcount - self.sub_workload_item_count = sub_workload_item_count - self.workload_item_type = 'AzureVmWorkloadItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py deleted file mode 100644 index 0a04e0b0ea2f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item import WorkloadProtectableItem - - -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, - AzureVmWorkloadSAPHanaDatabaseProtectableItem, - AzureVmWorkloadSAPHanaSystemProtectableItem, - AzureVmWorkloadSQLAvailabilityGroupProtectableItem, - AzureVmWorkloadSQLDatabaseProtectableItem, - AzureVmWorkloadSQLInstanceProtectableItem - - 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'}, - } - - _subtype_map = { - 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectableItem, self).__init__(**kwargs) - self.parent_name = kwargs.get('parent_name', None) - self.parent_unique_name = kwargs.get('parent_unique_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.is_auto_protected = kwargs.get('is_auto_protected', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.subprotectableitemcount = kwargs.get('subprotectableitemcount', None) - self.prebackupvalidation = kwargs.get('prebackupvalidation', None) - self.protectable_item_type = 'AzureVmWorkloadProtectableItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py deleted file mode 100644 index 6e665d400afb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item_py3 import WorkloadProtectableItem - - -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, - AzureVmWorkloadSAPHanaDatabaseProtectableItem, - AzureVmWorkloadSAPHanaSystemProtectableItem, - AzureVmWorkloadSQLAvailabilityGroupProtectableItem, - AzureVmWorkloadSQLDatabaseProtectableItem, - AzureVmWorkloadSQLInstanceProtectableItem - - 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'}, - } - - _subtype_map = { - 'protectable_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectableItem', '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: - super(AzureVmWorkloadProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.parent_name = parent_name - self.parent_unique_name = parent_unique_name - self.server_name = server_name - self.is_auto_protectable = is_auto_protectable - self.is_auto_protected = is_auto_protected - self.subinquireditemcount = subinquireditemcount - self.subprotectableitemcount = subprotectableitemcount - self.prebackupvalidation = prebackupvalidation - self.protectable_item_type = 'AzureVmWorkloadProtectableItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py deleted file mode 100644 index 68772f596a6a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, - AzureVmWorkloadSAPHanaDatabaseProtectedItem, - AzureVmWorkloadSQLDatabaseProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.server_name = kwargs.get('server_name', None) - self.parent_name = kwargs.get('parent_name', None) - self.parent_type = kwargs.get('parent_type', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.last_backup_error_detail = kwargs.get('last_backup_error_detail', None) - self.protected_item_data_source_id = kwargs.get('protected_item_data_source_id', None) - self.protected_item_health_status = kwargs.get('protected_item_health_status', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'AzureVmWorkloadProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info.py deleted file mode 100644 index 87cf569285b5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureVmWorkloadProtectedItemExtendedInfo(Model): - """Additional information on Azure Workload for SQL specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info_py3.py deleted file mode 100644 index 21ffa134e947..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_extended_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureVmWorkloadProtectedItemExtendedInfo(Model): - """Additional information on Azure Workload for SQL specific backup item. - - :param oldest_recovery_point: The oldest backup copy available for this - backup item. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies available for this - backup item. - :type recovery_point_count: int - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__(self, *, oldest_recovery_point=None, recovery_point_count: int=None, policy_state: str=None, **kwargs) -> None: - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.policy_state = policy_state diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py deleted file mode 100644 index 6e05d1db2c54..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, - AzureVmWorkloadSAPHanaDatabaseProtectedItem, - AzureVmWorkloadSQLDatabaseProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - 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, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadProtectedItem, 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, **kwargs) - self.friendly_name = friendly_name - self.server_name = server_name - self.parent_name = parent_name - self.parent_type = parent_type - self.protection_status = protection_status - self.protection_state = protection_state - self.last_backup_status = last_backup_status - self.last_backup_time = last_backup_time - self.last_backup_error_detail = last_backup_error_detail - self.protected_item_data_source_id = protected_item_data_source_id - self.protected_item_health_status = protected_item_health_status - self.extended_info = extended_info - self.protected_item_type = 'AzureVmWorkloadProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy.py deleted file mode 100644 index 96fea487358a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param settings: Common settings for the backup management - :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'Settings'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadProtectionPolicy, self).__init__(**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.backup_management_type = 'AzureWorkload' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy_py3.py deleted file mode 100644 index 8d1c8e7f0786..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protection_policy_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param work_load_type: Type of workload for the backup management. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param settings: Common settings for the backup management - :type settings: ~azure.mgmt.recoveryservicesbackup.models.Settings - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'Settings'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - } - - def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=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.backup_management_type = 'AzureWorkload' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item.py deleted file mode 100644 index ba3d65b27651..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -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' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item_py3.py deleted file mode 100644 index f85c7e1f25a9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -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' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item.py deleted file mode 100644 index d5dc39f4e1a1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected 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 for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item_py3.py deleted file mode 100644 index a5f69939a58d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_protected_item_py3.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item_py3 import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected 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 for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - 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, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, 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, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item.py deleted file mode 100644 index 9ab3006ff1da..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item_py3.py deleted file mode 100644 index d8c71e4b7b2a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_database_workload_item_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPAseDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item.py deleted file mode 100644 index 5839a619f4fe..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE System. - - 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(AzureVmWorkloadSAPAseSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPAseSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item_py3.py deleted file mode 100644 index 5b8d20554607..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE System. - - 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(AzureVmWorkloadSAPAseSystemProtectableItem, 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 = 'SAPAseSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item.py deleted file mode 100644 index 668d63d9ad24..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE System. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item_py3.py deleted file mode 100644 index 01fcb8426732..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_ase_system_workload_item_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE System. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPAseSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py deleted file mode 100644 index e33857027898..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA 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(AzureVmWorkloadSAPHanaDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py deleted file mode 100644 index 6a63271261f9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA 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(AzureVmWorkloadSAPHanaDatabaseProtectableItem, 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 = 'SAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py deleted file mode 100644 index 5b81fc46488a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py deleted file mode 100644 index f16aeefd4d5a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item_py3 import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - 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, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, 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, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py deleted file mode 100644 index 6046c55cccf0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py deleted file mode 100644 index d9c5b0d5e39f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPHanaDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py deleted file mode 100644 index 6cd06c21df7b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA System. - - 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(AzureVmWorkloadSAPHanaSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py deleted file mode 100644 index 676cab136dd7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA System. - - 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(AzureVmWorkloadSAPHanaSystemProtectableItem, 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 = 'SAPHanaSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py deleted file mode 100644 index 4e9e4cfbcbbe..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA System. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py deleted file mode 100644 index d0d9cc9952b0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA System. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SAPHanaSystem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item.py deleted file mode 100644 index 9532d4bf6f21..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Availability - Group. - - 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(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLAvailabilityGroupContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item_py3.py deleted file mode 100644 index 1c18abc093d0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_availability_group_protectable_item_py3.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Availability - Group. - - 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(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, 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 = 'SQLAvailabilityGroupContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item.py deleted file mode 100644 index f4e67c5cfffd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL 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(AzureVmWorkloadSQLDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLDataBase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item_py3.py deleted file mode 100644 index f582ad191fce..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL 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(AzureVmWorkloadSQLDatabaseProtectableItem, 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 = 'SQLDataBase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py deleted file mode 100644 index f92f220aa3a4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py deleted file mode 100644 index 10bbb71eccc8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protected_item_py3 import AzureVmWorkloadProtectedItem - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the DB represented by this backup - item. - :type friendly_name: str - :param server_name: Host/Cluster Name for instance or AG - :type server_name: str - :param parent_name: Parent name of the DB such as Instance or Availability - Group. - :type parent_name: str - :param parent_type: Parent type of protected item, example: for a DB, - standalone server or distributed - :type parent_type: str - :param protection_status: Backup status of this backup item. - :type protection_status: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param last_backup_status: Last backup operation status. Possible values: - Healthy, Unhealthy. Possible values include: 'Invalid', 'Healthy', - 'Unhealthy', 'IRPending' - :type last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.models.LastBackupStatus - :param last_backup_time: Timestamp of the last backup operation on this - backup item. - :type last_backup_time: datetime - :param last_backup_error_detail: Error details in last backup - :type last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param protected_item_data_source_id: Data ID of the protected item. - :type protected_item_data_source_id: str - :param protected_item_health_status: Health status of the backup item, - evaluated based on last heartbeat received. Possible values include: - 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' - :type protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemHealthStatus - :param extended_info: Additional information for this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'parent_type': {'key': 'parentType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'last_backup_error_detail': {'key': 'lastBackupErrorDetail', 'type': 'ErrorDetail'}, - 'protected_item_data_source_id': {'key': 'protectedItemDataSourceId', 'type': 'str'}, - 'protected_item_health_status': {'key': 'protectedItemHealthStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureVmWorkloadProtectedItemExtendedInfo'}, - } - - 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, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseProtectedItem, 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, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, **kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item.py deleted file mode 100644 index 9c11fc816f42..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SQLDataBase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item_py3.py deleted file mode 100644 index ea06bbcac4a4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_workload_item_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.workload_item_type = 'SQLDataBase' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item.py deleted file mode 100644 index e727013a842d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Instance. - - 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(AzureVmWorkloadSQLInstanceProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLInstance' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item_py3.py deleted file mode 100644 index 95fd91555256..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_protectable_item_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_protectable_item_py3 import AzureVmWorkloadProtectableItem - - -class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Instance. - - 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(AzureVmWorkloadSQLInstanceProtectableItem, 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 = 'SQLInstance' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item.py deleted file mode 100644 index 3f186bee1ad0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item import AzureVmWorkloadItem - - -class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Instance. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - :param data_directory_paths: Data Directory Paths for default directories - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, **kwargs): - super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(**kwargs) - self.data_directory_paths = kwargs.get('data_directory_paths', None) - self.workload_item_type = 'SQLInstance' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item_py3.py deleted file mode 100644 index daa0da6bca14..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_instance_workload_item_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_vm_workload_item_py3 import AzureVmWorkloadItem - - -class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Instance. - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - :param parent_name: Name for instance or AG - :type parent_name: str - :param server_name: Host/Cluster Name for instance or AG - :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 - present - :type subinquireditemcount: int - :param sub_workload_item_count: For instance or AG, indicates number of - DBs to be protected - :type sub_workload_item_count: int - :param data_directory_paths: Data Directory Paths for default directories - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'server_name': {'key': 'serverName', 'type': 'str'}, - 'is_auto_protectable': {'key': 'isAutoProtectable', 'type': 'bool'}, - 'subinquireditemcount': {'key': 'subinquireditemcount', 'type': 'int'}, - 'sub_workload_item_count': {'key': 'subWorkloadItemCount', 'type': 'int'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, parent_name: str=None, server_name: str=None, is_auto_protectable: bool=None, subinquireditemcount: int=None, sub_workload_item_count: int=None, data_directory_paths=None, **kwargs) -> None: - super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, server_name=server_name, is_auto_protectable=is_auto_protectable, subinquireditemcount=subinquireditemcount, sub_workload_item_count=sub_workload_item_count, **kwargs) - self.data_directory_paths = data_directory_paths - self.workload_item_type = 'SQLInstance' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py deleted file mode 100644 index 85e35a494d33..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_recovery_service_vault_protection_intent import AzureRecoveryServiceVaultProtectionIntent - - -class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadAutoProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py deleted file mode 100644 index 75bc2bd5301b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_recovery_service_vault_protection_intent_py3 import AzureRecoveryServiceVaultProtectionIntent - - -class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLAutoProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(AzureWorkloadAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request.py deleted file mode 100644 index d1bd18351161..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request import BackupRequest - - -class AzureWorkloadBackupRequest(BackupRequest): - """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or - CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', - 'Log', 'CopyOnlyFull' - :type backup_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupType - :param enable_compression: Bool for Compression setting - :type enable_compression: bool - :param recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadBackupRequest, self).__init__(**kwargs) - self.backup_type = kwargs.get('backup_type', None) - self.enable_compression = kwargs.get('enable_compression', None) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'AzureWorkloadBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request_py3.py deleted file mode 100644 index 2c67d89e11bc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_backup_request_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request_py3 import BackupRequest - - -class AzureWorkloadBackupRequest(BackupRequest): - """AzureWorkload workload-specific backup 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 backup_type: Type of backup, viz. Full, Differential, Log or - CopyOnlyFull. Possible values include: 'Invalid', 'Full', 'Differential', - 'Log', 'CopyOnlyFull' - :type backup_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupType - :param enable_compression: Bool for Compression setting - :type enable_compression: bool - :param recovery_point_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, backup_type=None, enable_compression: bool=None, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(AzureWorkloadBackupRequest, self).__init__(**kwargs) - self.backup_type = backup_type - self.enable_compression = enable_compression - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'AzureWorkloadBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py deleted file mode 100644 index d1cc0f6b6a63..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class AzureWorkloadContainer(ProtectionContainer): - """Container for the workloads running inside Azure Compute or Classic - Compute. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, - AzureVMAppContainerProtectionContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadContainer, self).__init__(**kwargs) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.last_updated_time = kwargs.get('last_updated_time', None) - self.extended_info = kwargs.get('extended_info', None) - self.workload_type = kwargs.get('workload_type', None) - self.operation_type = kwargs.get('operation_type', None) - self.container_type = 'AzureWorkloadContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info.py deleted file mode 100644 index 1ffcf96a6221..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadContainerExtendedInfo(Model): - """Extended information of the container. - - :param host_server_name: Host Os Name in case of Stand Alone and Cluster - Name in case of distributed container. - :type host_server_name: str - :param inquiry_info: Inquiry Status for the container. - :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo - :param nodes_list: List of the nodes in case of distributed container. - :type nodes_list: - list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] - """ - - _attribute_map = { - 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, - 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, - 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) - self.host_server_name = kwargs.get('host_server_name', None) - self.inquiry_info = kwargs.get('inquiry_info', None) - self.nodes_list = kwargs.get('nodes_list', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info_py3.py deleted file mode 100644 index 890bca3e221e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadContainerExtendedInfo(Model): - """Extended information of the container. - - :param host_server_name: Host Os Name in case of Stand Alone and Cluster - Name in case of distributed container. - :type host_server_name: str - :param inquiry_info: Inquiry Status for the container. - :type inquiry_info: ~azure.mgmt.recoveryservicesbackup.models.InquiryInfo - :param nodes_list: List of the nodes in case of distributed container. - :type nodes_list: - list[~azure.mgmt.recoveryservicesbackup.models.DistributedNodesInfo] - """ - - _attribute_map = { - 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, - 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, - 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, - } - - def __init__(self, *, host_server_name: str=None, inquiry_info=None, nodes_list=None, **kwargs) -> None: - super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) - self.host_server_name = host_server_name - self.inquiry_info = inquiry_info - self.nodes_list = nodes_list diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py deleted file mode 100644 index a354a4864901..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class AzureWorkloadContainer(ProtectionContainer): - """Container for the workloads running inside Azure Compute or Classic - Compute. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, - AzureVMAppContainerProtectionContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param source_resource_id: ARM ID of the virtual machine represented by - this Azure Workload Container - :type source_resource_id: str - :param last_updated_time: Time stamp when this container was updated. - :type last_updated_time: datetime - :param extended_info: Additional details of a workload container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo - :param workload_type: Workload type for which registration was sent. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param operation_type: Re-Do Operation. Possible values include: - 'Invalid', 'Register', 'Reregister' - :type operation_type: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, source_resource_id: str=None, last_updated_time=None, extended_info=None, workload_type=None, operation_type=None, **kwargs) -> None: - super(AzureWorkloadContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.source_resource_id = source_resource_id - self.last_updated_time = last_updated_time - self.extended_info = extended_info - self.workload_type = workload_type - self.operation_type = operation_type - self.container_type = 'AzureWorkloadContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info.py deleted file mode 100644 index f57240012dfa..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param error_title: Title: Typically, the entity that the error pertains - to. - :type error_title: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - :param additional_details: Additional details for above error code. - :type additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.error_title = kwargs.get('error_title', None) - self.recommendations = kwargs.get('recommendations', None) - self.additional_details = kwargs.get('additional_details', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info_py3.py deleted file mode 100644 index 8d62be768dbb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_error_info_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadErrorInfo(Model): - """Azure storage specific error information. - - :param error_code: Error code. - :type error_code: int - :param error_string: Localized error string. - :type error_string: str - :param error_title: Title: Typically, the entity that the error pertains - to. - :type error_title: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - :param additional_details: Additional details for above error code. - :type additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__(self, *, error_code: int=None, error_string: str=None, error_title: str=None, recommendations=None, additional_details: str=None, **kwargs) -> None: - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = error_code - self.error_string = error_string - self.error_title = error_title - self.recommendations = recommendations - self.additional_details = additional_details diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py deleted file mode 100644 index 72b5fa377810..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job import Job - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param workload_type: Workload type of the job - :type workload_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJob, self).__init__(**kwargs) - self.workload_type = kwargs.get('workload_type', None) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'AzureWorkloadJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info.py deleted file mode 100644 index 1a548f304e06..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadJobExtendedInfo(Model): - """Azure VM workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info_py3.py deleted file mode 100644 index 3a4451a348d4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadJobExtendedInfo(Model): - """Azure VM workload-specific additional information for job. - - :param tasks_list: List of tasks for this job - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails] - :param property_bag: Job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py deleted file mode 100644 index ee7e545078d8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_py3 import Job - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param workload_type: Workload type of the job - :type workload_type: str - :param duration: Time elapsed during the execution of this job. - :type duration: timedelta - :param actions_info: Gets or sets the state/actions applicable on this job - like cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: Error details on execution of this job. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadErrorInfo] - :param extended_info: Additional information about the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, workload_type: str=None, duration=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: - super(AzureWorkloadJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.workload_type = workload_type - self.duration = duration - self.actions_info = actions_info - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'AzureWorkloadJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details.py deleted file mode 100644 index c68497693480..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadJobTaskDetails(Model): - """Azure VM workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details_py3.py deleted file mode 100644 index d6c57c91ecc7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_task_details_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadJobTaskDetails(Model): - """Azure VM workload specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, status: str=None, **kwargs) -> None: - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.status = status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point.py deleted file mode 100644 index e9d7d7ddc05f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point import AzureWorkloadRecoveryPoint - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.time_ranges = kwargs.get('time_ranges', None) - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point_py3.py deleted file mode 100644 index e0daa1d98790..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_recovery_point_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point_py3 import AzureWorkloadRecoveryPoint - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - '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) - self.time_ranges = time_ranges - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request.py deleted file mode 100644 index ae73be06d4f1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request import AzureWorkloadRestoreRequest - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request_py3.py deleted file mode 100644 index 23f9b830d249..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_point_in_time_restore_request_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request_py3 import AzureWorkloadRestoreRequest - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - '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) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point.py deleted file mode 100644 index de319c889b31..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point import RecoveryPoint - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff - recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, - AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - 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.object_type = 'AzureWorkloadRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point_py3.py deleted file mode 100644 index d34eaa54b599..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_recovery_point_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point_py3 import RecoveryPoint - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff - recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, - AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - def __init__(self, *, recovery_point_time_in_utc=None, type=None, **kwargs) -> None: - super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = recovery_point_time_in_utc - self.type = type - self.object_type = 'AzureWorkloadRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request.py deleted file mode 100644 index 83c89169c229..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request import RestoreRequest - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.recovery_type = kwargs.get('recovery_type', None) - 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.object_type = 'AzureWorkloadRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request_py3.py deleted file mode 100644 index 6052a34438ec..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_restore_request_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request_py3 import RestoreRequest - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, - AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - } - - _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: - 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.object_type = 'AzureWorkloadRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.py deleted file mode 100644 index eab299c75e4f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_point_in_time_recovery_point import AzureWorkloadPointInTimeRecoveryPoint - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.py deleted file mode 100644 index db6ae604b347..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_point_in_time_recovery_point_py3 import AzureWorkloadPointInTimeRecoveryPoint - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - '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) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py deleted file mode 100644 index 9dcde716bc62..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sap_hana_restore_request import AzureWorkloadSAPHanaRestoreRequest - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py deleted file mode 100644 index 1205ea8dbac8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sap_hana_restore_request_py3 import AzureWorkloadSAPHanaRestoreRequest - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - '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) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py deleted file mode 100644 index e26507a82b4a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point import AzureWorkloadRecoveryPoint - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recovery point, specifically encapsulates full/diff - recovery points. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py deleted file mode 100644 index 42d2d023ace7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point_py3 import AzureWorkloadRecoveryPoint - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recovery point, specifically encapsulates full/diff - recovery points. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - '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) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py deleted file mode 100644 index d57362de6681..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request import AzureWorkloadRestoreRequest - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py deleted file mode 100644 index 13c9b74ce8af..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request_py3 import AzureWorkloadRestoreRequest - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - } - - _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) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py deleted file mode 100644 index ed7a57edd4e2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_auto_protection_intent import AzureWorkloadAutoProtectionIntent - - -class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): - """Azure Workload SQL Auto Protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param workload_item_type: Workload item type of the item for which intent - is to be set. Possible values include: 'Invalid', 'SQLInstance', - 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(**kwargs) - self.workload_item_type = kwargs.get('workload_item_type', None) - self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py deleted file mode 100644 index efaece32cf72..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_auto_protection_intent_py3 import AzureWorkloadAutoProtectionIntent - - -class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): - """Azure Workload SQL Auto Protection intent item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - :param workload_item_type: Workload item type of the item for which intent - is to be set. Possible values include: 'Invalid', 'SQLInstance', - 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, workload_item_type=None, **kwargs) -> None: - super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(backup_management_type=backup_management_type, source_resource_id=source_resource_id, item_id=item_id, policy_id=policy_id, protection_state=protection_state, **kwargs) - self.workload_item_type = workload_item_type - self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point.py deleted file mode 100644 index dbf4fd6191ac..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sql_recovery_point import AzureWorkloadSQLRecoveryPoint - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.time_ranges = kwargs.get('time_ranges', None) - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point_py3.py deleted file mode 100644 index 58410e1c744a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_recovery_point_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sql_recovery_point_py3 import AzureWorkloadSQLRecoveryPoint - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :param time_ranges: List of log ranges - :type time_ranges: - list[~azure.mgmt.recoveryservicesbackup.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - '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) - self.time_ranges = time_ranges - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request.py deleted file mode 100644 index 6dc13e0a0600..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sql_restore_request import AzureWorkloadSQLRestoreRequest - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :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 - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - '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, **kwargs): - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(**kwargs) - self.point_in_time = kwargs.get('point_in_time', None) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request_py3.py deleted file mode 100644 index 7e06c7899e10..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_point_in_time_restore_request_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_sql_restore_request_py3 import AzureWorkloadSQLRestoreRequest - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log - restore. - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :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 - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value - :type point_in_time: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - '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) - self.point_in_time = point_in_time - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point.py deleted file mode 100644 index 2a33680067fd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point import AzureWorkloadRecoveryPoint - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recovery point, specifically encapsulates full/diff recovery - point along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) - self.extended_info = kwargs.get('extended_info', None) - self.object_type = 'AzureWorkloadSQLRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info.py deleted file mode 100644 index e9833895048c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): - """Extended info class details. - - :param 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 - operation. - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _attribute_map = { - 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info_py3.py deleted file mode 100644 index 62481c5488bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_extended_info_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): - """Extended info class details. - - :param 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 - operation. - :type data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] - """ - - _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: - super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = data_directory_time_in_utc - self.data_directory_paths = data_directory_paths diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_py3.py deleted file mode 100644 index c4e5f7e83e4b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_recovery_point_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_recovery_point_py3 import AzureWorkloadRecoveryPoint - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recovery point, specifically encapsulates full/diff recovery - point along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - - 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 - created - :type recovery_point_time_in_utc: datetime - :param type: Type of restore point. Possible values include: 'Invalid', - 'Full', 'Log', 'Differential' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointType - :param extended_info: Extended Info that provides data directory details. - Will be populated in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo - query filter - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - '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) - self.extended_info = extended_info - self.object_type = 'AzureWorkloadSQLRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request.py deleted file mode 100644 index e4bc76311c01..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request import AzureWorkloadRestoreRequest - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :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 - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} - } - - def __init__(self, **kwargs): - super(AzureWorkloadSQLRestoreRequest, self).__init__(**kwargs) - self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) - self.is_non_recoverable = kwargs.get('is_non_recoverable', None) - self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) - self.object_type = 'AzureWorkloadSQLRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request_py3.py deleted file mode 100644 index 048e4be84559..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_restore_request_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .azure_workload_restore_request_py3 import AzureWorkloadRestoreRequest - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest - - 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_type: OLR/ALR, RestoreDisks is invalid option. Possible - values include: 'Invalid', 'OriginalLocation', 'AlternateLocation', - 'RestoreDisks' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which - workload that was running is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database - :type target_info: - ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :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 - :param is_non_recoverable: SQL specific property where user can chose to - set no-recovery when restore operation is tried - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - '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) - 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 - self.object_type = 'AzureWorkloadSQLRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base.py deleted file mode 100644 index 1b2f2497470a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEngineBase(Model): - """The base backup engine class. All workload specific backup engines derive - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerEngine, DpmBackupEngine - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} - } - - def __init__(self, **kwargs): - super(BackupEngineBase, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.backup_engine_state = kwargs.get('backup_engine_state', None) - self.health_status = kwargs.get('health_status', None) - self.can_re_register = kwargs.get('can_re_register', None) - self.backup_engine_id = kwargs.get('backup_engine_id', None) - self.dpm_version = kwargs.get('dpm_version', None) - self.azure_backup_agent_version = kwargs.get('azure_backup_agent_version', None) - self.is_azure_backup_agent_upgrade_available = kwargs.get('is_azure_backup_agent_upgrade_available', None) - self.is_dpm_upgrade_available = kwargs.get('is_dpm_upgrade_available', None) - self.extended_info = kwargs.get('extended_info', None) - self.backup_engine_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_py3.py deleted file mode 100644 index eef73eeddbb6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_py3.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEngineBase(Model): - """The base backup engine class. All workload specific backup engines derive - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerEngine, DpmBackupEngine - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(BackupEngineBase, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.registration_status = registration_status - self.backup_engine_state = backup_engine_state - self.health_status = health_status - self.can_re_register = can_re_register - self.backup_engine_id = backup_engine_id - self.dpm_version = dpm_version - self.azure_backup_agent_version = azure_backup_agent_version - self.is_azure_backup_agent_upgrade_available = is_azure_backup_agent_upgrade_available - self.is_dpm_upgrade_available = is_dpm_upgrade_available - self.extended_info = extended_info - self.backup_engine_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource.py deleted file mode 100644 index ae46131075b6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class BackupEngineBaseResource(Resource): - """The base backup engine class. All workload specific backup engines derive - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupEngineBaseResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, - } - - def __init__(self, **kwargs): - super(BackupEngineBaseResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_paged.py deleted file mode 100644 index e61948bda364..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class BackupEngineBaseResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`BackupEngineBaseResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BackupEngineBaseResource]'} - } - - def __init__(self, *args, **kwargs): - - super(BackupEngineBaseResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_py3.py deleted file mode 100644 index 45748b34a630..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_base_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class BackupEngineBaseResource(Resource): - """The base backup engine class. All workload specific backup engines derive - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupEngineBaseResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBase - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupEngineBaseResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info.py deleted file mode 100644 index 8e76a1f5ed63..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEngineExtendedInfo(Model): - """Additional information on backup engine. - - :param database_name: Database name of backup engine. - :type database_name: str - :param protected_items_count: Number of protected items in the backup - engine. - :type protected_items_count: int - :param protected_servers_count: Number of protected servers in the backup - engine. - :type protected_servers_count: int - :param disk_count: Number of disks in the backup engine. - :type disk_count: int - :param used_disk_space: Disk space used in the backup engine. - :type used_disk_space: float - :param available_disk_space: Disk space currently available in the backup - engine. - :type available_disk_space: float - :param refreshed_at: Last refresh time in the backup engine. - :type refreshed_at: datetime - :param azure_protected_instances: Protected instances in the backup - engine. - :type azure_protected_instances: int - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, - 'disk_count': {'key': 'diskCount', 'type': 'int'}, - 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, - 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, - 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, - 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(BackupEngineExtendedInfo, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.protected_servers_count = kwargs.get('protected_servers_count', None) - self.disk_count = kwargs.get('disk_count', None) - self.used_disk_space = kwargs.get('used_disk_space', None) - self.available_disk_space = kwargs.get('available_disk_space', None) - self.refreshed_at = kwargs.get('refreshed_at', None) - self.azure_protected_instances = kwargs.get('azure_protected_instances', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info_py3.py deleted file mode 100644 index 1f4b8aa897d0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_engine_extended_info_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEngineExtendedInfo(Model): - """Additional information on backup engine. - - :param database_name: Database name of backup engine. - :type database_name: str - :param protected_items_count: Number of protected items in the backup - engine. - :type protected_items_count: int - :param protected_servers_count: Number of protected servers in the backup - engine. - :type protected_servers_count: int - :param disk_count: Number of disks in the backup engine. - :type disk_count: int - :param used_disk_space: Disk space used in the backup engine. - :type used_disk_space: float - :param available_disk_space: Disk space currently available in the backup - engine. - :type available_disk_space: float - :param refreshed_at: Last refresh time in the backup engine. - :type refreshed_at: datetime - :param azure_protected_instances: Protected instances in the backup - engine. - :type azure_protected_instances: int - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, - 'disk_count': {'key': 'diskCount', 'type': 'int'}, - 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, - 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, - 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, - 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, - } - - def __init__(self, *, database_name: str=None, protected_items_count: int=None, protected_servers_count: int=None, disk_count: int=None, used_disk_space: float=None, available_disk_space: float=None, refreshed_at=None, azure_protected_instances: int=None, **kwargs) -> None: - super(BackupEngineExtendedInfo, self).__init__(**kwargs) - self.database_name = database_name - self.protected_items_count = protected_items_count - self.protected_servers_count = protected_servers_count - self.disk_count = disk_count - self.used_disk_space = used_disk_space - self.available_disk_space = available_disk_space - self.refreshed_at = refreshed_at - self.azure_protected_instances = azure_protected_instances diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage.py deleted file mode 100644 index 5270e7fb4f16..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupManagementUsage(Model): - """Backup management usages of a vault. - - :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit - :param quota_period: Quota period of usage. - :type quota_period: str - :param next_reset_time: Next reset time of usage. - :type next_reset_time: datetime - :param current_value: Current value of usage. - :type current_value: long - :param limit: Limit of usage. - :type limit: long - :param name: Name of usage. - :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__(self, **kwargs): - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = kwargs.get('unit', None) - self.quota_period = kwargs.get('quota_period', None) - self.next_reset_time = kwargs.get('next_reset_time', None) - self.current_value = kwargs.get('current_value', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_paged.py deleted file mode 100644 index 411e209ecf22..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class BackupManagementUsagePaged(Paged): - """ - A paging container for iterating over a list of :class:`BackupManagementUsage ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BackupManagementUsage]'} - } - - def __init__(self, *args, **kwargs): - - super(BackupManagementUsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_py3.py deleted file mode 100644 index 32baaa0cc26d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_management_usage_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupManagementUsage(Model): - """Backup management usages of a vault. - - :param unit: Unit of the usage. Possible values include: 'Count', 'Bytes', - 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - :type unit: str or ~azure.mgmt.recoveryservicesbackup.models.UsagesUnit - :param quota_period: Quota period of usage. - :type quota_period: str - :param next_reset_time: Next reset time of usage. - :type next_reset_time: datetime - :param current_value: Current value of usage. - :type current_value: long - :param limit: Limit of usage. - :type limit: long - :param name: Name of usage. - :type name: ~azure.mgmt.recoveryservicesbackup.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__(self, *, unit=None, quota_period: str=None, next_reset_time=None, current_value: int=None, limit: int=None, name=None, **kwargs) -> None: - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = unit - self.quota_period = quota_period - self.next_reset_time = next_reset_time - self.current_value = current_value - self.limit = limit - self.name = name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request.py deleted file mode 100644 index 767c62f47a94..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupRequest(Model): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, - IaasVMBackupRequest - - 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': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} - } - - def __init__(self, **kwargs): - super(BackupRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_py3.py deleted file mode 100644 index cfff72e59785..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupRequest(Model): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, - IaasVMBackupRequest - - 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': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} - } - - def __init__(self, **kwargs) -> None: - super(BackupRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource.py deleted file mode 100644 index 6a44c20b9fd9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class BackupRequestResource(Resource): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupRequest'}, - } - - def __init__(self, **kwargs): - super(BackupRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource_py3.py deleted file mode 100644 index d251d72bfeea..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_request_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class BackupRequestResource(Resource): - """Base class for backup request. Workload-specific backup requests are - derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.BackupRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config.py deleted file mode 100644 index e3aa05d35790..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupResourceConfig(Model): - """The resource storage details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_py3.py deleted file mode 100644 index 2a2521a6d519..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupResourceConfig(Model): - """The resource storage details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - } - - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, **kwargs) -> None: - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = storage_model_type - self.storage_type = storage_type - self.storage_type_state = storage_type_state diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource.py deleted file mode 100644 index bbe4915987ce..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__(self, **kwargs): - super(BackupResourceConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource_py3.py deleted file mode 100644 index fc12fbd0c9cc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_config_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupResourceConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config.py deleted file mode 100644 index dfd35a8188ca..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupResourceVaultConfig(Model): - """Backup resource vault config details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - :param enhanced_security_state: Enabled or Disabled. Possible values - include: 'Invalid', 'Enabled', 'Disabled' - :type enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupResourceVaultConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_py3.py deleted file mode 100644 index 89a2b66157c2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupResourceVaultConfig(Model): - """Backup resource vault config details. - - :param storage_model_type: Storage type. Possible values include: - 'Invalid', 'GeoRedundant', 'LocallyRedundant' - :type storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type: Storage type. Possible values include: 'Invalid', - 'GeoRedundant', 'LocallyRedundant' - :type storage_type: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageType - :param storage_type_state: Locked or Unlocked. Once a machine is - registered against a resource, the storageTypeState is always Locked. - Possible values include: 'Invalid', 'Locked', 'Unlocked' - :type storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.models.StorageTypeState - :param enhanced_security_state: Enabled or Disabled. Possible values - include: 'Invalid', 'Enabled', 'Disabled' - :type enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.models.EnhancedSecurityState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, - } - - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource.py deleted file mode 100644 index fd1d87aa7b15..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class BackupResourceVaultConfigResource(Resource): - """Backup resource vault config details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceVaultConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, - } - - def __init__(self, **kwargs): - super(BackupResourceVaultConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource_py3.py deleted file mode 100644 index 410c47ef4b52..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_resource_vault_config_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class BackupResourceVaultConfigResource(Resource): - """Backup resource vault config details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: BackupResourceVaultConfigResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.BackupResourceVaultConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(BackupResourceVaultConfigResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py deleted file mode 100644 index 153677245588..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupStatusRequest(Model): - """BackupStatus request. - - :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param po_logical_name: Protectable Item Logical Name - :type po_logical_name: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupStatusRequest, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.resource_id = kwargs.get('resource_id', None) - self.po_logical_name = kwargs.get('po_logical_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py deleted file mode 100644 index a387478acab0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupStatusRequest(Model): - """BackupStatus request. - - :param resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare. - Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param po_logical_name: Protectable Item Logical Name - :type po_logical_name: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, - } - - def __init__(self, *, resource_type=None, resource_id: str=None, po_logical_name: str=None, **kwargs) -> None: - super(BackupStatusRequest, self).__init__(**kwargs) - self.resource_type = resource_type - self.resource_id = resource_id - self.po_logical_name = po_logical_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py deleted file mode 100644 index 80885ec72e6d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupStatusResponse(Model): - """BackupStatus response. - - :param protection_status: Specifies whether the container is registered or - not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - 'Protected', 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param vault_id: Specifies the arm resource id of the vault - :type vault_id: str - :param fabric_name: Specifies the fabric name - Azure or AD. Possible - values include: 'Invalid', 'Azure' - :type fabric_name: str or - ~azure.mgmt.recoveryservicesbackup.models.FabricName - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :type protected_item_name: str - :param error_code: ErrorCode in case of intent failed - :type error_code: str - :param error_message: ErrorMessage in case of intent failed. - :type error_message: str - :param policy_name: Specifies the policy name which is used for protection - :type policy_name: str - :param registration_status: Container registration status - :type registration_status: str - """ - - _attribute_map = { - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupStatusResponse, self).__init__(**kwargs) - self.protection_status = kwargs.get('protection_status', None) - self.vault_id = kwargs.get('vault_id', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.container_name = kwargs.get('container_name', None) - self.protected_item_name = kwargs.get('protected_item_name', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.policy_name = kwargs.get('policy_name', None) - self.registration_status = kwargs.get('registration_status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py deleted file mode 100644 index 2a9b7641efb1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupStatusResponse(Model): - """BackupStatus response. - - :param protection_status: Specifies whether the container is registered or - not. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - 'Protected', 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param vault_id: Specifies the arm resource id of the vault - :type vault_id: str - :param fabric_name: Specifies the fabric name - Azure or AD. Possible - values include: 'Invalid', 'Azure' - :type fabric_name: str or - ~azure.mgmt.recoveryservicesbackup.models.FabricName - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :type protected_item_name: str - :param error_code: ErrorCode in case of intent failed - :type error_code: str - :param error_message: ErrorMessage in case of intent failed. - :type error_message: str - :param policy_name: Specifies the policy name which is used for protection - :type policy_name: str - :param registration_status: Container registration status - :type registration_status: str - """ - - _attribute_map = { - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - } - - def __init__(self, *, protection_status=None, vault_id: str=None, fabric_name=None, container_name: str=None, protected_item_name: str=None, error_code: str=None, error_message: str=None, policy_name: str=None, registration_status: str=None, **kwargs) -> None: - super(BackupStatusResponse, self).__init__(**kwargs) - self.protection_status = protection_status - self.vault_id = vault_id - self.fabric_name = fabric_name - self.container_name = container_name - self.protected_item_name = protected_item_name - self.error_code = error_code - self.error_message = error_message - self.policy_name = policy_name - self.registration_status = registration_status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details.py deleted file mode 100644 index ac524ba18251..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BEKDetails(Model): - """BEK is bitlocker encryption key. - - :param secret_url: Secret is BEK. - :type secret_url: str - :param secret_vault_id: ID of the Key Vault where this Secret is stored. - :type secret_vault_id: str - :param secret_data: BEK data. - :type secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = kwargs.get('secret_url', None) - self.secret_vault_id = kwargs.get('secret_vault_id', None) - self.secret_data = kwargs.get('secret_data', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details_py3.py deleted file mode 100644 index 9b9a31860624..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bek_details_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BEKDetails(Model): - """BEK is bitlocker encryption key. - - :param secret_url: Secret is BEK. - :type secret_url: str - :param secret_vault_id: ID of the Key Vault where this Secret is stored. - :type secret_vault_id: str - :param secret_data: BEK data. - :type secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__(self, *, secret_url: str=None, secret_vault_id: str=None, secret_data: str=None, **kwargs) -> None: - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = secret_url - self.secret_vault_id = secret_vault_id - self.secret_data = secret_data diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object.py deleted file mode 100644 index fce28e4791b0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupEngineQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param expand: attribute to add extended info - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupEngineQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object_py3.py deleted file mode 100644 index 03b20834b6e9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engine_query_object_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupEngineQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param expand: attribute to add extended info - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, expand: str=None, **kwargs) -> None: - super(BMSBackupEngineQueryObject, self).__init__(**kwargs) - self.expand = expand diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object.py deleted file mode 100644 index ce54a15579d5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupEnginesQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param backup_management_type: Backup management type for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param expand: Attribute to add extended info. - :type expand: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.expand = kwargs.get('expand', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object_py3.py deleted file mode 100644 index 427b3a8d2861..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_engines_query_object_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupEnginesQueryObject(Model): - """Query parameters to fetch list of backup engines. - - :param backup_management_type: Backup management type for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param expand: Attribute to add extended info. - :type expand: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, friendly_name: str=None, expand: str=None, **kwargs) -> None: - super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.friendly_name = friendly_name - self.expand = expand diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object.py deleted file mode 100644 index 9d953bf5098f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupSummariesQueryObject(Model): - """Query parameters to fetch backup summaries. - - :param type: Backup management type for this container. Possible values - include: 'Invalid', 'BackupProtectedItemCountSummary', - 'BackupProtectionContainerCountSummary' - :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = kwargs.get('type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object_py3.py deleted file mode 100644 index 78ba8dfab7f5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_backup_summaries_query_object_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSBackupSummariesQueryObject(Model): - """Query parameters to fetch backup summaries. - - :param type: Backup management type for this container. Possible values - include: 'Invalid', 'BackupProtectedItemCountSummary', - 'BackupProtectionContainerCountSummary' - :type type: str or ~azure.mgmt.recoveryservicesbackup.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py deleted file mode 100644 index 60fc16110e72..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSContainerQueryObject(Model): - """The query filters that can be used with the list containers API. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Required. Backup management type for this - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param container_type: Type of container for filter. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type container_type: str or - ~azure.mgmt.recoveryservicesbackup.models.ContainerType - :param backup_engine_name: Backup engine name - :type backup_engine_name: str - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param status: Status of registration of this container with the Recovery - Services Vault. - :type status: str - :param friendly_name: Friendly name of this container. - :type friendly_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSContainerQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.container_type = kwargs.get('container_type', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py deleted file mode 100644 index f941a05d0469..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSContainerQueryObject(Model): - """The query filters that can be used with the list containers API. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Required. Backup management type for this - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param container_type: Type of container for filter. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type container_type: str or - ~azure.mgmt.recoveryservicesbackup.models.ContainerType - :param backup_engine_name: Backup engine name - :type backup_engine_name: str - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param status: Status of registration of this container with the Recovery - Services Vault. - :type status: str - :param friendly_name: Friendly name of this container. - :type friendly_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type, container_type=None, backup_engine_name: str=None, fabric_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: - super(BMSContainerQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.container_type = container_type - self.backup_engine_name = backup_engine_name - self.fabric_name = fabric_name - self.status = status - self.friendly_name = friendly_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py deleted file mode 100644 index b52e835b8802..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSContainersInquiryQueryObject(Model): - """The query filters that can be used with the inquire container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type for this container. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py deleted file mode 100644 index 045e646fd59d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSContainersInquiryQueryObject(Model): - """The query filters that can be used with the inquire container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type for this container. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, **kwargs) -> None: - super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py deleted file mode 100644 index bf3db1a9f8cd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the refresh container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py deleted file mode 100644 index 34b1c05a5781..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the refresh container API. - - :param backup_management_type: Backup management type for this container. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, **kwargs) -> None: - super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py deleted file mode 100644 index a9c041020116..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSWorkloadItemQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param protection_status: Backup status query parameter. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_item_type = kwargs.get('workload_item_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.protection_status = kwargs.get('protection_status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py deleted file mode 100644 index 2648721f5469..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSWorkloadItemQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', - 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - :type workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param protection_status: Backup status query parameter. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_status: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_item_type=None, workload_type=None, protection_status=None, **kwargs) -> None: - super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_item_type = workload_item_type - self.workload_type = workload_type - self.protection_status = protection_status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py deleted file mode 100644 index e7a9595735b3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSPOQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param container_name: Full name of the container whose Protectable - Objects should be returned. - :type container_name: str - :param status: Backup status query parameter. - :type status: str - :param friendly_name: Friendly name. - :type friendly_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSPOQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py deleted file mode 100644 index e06a42e7db08..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSPOQueryObject(Model): - """Filters to list items that can be backed up. - - :param backup_management_type: Backup management type. Possible values - include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', - 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Workload type. Possible values include: 'Invalid', - 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', - 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param container_name: Full name of the container whose Protectable - Objects should be returned. - :type container_name: str - :param status: Backup status query parameter. - :type status: str - :param friendly_name: Friendly name. - :type friendly_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, status: str=None, friendly_name: str=None, **kwargs) -> None: - super(BMSPOQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.container_name = container_name - self.status = status - self.friendly_name = friendly_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object.py deleted file mode 100644 index 7230da406afd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSRPQueryObject(Model): - """Filters to list backup copies. - - :param start_date: Backup copies created after this time. - :type start_date: datetime - :param end_date: Backup copies created before this time. - :type end_date: datetime - :param restore_point_query_type: RestorePoint type. Possible values - include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', - 'All' - :type restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType - :param extended_info: In Get Recovery Point, it tells whether extended - information about recovery point is asked. - :type extended_info: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = kwargs.get('start_date', None) - self.end_date = kwargs.get('end_date', None) - self.restore_point_query_type = kwargs.get('restore_point_query_type', None) - self.extended_info = kwargs.get('extended_info', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object_py3.py deleted file mode 100644 index 91fe873bcaa1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmsrp_query_object_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BMSRPQueryObject(Model): - """Filters to list backup copies. - - :param start_date: Backup copies created after this time. - :type start_date: datetime - :param end_date: Backup copies created before this time. - :type end_date: datetime - :param restore_point_query_type: RestorePoint type. Possible values - include: 'Invalid', 'Full', 'Log', 'Differential', 'FullAndDifferential', - 'All' - :type restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RestorePointQueryType - :param extended_info: In Get Recovery Point, it tells whether extended - information about recovery point is asked. - :type extended_info: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - } - - def __init__(self, *, start_date=None, end_date=None, restore_point_query_type=None, extended_info: bool=None, **kwargs) -> None: - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = start_date - self.end_date = end_date - self.restore_point_query_type = restore_point_query_type - self.extended_info = extended_info diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display.py deleted file mode 100644 index d9557c7b3122..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryDisplay(Model): - """Localized display information of an operation. - - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: ResourceType for which this Operation can be performed. - :type resource: str - :param operation: Operations Name itself. - :type operation: str - :param description: Description of the operation having details of what - operation is about. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display_py3.py deleted file mode 100644 index 61ce520a52bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryDisplay(Model): - """Localized display information of an operation. - - :param provider: Name of the provider for display purposes - :type provider: str - :param resource: ResourceType for which this Operation can be performed. - :type resource: str - :param operation: Operations Name itself. - :type operation: str - :param description: Description of the operation having details of what - operation is about. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ClientDiscoveryDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification.py deleted file mode 100644 index 139a249e82d2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name for shoebox log specification. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: blob duration of shoebox log specification - :type blob_duration: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display_name = kwargs.get('display_name', None) - self.blob_duration = kwargs.get('blob_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification_py3.py deleted file mode 100644 index 10c285303734..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_log_specification_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForLogSpecification(Model): - """Class to represent shoebox log specification in json client discovery. - - :param name: Name for shoebox log specification. - :type name: str - :param display_name: Localized display name - :type display_name: str - :param blob_duration: blob duration of shoebox log specification - :type blob_duration: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: - super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties.py deleted file mode 100644 index 04533c66702e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForProperties, self).__init__(**kwargs) - self.service_specification = kwargs.get('service_specification', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties_py3.py deleted file mode 100644 index 6d38e3b28eb0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_properties_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForProperties(Model): - """Class to represent shoebox properties in json client discovery. - - :param service_specification: Operation properties. - :type service_specification: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, - } - - def __init__(self, *, service_specification=None, **kwargs) -> None: - super(ClientDiscoveryForProperties, self).__init__(**kwargs) - self.service_specification = service_specification diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification.py deleted file mode 100644 index f4cdef1ebb56..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForServiceSpecification(Model): - """Class to represent shoebox service specification in json client discovery. - - :param log_specifications: List of log specifications of this operation. - :type log_specifications: - list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) - self.log_specifications = kwargs.get('log_specifications', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification_py3.py deleted file mode 100644 index 7e53d894a468..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_for_service_specification_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryForServiceSpecification(Model): - """Class to represent shoebox service specification in json client discovery. - - :param log_specifications: List of log specifications of this operation. - :type log_specifications: - list[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, - } - - def __init__(self, *, log_specifications=None, **kwargs) -> None: - super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) - self.log_specifications = log_specifications diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api.py deleted file mode 100644 index 0f3256de9959..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryValueForSingleApi(Model): - """Available operation details. - - :param name: Name of the Operation. - :type name: str - :param display: Contains the localized display information for this - particular operation - :type display: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay - :param origin: The intended executor of the operation;governs the display - of the operation in the RBAC UX and the audit logs UX - :type origin: str - :param properties: ShoeBox properties for the given operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, - } - - def __init__(self, **kwargs): - super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_paged.py deleted file mode 100644 index bc7b09691a43..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ClientDiscoveryValueForSingleApiPaged(Paged): - """ - A paging container for iterating over a list of :class:`ClientDiscoveryValueForSingleApi ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ClientDiscoveryValueForSingleApi]'} - } - - def __init__(self, *args, **kwargs): - - super(ClientDiscoveryValueForSingleApiPaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_py3.py deleted file mode 100644 index 9fd16e7785e3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_discovery_value_for_single_api_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientDiscoveryValueForSingleApi(Model): - """Available operation details. - - :param name: Name of the Operation. - :type name: str - :param display: Contains the localized display information for this - particular operation - :type display: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryDisplay - :param origin: The intended executor of the operation;governs the display - of the operation in the RBAC UX and the audit logs UX - :type origin: str - :param properties: ShoeBox properties for the given operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryForProperties - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: - super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect.py deleted file mode 100644 index 25050f397dc4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientScriptForConnect(Model): - """Client script details for file / folder restore. - - :param script_content: File content of the client script for file / folder - restore. - :type script_content: str - :param script_extension: File extension of the client script for file / - folder restore - .ps1 , .sh , etc. - :type script_extension: str - :param os_type: OS type - Windows, Linux etc. for which this file / folder - restore client script works. - :type os_type: str - :param url: URL of Executable from where to source the content. If this is - not null then ScriptContent should not be used - :type url: str - :param script_name_suffix: Mandatory suffix that should be added to the - name of script that is given for download to user. - If its null or empty then , ignore it. - :type script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = kwargs.get('script_content', None) - self.script_extension = kwargs.get('script_extension', None) - self.os_type = kwargs.get('os_type', None) - self.url = kwargs.get('url', None) - self.script_name_suffix = kwargs.get('script_name_suffix', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect_py3.py deleted file mode 100644 index 5579426064d6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/client_script_for_connect_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClientScriptForConnect(Model): - """Client script details for file / folder restore. - - :param script_content: File content of the client script for file / folder - restore. - :type script_content: str - :param script_extension: File extension of the client script for file / - folder restore - .ps1 , .sh , etc. - :type script_extension: str - :param os_type: OS type - Windows, Linux etc. for which this file / folder - restore client script works. - :type os_type: str - :param url: URL of Executable from where to source the content. If this is - not null then ScriptContent should not be used - :type url: str - :param script_name_suffix: Mandatory suffix that should be added to the - name of script that is given for download to user. - If its null or empty then , ignore it. - :type script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__(self, *, script_content: str=None, script_extension: str=None, os_type: str=None, url: str=None, script_name_suffix: str=None, **kwargs) -> None: - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = script_content - self.script_extension = script_extension - self.os_type = os_type - self.url = url - self.script_name_suffix = script_name_suffix diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info.py deleted file mode 100644 index fedf3666b33c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ContainerIdentityInfo(Model): - """Container identity information. - - :param unique_name: Unique name of the container - :type unique_name: str - :param aad_tenant_id: Protection container identity - AAD Tenant - :type aad_tenant_id: str - :param service_principal_client_id: Protection container identity - AAD - Service Principal - :type service_principal_client_id: str - :param audience: Protection container identity - Audience - :type audience: str - """ - - _attribute_map = { - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContainerIdentityInfo, self).__init__(**kwargs) - self.unique_name = kwargs.get('unique_name', None) - self.aad_tenant_id = kwargs.get('aad_tenant_id', None) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.audience = kwargs.get('audience', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info_py3.py deleted file mode 100644 index e94bc41c6905..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/container_identity_info_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ContainerIdentityInfo(Model): - """Container identity information. - - :param unique_name: Unique name of the container - :type unique_name: str - :param aad_tenant_id: Protection container identity - AAD Tenant - :type aad_tenant_id: str - :param service_principal_client_id: Protection container identity - AAD - Service Principal - :type service_principal_client_id: str - :param audience: Protection container identity - Audience - :type audience: str - """ - - _attribute_map = { - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - } - - def __init__(self, *, unique_name: str=None, aad_tenant_id: str=None, service_principal_client_id: str=None, audience: str=None, **kwargs) -> None: - super(ContainerIdentityInfo, self).__init__(**kwargs) - self.unique_name = unique_name - self.aad_tenant_id = aad_tenant_id - self.service_principal_client_id = service_principal_client_id - self.audience = audience diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format.py deleted file mode 100644 index 652748549107..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DailyRetentionFormat(Model): - """Daily retention format. - - :param days_of_the_month: List of days of the month. - :type days_of_the_month: - list[~azure.mgmt.recoveryservicesbackup.models.Day] - """ - - _attribute_map = { - 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, - } - - def __init__(self, **kwargs): - super(DailyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_month = kwargs.get('days_of_the_month', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format_py3.py deleted file mode 100644 index 35e4fff27b05..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_format_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DailyRetentionFormat(Model): - """Daily retention format. - - :param days_of_the_month: List of days of the month. - :type days_of_the_month: - list[~azure.mgmt.recoveryservicesbackup.models.Day] - """ - - _attribute_map = { - 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, - } - - def __init__(self, *, days_of_the_month=None, **kwargs) -> None: - super(DailyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_month = days_of_the_month diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule.py deleted file mode 100644 index c12b5c466e45..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DailyRetentionSchedule(Model): - """Daily retention schedule. - - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(DailyRetentionSchedule, self).__init__(**kwargs) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule_py3.py deleted file mode 100644 index ff5842e35192..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/daily_retention_schedule_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DailyRetentionSchedule(Model): - """Daily retention schedule. - - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_times=None, retention_duration=None, **kwargs) -> None: - super(DailyRetentionSchedule, self).__init__(**kwargs) - self.retention_times = retention_times - self.retention_duration = retention_duration diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day.py deleted file mode 100644 index 8a7c1d5f576a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Day(Model): - """Day of the week. - - :param date_property: Date of the month - :type date_property: int - :param is_last: Whether Date is last date of month - :type is_last: bool - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'int'}, - 'is_last': {'key': 'isLast', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(Day, self).__init__(**kwargs) - self.date_property = kwargs.get('date_property', None) - self.is_last = kwargs.get('is_last', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day_py3.py deleted file mode 100644 index 682ed8c4c949..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/day_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Day(Model): - """Day of the week. - - :param date_property: Date of the month - :type date_property: int - :param is_last: Whether Date is last date of month - :type is_last: bool - """ - - _attribute_map = { - 'date_property': {'key': 'date', 'type': 'int'}, - 'is_last': {'key': 'isLast', 'type': 'bool'}, - } - - def __init__(self, *, date_property: int=None, is_last: bool=None, **kwargs) -> None: - super(Day, self).__init__(**kwargs) - self.date_property = date_property - self.is_last = is_last diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info.py deleted file mode 100644 index 1d4704723e57..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DistributedNodesInfo(Model): - """This is used to represent the various nodes of the distributed container. - - :param node_name: Name of the node under a distributed container. - :type node_name: str - :param status: Status of this Node. - Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - """ - - _attribute_map = { - 'node_name': {'key': 'nodeName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, **kwargs): - super(DistributedNodesInfo, self).__init__(**kwargs) - self.node_name = kwargs.get('node_name', None) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info_py3.py deleted file mode 100644 index 7491ca827c74..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/distributed_nodes_info_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DistributedNodesInfo(Model): - """This is used to represent the various nodes of the distributed container. - - :param node_name: Name of the node under a distributed container. - :type node_name: str - :param status: Status of this Node. - Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - """ - - _attribute_map = { - 'node_name': {'key': 'nodeName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, *, node_name: str=None, status: str=None, error_detail=None, **kwargs) -> None: - super(DistributedNodesInfo, self).__init__(**kwargs) - self.node_name = node_name - self.status = status - self.error_detail = error_detail diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine.py deleted file mode 100644 index bb14b5215172..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_engine_base import BackupEngineBase - - -class DpmBackupEngine(BackupEngineBase): - """Data Protection Manager (DPM) specific backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmBackupEngine, self).__init__(**kwargs) - self.backup_engine_type = 'DpmBackupEngine' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine_py3.py deleted file mode 100644 index 672e71064c35..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_backup_engine_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_engine_base_py3 import BackupEngineBase - - -class DpmBackupEngine(BackupEngineBase): - """Data Protection Manager (DPM) specific backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the backup engine. - :type friendly_name: str - :param backup_management_type: Type of backup management for the backup - engine. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Registration status of the backup engine with - the Recovery Services Vault. - :type registration_status: str - :param backup_engine_state: Status of the backup engine with the Recovery - Services Vault. = {Active/Deleting/DeleteFailed} - :type backup_engine_state: str - :param health_status: Backup status of the backup engine. - :type health_status: str - :param can_re_register: Flag indicating if the backup engine be - registered, once already registered. - :type can_re_register: bool - :param backup_engine_id: ID of the backup engine. - :type backup_engine_id: str - :param dpm_version: Backup engine version - :type dpm_version: str - :param azure_backup_agent_version: Backup agent version - :type azure_backup_agent_version: str - :param is_azure_backup_agent_upgrade_available: To check if backup agent - upgrade available - :type is_azure_backup_agent_upgrade_available: bool - :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 - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.BackupEngineExtendedInfo - :param backup_engine_type: Required. Constant filled by server. - :type backup_engine_type: str - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, backup_engine_state: str=None, health_status: str=None, can_re_register: bool=None, backup_engine_id: str=None, dpm_version: str=None, azure_backup_agent_version: str=None, is_azure_backup_agent_upgrade_available: bool=None, is_dpm_upgrade_available: bool=None, extended_info=None, **kwargs) -> None: - super(DpmBackupEngine, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, backup_engine_state=backup_engine_state, health_status=health_status, can_re_register=can_re_register, backup_engine_id=backup_engine_id, dpm_version=dpm_version, azure_backup_agent_version=azure_backup_agent_version, is_azure_backup_agent_upgrade_available=is_azure_backup_agent_upgrade_available, is_dpm_upgrade_available=is_dpm_upgrade_available, extended_info=extended_info, **kwargs) - self.backup_engine_type = 'DpmBackupEngine' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container.py deleted file mode 100644 index ae40f50df73b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class DpmContainer(ProtectionContainer): - """DPM workload-specific protection container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} - } - - def __init__(self, **kwargs): - super(DpmContainer, self).__init__(**kwargs) - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.dpm_agent_version = kwargs.get('dpm_agent_version', None) - self.dpm_servers = kwargs.get('dpm_servers', None) - self.upgrade_available = kwargs.get('upgrade_available', None) - self.protection_status = kwargs.get('protection_status', None) - self.extended_info = kwargs.get('extended_info', None) - self.container_type = 'DPMContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info.py deleted file mode 100644 index 67bffbfbb39f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DPMContainerExtendedInfo(Model): - """Additional information of the DPMContainer. - - :param last_refreshed_at: Last refresh time of the DPMContainer. - :type last_refreshed_at: datetime - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(DPMContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info_py3.py deleted file mode 100644 index 4af64b9cbc4b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_extended_info_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DPMContainerExtendedInfo(Model): - """Additional information of the DPMContainer. - - :param last_refreshed_at: Last refresh time of the DPMContainer. - :type last_refreshed_at: datetime - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - } - - def __init__(self, *, last_refreshed_at=None, **kwargs) -> None: - super(DPMContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_py3.py deleted file mode 100644 index 69ae6c542d08..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_container_py3.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class DpmContainer(ProtectionContainer): - """DPM workload-specific protection container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Specifies whether the container is re-registrable. - :type can_re_register: bool - :param container_id: ID of container. - :type container_id: str - :param protected_item_count: Number of protected items in the BackupEngine - :type protected_item_count: long - :param dpm_agent_version: Backup engine Agent version - :type dpm_agent_version: str - :param dpm_servers: List of BackupEngines protecting the container - :type dpm_servers: list[str] - :param upgrade_available: To check if upgrade available - :type upgrade_available: bool - :param protection_status: Protection status of the container. - :type protection_status: str - :param extended_info: Extended Info of the container. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: str=None, protected_item_count: int=None, dpm_agent_version: str=None, dpm_servers=None, upgrade_available: bool=None, protection_status: str=None, extended_info=None, **kwargs) -> None: - super(DpmContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.can_re_register = can_re_register - self.container_id = container_id - self.protected_item_count = protected_item_count - self.dpm_agent_version = dpm_agent_version - self.dpm_servers = dpm_servers - self.upgrade_available = upgrade_available - self.protection_status = protection_status - self.extended_info = extended_info - self.container_type = 'DPMContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info.py deleted file mode 100644 index 5d932919b0b4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmErrorInfo(Model): - """DPM workload-specific error information. - - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info_py3.py deleted file mode 100644 index e4806c947e22..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_error_info_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmErrorInfo(Model): - """DPM workload-specific error information. - - :param error_string: Localized error string. - :type error_string: str - :param recommendations: List of localized recommendations for above error - code. - :type recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = error_string - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job.py deleted file mode 100644 index 36fc30d862be..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job import Job - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed for job. - :type duration: timedelta - :param dpm_server_name: DPM server name managing the backup item or backup - job. - :type dpm_server_name: str - :param container_name: Name of cluster/server protecting current backup - item, if any. - :type container_name: str - :param container_type: Type of container. - :type container_type: str - :param workload_type: Type of backup item. - :type workload_type: str - :param actions_info: The state/actions applicable on this job like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(DpmJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.dpm_server_name = kwargs.get('dpm_server_name', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'DpmJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info.py deleted file mode 100644 index 838e5e040ec4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmJobExtendedInfo(Model): - """Additional information on the DPM workload-specific job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info_py3.py deleted file mode 100644 index 577a16ff7e97..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmJobExtendedInfo(Model): - """Additional information on the DPM workload-specific job. - - :param tasks_list: List of tasks associated with this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.DpmJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message on job - execution. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_py3.py deleted file mode 100644 index b59997a47c0e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_py3.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_py3 import Job - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time elapsed for job. - :type duration: timedelta - :param dpm_server_name: DPM server name managing the backup item or backup - job. - :type dpm_server_name: str - :param container_name: Name of cluster/server protecting current backup - item, if any. - :type container_name: str - :param container_type: Type of container. - :type container_type: str - :param workload_type: Type of backup item. - :type workload_type: str - :param actions_info: The state/actions applicable on this job like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.DpmErrorInfo] - :param extended_info: Additional information for this job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, dpm_server_name: str=None, container_name: str=None, container_type: str=None, workload_type: str=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: - super(DpmJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.dpm_server_name = dpm_server_name - self.container_name = container_name - self.container_type = container_type - self.workload_type = workload_type - self.actions_info = actions_info - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'DpmJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details.py deleted file mode 100644 index 66ad8b27d105..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmJobTaskDetails(Model): - """DPM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details_py3.py deleted file mode 100644 index aa641bd67510..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_job_task_details_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DpmJobTaskDetails(Model): - """DPM workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.duration = duration - self.status = status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py deleted file mode 100644 index 18c7e59a7a01..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the managed item - :type friendly_name: str - :param backup_engine_name: Backup Management server protecting this backup - item - :type backup_engine_name: str - :param protection_state: Protection state of the backup engine. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param is_scheduled_for_deferred_delete: To check if backup item is - scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param extended_info: Extended info of the backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(DPMProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', None) - self.extended_info = kwargs.get('extended_info', None) - self.protected_item_type = 'DPMProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info.py deleted file mode 100644 index 0b09e52b592e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DPMProtectedItemExtendedInfo(Model): - """Additional information of DPM Protected item. - - :param protectable_object_load_path: Attribute to provide information on - various DBs. - :type protectable_object_load_path: dict[str, str] - :param protected: To check if backup item is disk protected. - :type protected: bool - :param is_present_on_cloud: To check if backup item is cloud protected. - :type is_present_on_cloud: bool - :param last_backup_status: Last backup status information on backup item. - :type last_backup_status: str - :param last_refreshed_at: Last refresh time on backup item. - :type last_refreshed_at: datetime - :param oldest_recovery_point: Oldest cloud recovery point time. - :type oldest_recovery_point: datetime - :param recovery_point_count: cloud recovery point count. - :type recovery_point_count: int - :param on_premise_oldest_recovery_point: Oldest disk recovery point time. - :type on_premise_oldest_recovery_point: datetime - :param on_premise_latest_recovery_point: latest disk recovery point time. - :type on_premise_latest_recovery_point: datetime - :param on_premise_recovery_point_count: disk recovery point count. - :type on_premise_recovery_point_count: int - :param is_collocated: To check if backup item is collocated. - :type is_collocated: bool - :param protection_group_name: Protection group name of the backup item. - :type protection_group_name: str - :param disk_storage_used_in_bytes: Used Disk storage in bytes. - :type disk_storage_used_in_bytes: str - :param total_disk_storage_size_in_bytes: total Disk storage in bytes. - :type total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = kwargs.get('protectable_object_load_path', None) - self.protected = kwargs.get('protected', None) - self.is_present_on_cloud = kwargs.get('is_present_on_cloud', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.on_premise_oldest_recovery_point = kwargs.get('on_premise_oldest_recovery_point', None) - self.on_premise_latest_recovery_point = kwargs.get('on_premise_latest_recovery_point', None) - self.on_premise_recovery_point_count = kwargs.get('on_premise_recovery_point_count', None) - self.is_collocated = kwargs.get('is_collocated', None) - self.protection_group_name = kwargs.get('protection_group_name', None) - self.disk_storage_used_in_bytes = kwargs.get('disk_storage_used_in_bytes', None) - self.total_disk_storage_size_in_bytes = kwargs.get('total_disk_storage_size_in_bytes', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info_py3.py deleted file mode 100644 index 3458fdb847e8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_extended_info_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DPMProtectedItemExtendedInfo(Model): - """Additional information of DPM Protected item. - - :param protectable_object_load_path: Attribute to provide information on - various DBs. - :type protectable_object_load_path: dict[str, str] - :param protected: To check if backup item is disk protected. - :type protected: bool - :param is_present_on_cloud: To check if backup item is cloud protected. - :type is_present_on_cloud: bool - :param last_backup_status: Last backup status information on backup item. - :type last_backup_status: str - :param last_refreshed_at: Last refresh time on backup item. - :type last_refreshed_at: datetime - :param oldest_recovery_point: Oldest cloud recovery point time. - :type oldest_recovery_point: datetime - :param recovery_point_count: cloud recovery point count. - :type recovery_point_count: int - :param on_premise_oldest_recovery_point: Oldest disk recovery point time. - :type on_premise_oldest_recovery_point: datetime - :param on_premise_latest_recovery_point: latest disk recovery point time. - :type on_premise_latest_recovery_point: datetime - :param on_premise_recovery_point_count: disk recovery point count. - :type on_premise_recovery_point_count: int - :param is_collocated: To check if backup item is collocated. - :type is_collocated: bool - :param protection_group_name: Protection group name of the backup item. - :type protection_group_name: str - :param disk_storage_used_in_bytes: Used Disk storage in bytes. - :type disk_storage_used_in_bytes: str - :param total_disk_storage_size_in_bytes: total Disk storage in bytes. - :type total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__(self, *, protectable_object_load_path=None, protected: bool=None, is_present_on_cloud: bool=None, last_backup_status: str=None, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, on_premise_oldest_recovery_point=None, on_premise_latest_recovery_point=None, on_premise_recovery_point_count: int=None, is_collocated: bool=None, protection_group_name: str=None, disk_storage_used_in_bytes: str=None, total_disk_storage_size_in_bytes: str=None, **kwargs) -> None: - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = protectable_object_load_path - self.protected = protected - self.is_present_on_cloud = is_present_on_cloud - self.last_backup_status = last_backup_status - self.last_refreshed_at = last_refreshed_at - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count - self.on_premise_oldest_recovery_point = on_premise_oldest_recovery_point - self.on_premise_latest_recovery_point = on_premise_latest_recovery_point - self.on_premise_recovery_point_count = on_premise_recovery_point_count - self.is_collocated = is_collocated - self.protection_group_name = protection_group_name - self.disk_storage_used_in_bytes = disk_storage_used_in_bytes - self.total_disk_storage_size_in_bytes = total_disk_storage_size_in_bytes diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py deleted file mode 100644 index 284ef7db03e7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the managed item - :type friendly_name: str - :param backup_engine_name: Backup Management server protecting this backup - item - :type backup_engine_name: str - :param protection_state: Protection state of the backup engine. Possible - values include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemState - :param is_scheduled_for_deferred_delete: To check if backup item is - scheduled for deferred delete - :type is_scheduled_for_deferred_delete: bool - :param extended_info: Extended info of the backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - 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, friendly_name: str=None, backup_engine_name: str=None, protection_state=None, is_scheduled_for_deferred_delete: bool=None, extended_info=None, **kwargs) -> None: - super(DPMProtectedItem, 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, **kwargs) - self.friendly_name = friendly_name - self.backup_engine_name = backup_engine_name - self.protection_state = protection_state - self.is_scheduled_for_deferred_delete = is_scheduled_for_deferred_delete - self.extended_info = extended_info - self.protected_item_type = 'DPMProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details.py deleted file mode 100644 index 3444fbcb0414..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EncryptionDetails(Model): - """Details needed if the VM was encrypted at the time of backup. - - :param encryption_enabled: Identifies whether this backup copy represents - an encrypted VM at the time of backup. - :type encryption_enabled: bool - :param kek_url: Key Url. - :type kek_url: str - :param secret_key_url: Secret Url. - :type secret_key_url: str - :param kek_vault_id: ID of Key Vault where KEK is stored. - :type kek_vault_id: str - :param secret_key_vault_id: ID of Key Vault where Secret is stored. - :type secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = kwargs.get('encryption_enabled', None) - self.kek_url = kwargs.get('kek_url', None) - self.secret_key_url = kwargs.get('secret_key_url', None) - self.kek_vault_id = kwargs.get('kek_vault_id', None) - self.secret_key_vault_id = kwargs.get('secret_key_vault_id', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details_py3.py deleted file mode 100644 index 1549a4f757c9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/encryption_details_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class EncryptionDetails(Model): - """Details needed if the VM was encrypted at the time of backup. - - :param encryption_enabled: Identifies whether this backup copy represents - an encrypted VM at the time of backup. - :type encryption_enabled: bool - :param kek_url: Key Url. - :type kek_url: str - :param secret_key_url: Secret Url. - :type secret_key_url: str - :param kek_vault_id: ID of Key Vault where KEK is stored. - :type kek_vault_id: str - :param secret_key_vault_id: ID of Key Vault where Secret is stored. - :type secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__(self, *, encryption_enabled: bool=None, kek_url: str=None, secret_key_url: str=None, kek_vault_id: str=None, secret_key_vault_id: str=None, **kwargs) -> None: - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = encryption_enabled - self.kek_url = kek_url - self.secret_key_url = secret_key_url - self.kek_vault_id = kek_vault_id - self.secret_key_vault_id = secret_key_vault_id diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail.py deleted file mode 100644 index 6214b21c5eed..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail_py3.py deleted file mode 100644 index 3b5282aeeaac..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/error_detail_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _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: - super(ErrorDetail, self).__init__(**kwargs) - self.code = code - self.message = message - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info.py deleted file mode 100644 index cbfd3d06c161..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_result_info_base import OperationResultInfoBase - - -class ExportJobsOperationResultInfo(OperationResultInfoBase): - """This class is used to send blob details after exporting jobs. - - 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 blob_url: URL of the blob into which the serialized string of list - of jobs is exported. - :type blob_url: str - :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :type blob_sas_key: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'blob_url': {'key': 'blobUrl', 'type': 'str'}, - 'blob_sas_key': {'key': 'blobSasKey', '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.object_type = 'ExportJobsOperationResultInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info_py3.py deleted file mode 100644 index 1325aca53840..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/export_jobs_operation_result_info_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_result_info_base_py3 import OperationResultInfoBase - - -class ExportJobsOperationResultInfo(OperationResultInfoBase): - """This class is used to send blob details after exporting jobs. - - 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 blob_url: URL of the blob into which the serialized string of list - of jobs is exported. - :type blob_url: str - :param blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :type blob_sas_key: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'blob_url': {'key': 'blobUrl', 'type': 'str'}, - 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, - } - - def __init__(self, *, blob_url: str=None, 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.object_type = 'ExportJobsOperationResultInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py deleted file mode 100644 index 4c4e2c274aab..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureSupportRequest(Model): - """Base class for feature request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupGoalFeatureSupportRequest, - AzureVMResourceFeatureSupportRequest - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - _subtype_map = { - 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} - } - - def __init__(self, **kwargs): - super(FeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py deleted file mode 100644 index 15628cad981f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureSupportRequest(Model): - """Base class for feature request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupGoalFeatureSupportRequest, - AzureVMResourceFeatureSupportRequest - - All required parameters must be populated in order to send to Azure. - - :param feature_type: Required. Constant filled by server. - :type feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - _subtype_map = { - 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} - } - - def __init__(self, **kwargs) -> None: - super(FeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container.py deleted file mode 100644 index 27c1bd2a3e3d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class GenericContainer(ProtectionContainer): - """Base class for generic container of backup items. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param fabric_name: Name of the container's fabric - :type fabric_name: str - :param extended_information: Extended information (not returned in List - container API calls) - :type extended_information: - ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(GenericContainer, self).__init__(**kwargs) - self.fabric_name = kwargs.get('fabric_name', None) - self.extended_information = kwargs.get('extended_information', None) - self.container_type = 'GenericContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info.py deleted file mode 100644 index b5873d24f8e7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericContainerExtendedInfo(Model): - """Container extended information. - - :param raw_cert_data: Public key of container cert - :type raw_cert_data: str - :param container_identity_info: Container identity information - :type container_identity_info: - ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo - :param service_endpoints: Azure Backup Service Endpoints for the container - :type service_endpoints: dict[str, str] - """ - - _attribute_map = { - 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, - 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, - 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(GenericContainerExtendedInfo, self).__init__(**kwargs) - self.raw_cert_data = kwargs.get('raw_cert_data', None) - self.container_identity_info = kwargs.get('container_identity_info', None) - self.service_endpoints = kwargs.get('service_endpoints', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info_py3.py deleted file mode 100644 index fdec4c143961..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_extended_info_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericContainerExtendedInfo(Model): - """Container extended information. - - :param raw_cert_data: Public key of container cert - :type raw_cert_data: str - :param container_identity_info: Container identity information - :type container_identity_info: - ~azure.mgmt.recoveryservicesbackup.models.ContainerIdentityInfo - :param service_endpoints: Azure Backup Service Endpoints for the container - :type service_endpoints: dict[str, str] - """ - - _attribute_map = { - 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, - 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, - 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, - } - - def __init__(self, *, raw_cert_data: str=None, container_identity_info=None, service_endpoints=None, **kwargs) -> None: - super(GenericContainerExtendedInfo, self).__init__(**kwargs) - self.raw_cert_data = raw_cert_data - self.container_identity_info = container_identity_info - self.service_endpoints = service_endpoints diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_py3.py deleted file mode 100644 index 15dfa257c869..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class GenericContainer(ProtectionContainer): - """Base class for generic container of backup items. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param fabric_name: Name of the container's fabric - :type fabric_name: str - :param extended_information: Extended information (not returned in List - container API calls) - :type extended_information: - ~azure.mgmt.recoveryservicesbackup.models.GenericContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, fabric_name: str=None, extended_information=None, **kwargs) -> None: - super(GenericContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.fabric_name = fabric_name - self.extended_information = extended_information - self.container_type = 'GenericContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py deleted file mode 100644 index 59718cc0c6e4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param protected_item_id: Data Plane Service ID of the protected item. - :type protected_item_id: long - :param source_associations: Loosely coupled (type, value) associations - (example - parent of a protected item) - :type source_associations: dict[str, str] - :param fabric_name: Name of this backup item's fabric. - :type fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericProtectedItem, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.policy_state = kwargs.get('policy_state', None) - self.protection_state = kwargs.get('protection_state', None) - self.protected_item_id = kwargs.get('protected_item_id', None) - self.source_associations = kwargs.get('source_associations', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.protected_item_type = 'GenericProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py deleted file mode 100644 index e4e2e1734c0f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param policy_state: Indicates consistency of policy object and policy - applied to this backup item. - :type policy_state: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'IRPending', 'Protected', 'ProtectionError', - 'ProtectionStopped', 'ProtectionPaused' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionState - :param protected_item_id: Data Plane Service ID of the protected item. - :type protected_item_id: long - :param source_associations: Loosely coupled (type, value) associations - (example - parent of a protected item) - :type source_associations: dict[str, str] - :param fabric_name: Name of this backup item's fabric. - :type fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - 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, friendly_name: str=None, policy_state: str=None, protection_state=None, protected_item_id: int=None, source_associations=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectedItem, 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, **kwargs) - self.friendly_name = friendly_name - self.policy_state = policy_state - self.protection_state = protection_state - self.protected_item_id = protected_item_id - self.source_associations = source_associations - self.fabric_name = fabric_name - self.protected_item_type = 'GenericProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy.py deleted file mode 100644 index 7fffd691ec15..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class GenericProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param fabric_name: Name of this policy's fabric. - :type fabric_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericProtectionPolicy, self).__init__(**kwargs) - self.sub_protection_policy = kwargs.get('sub_protection_policy', None) - self.time_zone = kwargs.get('time_zone', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_management_type = 'GenericProtectionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy_py3.py deleted file mode 100644 index bbead520304a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protection_policy_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class GenericProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param sub_protection_policy: List of sub-protection policies which - includes schedule and retention - :type sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.models.SubProtectionPolicy] - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param fabric_name: Name of this policy's fabric. - :type fabric_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__(self, *, protected_items_count: int=None, sub_protection_policy=None, time_zone: str=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.sub_protection_policy = sub_protection_policy - self.time_zone = time_zone - self.fabric_name = fabric_name - self.backup_management_type = 'GenericProtectionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point.py deleted file mode 100644 index fee7c7287519..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point import RecoveryPoint - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - 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 friendly_name: Friendly name of the backup copy. - :type friendly_name: 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 - with this backup copy. - :type recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - 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.object_type = 'GenericRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point_py3.py deleted file mode 100644 index 33b3743a9351..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_recovery_point_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point_py3 import RecoveryPoint - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - 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 friendly_name: Friendly name of the backup copy. - :type friendly_name: 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 - with this backup copy. - :type recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, recovery_point_type: str=None, recovery_point_time=None, recovery_point_additional_info: str=None, **kwargs) -> None: - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.recovery_point_type = recovery_point_type - self.recovery_point_time = recovery_point_time - self.recovery_point_additional_info = recovery_point_additional_info - self.object_type = 'GenericRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object.py deleted file mode 100644 index 75c1eebca8de..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GetProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param expand: Specifies if the additional information should be provided - for this item. - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GetProtectedItemQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object_py3.py deleted file mode 100644 index 0954d0b1cb3a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/get_protected_item_query_object_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GetProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param expand: Specifies if the additional information should be provided - for this item. - :type expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__(self, *, expand: str=None, **kwargs) -> None: - super(GetProtectedItemQueryObject, self).__init__(**kwargs) - self.expand = expand diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container.py deleted file mode 100644 index 08c7582f0ed6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class IaaSVMContainer(ProtectionContainer): - """IaaS VM workload-specific container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMContainer, - AzureIaaSComputeVMContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} - } - - def __init__(self, **kwargs): - super(IaaSVMContainer, self).__init__(**kwargs) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.resource_group = kwargs.get('resource_group', None) - self.container_type = 'IaaSVMContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container_py3.py deleted file mode 100644 index 46291353ce3f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_container_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class IaaSVMContainer(ProtectionContainer): - """IaaS VM workload-specific container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMContainer, - AzureIaaSComputeVMContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param virtual_machine_id: Fully qualified ARM url of the virtual machine - represented by this Azure IaaS VM container. - :type virtual_machine_id: str - :param virtual_machine_version: Specifies whether the container represents - a Classic or an Azure Resource Manager VM. - :type virtual_machine_version: str - :param resource_group: Resource group name of Recovery Services Vault. - :type resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, virtual_machine_id: str=None, virtual_machine_version: str=None, resource_group: str=None, **kwargs) -> None: - super(IaaSVMContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.virtual_machine_id = virtual_machine_id - self.virtual_machine_version = virtual_machine_version - self.resource_group = resource_group - self.container_type = 'IaaSVMContainer' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item.py deleted file mode 100644 index 263127660f2c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item import WorkloadProtectableItem - - -class IaaSVMProtectableItem(WorkloadProtectableItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectableItem, - AzureIaaSComputeVMProtectableItem - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} - } - - def __init__(self, **kwargs): - super(IaaSVMProtectableItem, self).__init__(**kwargs) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protectable_item_type = 'IaaSVMProtectableItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item_py3.py deleted file mode 100644 index 4612a9abf31b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaa_svm_protectable_item_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .workload_protectable_item_py3 import WorkloadProtectableItem - - -class IaaSVMProtectableItem(WorkloadProtectableItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectableItem, - AzureIaaSComputeVMProtectableItem - - 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 virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :type virtual_machine_id: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, virtual_machine_id: str=None, **kwargs) -> None: - super(IaaSVMProtectableItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, friendly_name=friendly_name, protection_state=protection_state, **kwargs) - self.virtual_machine_id = virtual_machine_id - self.protectable_item_type = 'IaaSVMProtectableItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request.py deleted file mode 100644 index c3603259a10b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request import BackupRequest - - -class IaasVMBackupRequest(BackupRequest): - """IaaS VM workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(IaasVMBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - self.object_type = 'IaasVMBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request_py3.py deleted file mode 100644 index af4e4a228c6b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_backup_request_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .backup_request_py3 import BackupRequest - - -class IaasVMBackupRequest(BackupRequest): - """IaaS VM workload-specific backup 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_expiry_time_in_utc: Backup copy will expire after - the time specified (UTC). - :type recovery_point_expiry_time_in_utc: datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__(self, *, recovery_point_expiry_time_in_utc=None, **kwargs) -> None: - super(IaasVMBackupRequest, self).__init__(**kwargs) - self.recovery_point_expiry_time_in_utc = recovery_point_expiry_time_in_utc - self.object_type = 'IaasVMBackupRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py deleted file mode 100644 index 1662bb84a086..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point import RecoveryPoint - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - 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 - with this backup copy. - :type recovery_point_additional_info: str - :param 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 - :param key_and_secret: Required details for recovering an encrypted VM. - Applicable only when IsSourceVMEncrypted is true. - :type key_and_secret: - ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails - :param is_instant_ilr_session_active: Is the session to recover items from - this backup copy still active. - :type is_instant_ilr_session_active: bool - :param recovery_point_tier_details: Recovery point tier information. - :type recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] - :param is_managed_virtual_machine: Whether VM is with Managed Disks - :type is_managed_virtual_machine: bool - :param virtual_machine_size: Virtual Machine Size - :type virtual_machine_size: str - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param os_type: OS type - :type os_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - } - - 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.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) - self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None) - 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.object_type = 'IaasVMRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py deleted file mode 100644 index 0854b78fe2ac..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .recovery_point_py3 import RecoveryPoint - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - 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 - with this backup copy. - :type recovery_point_additional_info: str - :param 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 - :param key_and_secret: Required details for recovering an encrypted VM. - Applicable only when IsSourceVMEncrypted is true. - :type key_and_secret: - ~azure.mgmt.recoveryservicesbackup.models.KeyAndSecretDetails - :param is_instant_ilr_session_active: Is the session to recover items from - this backup copy still active. - :type is_instant_ilr_session_active: bool - :param recovery_point_tier_details: Recovery point tier information. - :type recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierInformation] - :param is_managed_virtual_machine: Whether VM is with Managed Disks - :type is_managed_virtual_machine: bool - :param virtual_machine_size: Virtual Machine Size - :type virtual_machine_size: str - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param os_type: OS type - :type os_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - } - - 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: - 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.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 - self.is_managed_virtual_machine = is_managed_virtual_machine - self.virtual_machine_size = virtual_machine_size - self.original_storage_account_option = original_storage_account_option - self.os_type = os_type - self.object_type = 'IaasVMRecoveryPoint' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py deleted file mode 100644 index 0752ecf376b4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request import RestoreRequest - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - 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: 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' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM which is being - recovered. - :type source_resource_id: str - :param target_virtual_machine_id: This is the complete ARM Id of the VM - that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} - :type target_virtual_machine_id: str - :param target_resource_group_id: This is the ARM Id of the resource group - that you want to create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg} - :type target_resource_group_id: str - :param storage_account_id: Fully qualified ARM ID of the storage account - to which the VM has to be restored. - :type storage_account_id: str - :param virtual_network_id: This is the virtual network Id of the vnet that - will be attached to the virtual machine. - User will be validated for join action permissions in the linked access. - :type virtual_network_id: str - :param subnet_id: Subnet ID, is the subnet ID associated with the to be - restored VM. For Classic VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it - would be ARM resource ID used to represent - the subnet. - :type subnet_id: str - :param target_domain_name_id: Fully qualified ARM ID of the domain name to - be associated to the VM being restored. This applies only to Classic - Virtual Machines. - :type target_domain_name_id: str - :param region: Region in which the virtual machine is restored. - :type region: str - :param affinity_group: Affinity group associated to VM to be restored. - Used only for Classic Compute Virtual Machines. - :type affinity_group: str - :param create_new_cloud_service: Should a new cloud service be created - while restoring the VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :type create_new_cloud_service: bool - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param encryption_details: Details needed if the VM was encrypted at the - time of backup. - :type encryption_details: - ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - } - - def __init__(self, **kwargs): - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - self.target_resource_group_id = kwargs.get('target_resource_group_id', None) - self.storage_account_id = kwargs.get('storage_account_id', None) - self.virtual_network_id = kwargs.get('virtual_network_id', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.target_domain_name_id = kwargs.get('target_domain_name_id', None) - self.region = kwargs.get('region', None) - self.affinity_group = kwargs.get('affinity_group', None) - 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.object_type = 'IaasVMRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py deleted file mode 100644 index 249b224b91e1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .restore_request_py3 import RestoreRequest - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - 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: 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' - :type recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM which is being - recovered. - :type source_resource_id: str - :param target_virtual_machine_id: This is the complete ARM Id of the VM - that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} - :type target_virtual_machine_id: str - :param target_resource_group_id: This is the ARM Id of the resource group - that you want to create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg} - :type target_resource_group_id: str - :param storage_account_id: Fully qualified ARM ID of the storage account - to which the VM has to be restored. - :type storage_account_id: str - :param virtual_network_id: This is the virtual network Id of the vnet that - will be attached to the virtual machine. - User will be validated for join action permissions in the linked access. - :type virtual_network_id: str - :param subnet_id: Subnet ID, is the subnet ID associated with the to be - restored VM. For Classic VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it - would be ARM resource ID used to represent - the subnet. - :type subnet_id: str - :param target_domain_name_id: Fully qualified ARM ID of the domain name to - be associated to the VM being restored. This applies only to Classic - Virtual Machines. - :type target_domain_name_id: str - :param region: Region in which the virtual machine is restored. - :type region: str - :param affinity_group: Affinity group associated to VM to be restored. - Used only for Classic Compute Virtual Machines. - :type affinity_group: str - :param create_new_cloud_service: Should a new cloud service be created - while restoring the VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :type create_new_cloud_service: bool - :param original_storage_account_option: Original Storage Account Option - :type original_storage_account_option: bool - :param encryption_details: Details needed if the VM was encrypted at the - time of backup. - :type encryption_details: - ~azure.mgmt.recoveryservicesbackup.models.EncryptionDetails - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - } - - 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: - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.recovery_point_id = recovery_point_id - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.target_virtual_machine_id = target_virtual_machine_id - self.target_resource_group_id = target_resource_group_id - self.storage_account_id = storage_account_id - self.virtual_network_id = virtual_network_id - self.subnet_id = subnet_id - self.target_domain_name_id = target_domain_name_id - self.region = region - self.affinity_group = affinity_group - self.create_new_cloud_service = create_new_cloud_service - self.original_storage_account_option = original_storage_account_option - self.encryption_details = encryption_details - self.object_type = 'IaasVMRestoreRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request.py deleted file mode 100644 index 6ab623f22e73..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .ilr_request import ILRRequest - - -class IaasVMILRRegistrationRequest(ILRRequest): - """Restore files/folders from a backup copy of IaaS VM. - - 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: ID of the IaaS VM backup copy from where the - files/folders have to be restored. - :type recovery_point_id: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - whose the files / folders have to be restored. - :type virtual_machine_id: str - :param initiator_name: iSCSI initiator name. - :type initiator_name: str - :param renew_existing_registration: Whether to renew existing registration - with the iSCSI server. - :type renew_existing_registration: bool - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, - 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.initiator_name = kwargs.get('initiator_name', None) - self.renew_existing_registration = kwargs.get('renew_existing_registration', None) - self.object_type = 'IaasVMILRRegistrationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request_py3.py deleted file mode 100644 index 65c309171e34..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vmilr_registration_request_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .ilr_request_py3 import ILRRequest - - -class IaasVMILRRegistrationRequest(ILRRequest): - """Restore files/folders from a backup copy of IaaS VM. - - 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: ID of the IaaS VM backup copy from where the - files/folders have to be restored. - :type recovery_point_id: str - :param virtual_machine_id: Fully qualified ARM ID of the virtual machine - whose the files / folders have to be restored. - :type virtual_machine_id: str - :param initiator_name: iSCSI initiator name. - :type initiator_name: str - :param renew_existing_registration: Whether to renew existing registration - with the iSCSI server. - :type renew_existing_registration: bool - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, - 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, - } - - def __init__(self, *, recovery_point_id: str=None, virtual_machine_id: str=None, initiator_name: str=None, renew_existing_registration: bool=None, **kwargs) -> None: - super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) - self.recovery_point_id = recovery_point_id - self.virtual_machine_id = virtual_machine_id - self.initiator_name = initiator_name - self.renew_existing_registration = renew_existing_registration - self.object_type = 'IaasVMILRRegistrationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request.py deleted file mode 100644 index 277056ae7482..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_py3.py deleted file mode 100644 index 318d3106ac80..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource.py deleted file mode 100644 index c5686c5cb5f2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ILRRequestResource(Resource): - """Parameters to restore file/folders API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ILRRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ILRRequest'}, - } - - def __init__(self, **kwargs): - super(ILRRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource_py3.py deleted file mode 100644 index c5556e712450..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/ilr_request_resource_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ILRRequestResource(Resource): - """Parameters to restore file/folders API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ILRRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ILRRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ILRRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ILRRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info.py deleted file mode 100644 index 560696785506..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InquiryInfo(Model): - """Details about inquired protectable items under a given container. - - :param status: Inquiry Status for this container such as - InProgress | Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param inquiry_details: Inquiry Details which will have workload specific - details. - For e.g. - For SQL and oracle this will contain different details. - :type inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, - } - - def __init__(self, **kwargs): - super(InquiryInfo, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - self.inquiry_details = kwargs.get('inquiry_details', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info_py3.py deleted file mode 100644 index 85838afd1907..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_info_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InquiryInfo(Model): - """Details about inquired protectable items under a given container. - - :param status: Inquiry Status for this container such as - InProgress | Failed | Succeeded - :type status: str - :param error_detail: Error Details if the Status is non-success. - :type error_detail: ~azure.mgmt.recoveryservicesbackup.models.ErrorDetail - :param inquiry_details: Inquiry Details which will have workload specific - details. - For e.g. - For SQL and oracle this will contain different details. - :type inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.models.WorkloadInquiryDetails] - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, - } - - def __init__(self, *, status: str=None, error_detail=None, inquiry_details=None, **kwargs) -> None: - super(InquiryInfo, self).__init__(**kwargs) - self.status = status - self.error_detail = error_detail - self.inquiry_details = inquiry_details diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation.py deleted file mode 100644 index 3940e1cb0232..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InquiryValidation(Model): - """Validation for inquired protectable items under a given container. - - :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 - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, **kwargs): - super(InquiryValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation_py3.py deleted file mode 100644 index 149ecb872812..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/inquiry_validation_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InquiryValidation(Model): - """Validation for inquired protectable items under a given container. - - :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 - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__(self, *, status: str=None, error_detail=None, **kwargs) -> None: - super(InquiryValidation, self).__init__(**kwargs) - self.status = status - self.error_detail = error_detail diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target.py deleted file mode 100644 index 353ed474bbc1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InstantItemRecoveryTarget(Model): - """Target details for file / folder restore. - - :param client_scripts: List of client scripts. - :type client_scripts: - list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__(self, **kwargs): - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = kwargs.get('client_scripts', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target_py3.py deleted file mode 100644 index 096ccb322e2a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/instant_item_recovery_target_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class InstantItemRecoveryTarget(Model): - """Target details for file / folder restore. - - :param client_scripts: List of client scripts. - :type client_scripts: - list[~azure.mgmt.recoveryservicesbackup.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__(self, *, client_scripts=None, **kwargs) -> None: - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = client_scripts diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job.py deleted file mode 100644 index 8f92979c163f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Job(Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, - MabJob - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} - } - - def __init__(self, **kwargs): - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = kwargs.get('entity_friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.activity_id = kwargs.get('activity_id', None) - self.job_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_py3.py deleted file mode 100644 index 2b826769010e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Job(Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, - MabJob - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, **kwargs) -> None: - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = entity_friendly_name - self.backup_management_type = backup_management_type - self.operation = operation - self.status = status - self.start_time = start_time - self.end_time = end_time - self.activity_id = activity_id - self.job_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object.py deleted file mode 100644 index 74b19daede24..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobQueryObject(Model): - """Filters to list the jobs. - - :param status: Status of the job. Possible values include: 'Invalid', - 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', - 'Cancelling' - :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus - :param backup_management_type: Type of backup management for the job. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: Type of operation. Possible values include: 'Invalid', - 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData' - :type operation: str or - ~azure.mgmt.recoveryservicesbackup.models.JobOperationType - :param job_id: JobID represents the job uniquely. - :type job_id: str - :param start_time: Job has started at this time. Value is in UTC. - :type start_time: datetime - :param end_time: Job has ended at this time. Value is in UTC. - :type end_time: datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(JobQueryObject, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.job_id = kwargs.get('job_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object_py3.py deleted file mode 100644 index c71e9b0fb100..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_query_object_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class JobQueryObject(Model): - """Filters to list the jobs. - - :param status: Status of the job. Possible values include: 'Invalid', - 'InProgress', 'Completed', 'Failed', 'CompletedWithWarnings', 'Cancelled', - 'Cancelling' - :type status: str or ~azure.mgmt.recoveryservicesbackup.models.JobStatus - :param backup_management_type: Type of backup management for the job. - Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: Type of operation. Possible values include: 'Invalid', - 'Register', 'UnRegister', 'ConfigureBackup', 'Backup', 'Restore', - 'DisableBackup', 'DeleteBackupData' - :type operation: str or - ~azure.mgmt.recoveryservicesbackup.models.JobOperationType - :param job_id: JobID represents the job uniquely. - :type job_id: str - :param start_time: Job has started at this time. Value is in UTC. - :type start_time: datetime - :param end_time: Job has ended at this time. Value is in UTC. - :type end_time: datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, status=None, backup_management_type=None, operation=None, job_id: str=None, start_time=None, end_time=None, **kwargs) -> None: - super(JobQueryObject, self).__init__(**kwargs) - self.status = status - self.backup_management_type = backup_management_type - self.operation = operation - self.job_id = job_id - self.start_time = start_time - self.end_time = end_time diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource.py deleted file mode 100644 index b66dadbeb2da..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: JobResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__(self, **kwargs): - super(JobResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_paged.py deleted file mode 100644 index 5654bb5b6874..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_py3.py deleted file mode 100644 index 844c8775d27e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/job_resource_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: JobResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.Job - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(JobResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details.py deleted file mode 100644 index 7497bcb8c2a8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KEKDetails(Model): - """KEK is encryption key for BEK. - - :param key_url: Key is KEK. - :type key_url: str - :param key_vault_id: Key Vault ID where this Key is stored. - :type key_vault_id: str - :param key_backup_data: KEK data. - :type key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KEKDetails, self).__init__(**kwargs) - self.key_url = kwargs.get('key_url', None) - self.key_vault_id = kwargs.get('key_vault_id', None) - self.key_backup_data = kwargs.get('key_backup_data', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details_py3.py deleted file mode 100644 index 0dc4ab746c3b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/kek_details_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KEKDetails(Model): - """KEK is encryption key for BEK. - - :param key_url: Key is KEK. - :type key_url: str - :param key_vault_id: Key Vault ID where this Key is stored. - :type key_vault_id: str - :param key_backup_data: KEK data. - :type key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__(self, *, key_url: str=None, key_vault_id: str=None, key_backup_data: str=None, **kwargs) -> None: - super(KEKDetails, self).__init__(**kwargs) - self.key_url = key_url - self.key_vault_id = key_vault_id - self.key_backup_data = key_backup_data diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py deleted file mode 100644 index 48f0b4270830..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KeyAndSecretDetails(Model): - """BEK is bitlocker key. - KEK is encryption key for BEK - If the VM was encrypted then we will store following details : - 1. Secret(BEK) - Url + Backup Data + vaultId. - 2. Key(KEK) - Url + Backup Data + vaultId. - 3. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :param kek_details: KEK is encryption key for BEK. - :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails - :param bek_details: BEK is bitlocker encryption key. - :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails - :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ - DoublePass - :type encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kwargs.get('kek_details', None) - self.bek_details = kwargs.get('bek_details', None) - self.encryption_mechanism = kwargs.get('encryption_mechanism', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py deleted file mode 100644 index 33d587fb4857..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KeyAndSecretDetails(Model): - """BEK is bitlocker key. - KEK is encryption key for BEK - If the VM was encrypted then we will store following details : - 1. Secret(BEK) - Url + Backup Data + vaultId. - 2. Key(KEK) - Url + Backup Data + vaultId. - 3. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :param kek_details: KEK is encryption key for BEK. - :type kek_details: ~azure.mgmt.recoveryservicesbackup.models.KEKDetails - :param bek_details: BEK is bitlocker encryption key. - :type bek_details: ~azure.mgmt.recoveryservicesbackup.models.BEKDetails - :param encryption_mechanism: Encryption mechanism: None/ SinglePass/ - DoublePass - :type encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__(self, *, kek_details=None, bek_details=None, encryption_mechanism: str=None, **kwargs) -> None: - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kek_details - self.bek_details = bek_details - self.encryption_mechanism = encryption_mechanism diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy.py deleted file mode 100644 index f5ccd6e0544c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy import SchedulePolicy - - -class LogSchedulePolicy(SchedulePolicy): - """Log policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_frequency_in_mins: Frequency of the log schedule operation - of this policy in minutes. - :type schedule_frequency_in_mins: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(LogSchedulePolicy, self).__init__(**kwargs) - self.schedule_frequency_in_mins = kwargs.get('schedule_frequency_in_mins', None) - self.schedule_policy_type = 'LogSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy_py3.py deleted file mode 100644 index 19495f52c8db..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/log_schedule_policy_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy_py3 import SchedulePolicy - - -class LogSchedulePolicy(SchedulePolicy): - """Log policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_frequency_in_mins: Frequency of the log schedule operation - of this policy in minutes. - :type schedule_frequency_in_mins: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, - } - - def __init__(self, *, schedule_frequency_in_mins: int=None, **kwargs) -> None: - super(LogSchedulePolicy, self).__init__(**kwargs) - self.schedule_frequency_in_mins = schedule_frequency_in_mins - self.schedule_policy_type = 'LogSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy.py deleted file mode 100644 index 9d7a905f80d7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .retention_policy import RetentionPolicy - - -class LongTermRetentionPolicy(RetentionPolicy): - """Long term retention policy. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param daily_schedule: Daily retention schedule of the protection policy. - :type daily_schedule: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule - :param weekly_schedule: Weekly retention schedule of the protection - policy. - :type weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule - :param monthly_schedule: Monthly retention schedule of the protection - policy. - :type monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule - :param yearly_schedule: Yearly retention schedule of the protection - policy. - :type yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, - 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, - 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, - 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, - } - - def __init__(self, **kwargs): - super(LongTermRetentionPolicy, self).__init__(**kwargs) - self.daily_schedule = kwargs.get('daily_schedule', None) - self.weekly_schedule = kwargs.get('weekly_schedule', None) - self.monthly_schedule = kwargs.get('monthly_schedule', None) - self.yearly_schedule = kwargs.get('yearly_schedule', None) - self.retention_policy_type = 'LongTermRetentionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy_py3.py deleted file mode 100644 index d153eac6bd20..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_retention_policy_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .retention_policy_py3 import RetentionPolicy - - -class LongTermRetentionPolicy(RetentionPolicy): - """Long term retention policy. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param daily_schedule: Daily retention schedule of the protection policy. - :type daily_schedule: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionSchedule - :param weekly_schedule: Weekly retention schedule of the protection - policy. - :type weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionSchedule - :param monthly_schedule: Monthly retention schedule of the protection - policy. - :type monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.MonthlyRetentionSchedule - :param yearly_schedule: Yearly retention schedule of the protection - policy. - :type yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.models.YearlyRetentionSchedule - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, - 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, - 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, - 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, - } - - def __init__(self, *, daily_schedule=None, weekly_schedule=None, monthly_schedule=None, yearly_schedule=None, **kwargs) -> None: - super(LongTermRetentionPolicy, self).__init__(**kwargs) - self.daily_schedule = daily_schedule - self.weekly_schedule = weekly_schedule - self.monthly_schedule = monthly_schedule - self.yearly_schedule = yearly_schedule - self.retention_policy_type = 'LongTermRetentionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy.py deleted file mode 100644 index b288abafc000..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy import SchedulePolicy - - -class LongTermSchedulePolicy(SchedulePolicy): - """Long term policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LongTermSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LongTermSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy_py3.py deleted file mode 100644 index af275e0ccf3d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/long_term_schedule_policy_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy_py3 import SchedulePolicy - - -class LongTermSchedulePolicy(SchedulePolicy): - """Long term policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(LongTermSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LongTermSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py deleted file mode 100644 index 85408bfd53d7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container import ProtectionContainer - - -class MabContainer(ProtectionContainer): - """Container with items backed up using MAB backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Can the container be registered one more time. - :type can_re_register: bool - :param container_id: ContainerID represents the container. - :type container_id: long - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - :param agent_version: Agent version of this container. - :type agent_version: str - :param extended_info: Additional information for this container - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo - :param mab_container_health_details: Health details on this mab container. - :type mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] - :param container_health_state: Health state of mab container. - :type container_health_state: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'long'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, - 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, - 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabContainer, self).__init__(**kwargs) - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.agent_version = kwargs.get('agent_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.mab_container_health_details = kwargs.get('mab_container_health_details', None) - self.container_health_state = kwargs.get('container_health_state', None) - self.container_type = 'Windows' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py deleted file mode 100644 index ea7ea63369ab..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabContainerExtendedInfo(Model): - """Additional information of the container. - - :param last_refreshed_at: Time stamp when this container was refreshed. - :type last_refreshed_at: datetime - :param backup_item_type: Type of backup items associated with this - container. Possible values include: 'Invalid', 'VM', 'FileFolder', - 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupItemType - :param backup_items: List of backup items associated with this container. - :type backup_items: list[str] - :param policy_name: Backup policy associated with this container. - :type policy_name: str - :param last_backup_status: Latest backup status of this container. - :type last_backup_status: str - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, - 'backup_items': {'key': 'backupItems', 'type': '[str]'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.backup_item_type = kwargs.get('backup_item_type', None) - self.backup_items = kwargs.get('backup_items', None) - self.policy_name = kwargs.get('policy_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py deleted file mode 100644 index 44bbafd9115f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabContainerExtendedInfo(Model): - """Additional information of the container. - - :param last_refreshed_at: Time stamp when this container was refreshed. - :type last_refreshed_at: datetime - :param backup_item_type: Type of backup items associated with this - container. Possible values include: 'Invalid', 'VM', 'FileFolder', - 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupItemType - :param backup_items: List of backup items associated with this container. - :type backup_items: list[str] - :param policy_name: Backup policy associated with this container. - :type policy_name: str - :param last_backup_status: Latest backup status of this container. - :type last_backup_status: str - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, - 'backup_items': {'key': 'backupItems', 'type': '[str]'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - } - - def __init__(self, *, last_refreshed_at=None, backup_item_type=None, backup_items=None, policy_name: str=None, last_backup_status: str=None, **kwargs) -> None: - super(MabContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at - self.backup_item_type = backup_item_type - self.backup_items = backup_items - self.policy_name = policy_name - self.last_backup_status = last_backup_status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details.py deleted file mode 100644 index 854c2d790cf5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MABContainerHealthDetails(Model): - """MAB 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] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MABContainerHealthDetails, 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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details_py3.py deleted file mode 100644 index 1acdd3eca91b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_health_details_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MABContainerHealthDetails(Model): - """MAB 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] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, code: int=None, title: str=None, message: str=None, recommendations=None, **kwargs) -> None: - super(MABContainerHealthDetails, self).__init__(**kwargs) - self.code = code - self.title = title - self.message = message - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py deleted file mode 100644 index 32f5ebd0ea50..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_container_py3 import ProtectionContainer - - -class MabContainer(ProtectionContainer): - """Container with items backed up using MAB backup engine. - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - :param can_re_register: Can the container be registered one more time. - :type can_re_register: bool - :param container_id: ContainerID represents the container. - :type container_id: long - :param protected_item_count: Number of items backed up in this container. - :type protected_item_count: long - :param agent_version: Agent version of this container. - :type agent_version: str - :param extended_info: Additional information for this container - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabContainerExtendedInfo - :param mab_container_health_details: Health details on this mab container. - :type mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.models.MABContainerHealthDetails] - :param container_health_state: Health state of mab container. - :type container_health_state: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'long'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, - 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, - 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, can_re_register: bool=None, container_id: int=None, protected_item_count: int=None, agent_version: str=None, extended_info=None, mab_container_health_details=None, container_health_state: str=None, **kwargs) -> None: - super(MabContainer, self).__init__(friendly_name=friendly_name, backup_management_type=backup_management_type, registration_status=registration_status, health_status=health_status, **kwargs) - self.can_re_register = can_re_register - self.container_id = container_id - self.protected_item_count = protected_item_count - self.agent_version = agent_version - self.extended_info = extended_info - self.mab_container_health_details = mab_container_health_details - self.container_health_state = container_health_state - self.container_type = 'Windows' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info.py deleted file mode 100644 index 9ef4846087a4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info_py3.py deleted file mode 100644 index 89a026089da1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -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] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__(self, *, error_string: str=None, recommendations=None, **kwargs) -> None: - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = error_string - self.recommendations = recommendations diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py deleted file mode 100644 index a302f6a11b7d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item import ProtectedItem - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of this backup item. - :type friendly_name: str - :param computer_name: Name of the computer associated with this backup - item. - :type computer_name: str - :param last_backup_status: Status of last backup operation. - :type last_backup_status: str - :param protection_state: Protected, ProtectionStopped, IRPending or - ProtectionError - :type protection_state: str - :param is_scheduled_for_deferred_delete: Specifies if the item is - scheduled for deferred deletion. - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. - :type deferred_delete_sync_time_in_utc: long - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(MabFileFolderProtectedItem, self).__init__(**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.protection_state = kwargs.get('protection_state', None) - self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', 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) - self.protected_item_type = 'MabFileFolderProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info.py deleted file mode 100644 index 9b5dbe440819..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabFileFolderProtectedItemExtendedInfo(Model): - """Additional information on the backed up item. - - :param last_refreshed_at: Last time when the agent data synced to service. - :type last_refreshed_at: datetime - :param oldest_recovery_point: The oldest backup copy available. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies associated with the - backup item. - :type recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info_py3.py deleted file mode 100644 index 246830841cfe..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_extended_info_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabFileFolderProtectedItemExtendedInfo(Model): - """Additional information on the backed up item. - - :param last_refreshed_at: Last time when the agent data synced to service. - :type last_refreshed_at: datetime - :param oldest_recovery_point: The oldest backup copy available. - :type oldest_recovery_point: datetime - :param recovery_point_count: Number of backup copies associated with the - backup item. - :type recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__(self, *, last_refreshed_at=None, oldest_recovery_point=None, recovery_point_count: int=None, **kwargs) -> None: - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = last_refreshed_at - self.oldest_recovery_point = oldest_recovery_point - self.recovery_point_count = recovery_point_count diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py deleted file mode 100644 index fa7e06b94f75..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protected_item_py3 import ProtectedItem - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - :param friendly_name: Friendly name of this backup item. - :type friendly_name: str - :param computer_name: Name of the computer associated with this backup - item. - :type computer_name: str - :param last_backup_status: Status of last backup operation. - :type last_backup_status: str - :param protection_state: Protected, ProtectionStopped, IRPending or - ProtectionError - :type protection_state: str - :param is_scheduled_for_deferred_delete: Specifies if the item is - scheduled for deferred deletion. - :type is_scheduled_for_deferred_delete: bool - :param deferred_delete_sync_time_in_utc: Sync time for deferred deletion. - :type deferred_delete_sync_time_in_utc: long - :param extended_info: Additional information with this backup item. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'is_scheduled_for_deferred_delete': {'key': 'isScheduledForDeferredDelete', 'type': 'bool'}, - '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, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, protection_state: str=None, is_scheduled_for_deferred_delete: bool=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, **kwargs) - self.friendly_name = friendly_name - self.computer_name = computer_name - self.last_backup_status = last_backup_status - self.protection_state = protection_state - self.is_scheduled_for_deferred_delete = is_scheduled_for_deferred_delete - self.deferred_delete_sync_time_in_utc = deferred_delete_sync_time_in_utc - self.extended_info = extended_info - self.protected_item_type = 'MabFileFolderProtectedItem' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py deleted file mode 100644 index e2abececb659..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job import Job - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time taken by job to run. - :type duration: timedelta - :param actions_info: The state/actions applicable on jobs like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param mab_server_name: Name of server protecting the DS. - :type mab_server_name: str - :param mab_server_type: Server type of MAB container. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.models.MabServerType - :param workload_type: Workload type of backup item. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] - :param extended_info: Additional information on the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(MabJob, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.mab_server_name = kwargs.get('mab_server_name', None) - self.mab_server_type = kwargs.get('mab_server_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - self.job_type = 'MabJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info.py deleted file mode 100644 index a0bec3fdf6c3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabJobExtendedInfo(Model): - """Additional information for the MAB workload-specific job. - - :param tasks_list: List of tasks for this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message specific to this - job. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info_py3.py deleted file mode 100644 index 33b4c436af78..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabJobExtendedInfo(Model): - """Additional information for the MAB workload-specific job. - - :param tasks_list: List of tasks for this job. - :type tasks_list: - list[~azure.mgmt.recoveryservicesbackup.models.MabJobTaskDetails] - :param property_bag: The job properties. - :type property_bag: dict[str, str] - :param dynamic_error_message: Non localized error message specific to this - job. - :type dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__(self, *, tasks_list=None, property_bag=None, dynamic_error_message: str=None, **kwargs) -> None: - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = tasks_list - self.property_bag = property_bag - self.dynamic_error_message = dynamic_error_message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py deleted file mode 100644 index 236e171484fc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .job_py3 import Job - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :param entity_friendly_name: Friendly name of the entity on which the - current job is executing. - :type entity_friendly_name: str - :param backup_management_type: Backup management type to execute the - current job. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param operation: The operation name. - :type operation: str - :param status: Job status. - :type status: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param activity_id: ActivityId of job. - :type activity_id: str - :param job_type: Required. Constant filled by server. - :type job_type: str - :param duration: Time taken by job to run. - :type duration: timedelta - :param actions_info: The state/actions applicable on jobs like - cancel/retry. - :type actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.models.JobSupportedAction] - :param mab_server_name: Name of server protecting the DS. - :type mab_server_name: str - :param mab_server_type: Server type of MAB container. Possible values - include: 'Invalid', 'Unknown', 'IaasVMContainer', - 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', - 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' - :type mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.models.MabServerType - :param workload_type: Workload type of backup item. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - :param error_details: The errors. - :type error_details: - list[~azure.mgmt.recoveryservicesbackup.models.MabErrorInfo] - :param extended_info: Additional information on the job. - :type extended_info: - ~azure.mgmt.recoveryservicesbackup.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[JobSupportedAction]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__(self, *, entity_friendly_name: str=None, backup_management_type=None, operation: str=None, status: str=None, start_time=None, end_time=None, activity_id: str=None, duration=None, actions_info=None, mab_server_name: str=None, mab_server_type=None, workload_type=None, error_details=None, extended_info=None, **kwargs) -> None: - super(MabJob, self).__init__(entity_friendly_name=entity_friendly_name, backup_management_type=backup_management_type, operation=operation, status=status, start_time=start_time, end_time=end_time, activity_id=activity_id, **kwargs) - self.duration = duration - self.actions_info = actions_info - self.mab_server_name = mab_server_name - self.mab_server_type = mab_server_type - self.workload_type = workload_type - self.error_details = error_details - self.extended_info = extended_info - self.job_type = 'MabJob' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details.py deleted file mode 100644 index 4bdd129d8932..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabJobTaskDetails(Model): - """MAB workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details_py3.py deleted file mode 100644 index da73da96a7f0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_task_details_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MabJobTaskDetails(Model): - """MAB workload-specific job task details. - - :param task_id: The task display name. - :type task_id: str - :param start_time: The start time. - :type start_time: datetime - :param end_time: The end time. - :type end_time: datetime - :param duration: Time elapsed for task. - :type duration: timedelta - :param status: The status. - :type status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, *, task_id: str=None, start_time=None, end_time=None, duration=None, status: str=None, **kwargs) -> None: - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = task_id - self.start_time = start_time - self.end_time = end_time - self.duration = duration - self.status = status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy.py deleted file mode 100644 index f44ea6e7311a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy import ProtectionPolicy - - -class MabProtectionPolicy(ProtectionPolicy): - """Mab container-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule of backup policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(MabProtectionPolicy, self).__init__(**kwargs) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.backup_management_type = 'MAB' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy_py3.py deleted file mode 100644 index e5ef4e29d7b5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_protection_policy_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .protection_policy_py3 import ProtectionPolicy - - -class MabProtectionPolicy(ProtectionPolicy): - """Mab container-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - :param schedule_policy: Backup schedule of backup policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy details. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: - super(MabProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy - self.backup_management_type = 'MAB' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule.py deleted file mode 100644 index 27a68660d1f9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MonthlyRetentionSchedule(Model): - """Monthly retention schedule. - - :param retention_schedule_format_type: Retention schedule format type for - monthly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param retention_schedule_daily: Daily retention format for monthly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for monthly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(MonthlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule_py3.py deleted file mode 100644 index 0f76a43c6d4c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/monthly_retention_schedule_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MonthlyRetentionSchedule(Model): - """Monthly retention schedule. - - :param retention_schedule_format_type: Retention schedule format type for - monthly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param retention_schedule_daily: Daily retention format for monthly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for monthly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_schedule_format_type=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(MonthlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = retention_schedule_format_type - self.retention_schedule_daily = retention_schedule_daily - self.retention_schedule_weekly = retention_schedule_weekly - self.retention_times = retention_times - self.retention_duration = retention_duration diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info.py deleted file mode 100644 index fe124296d77a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NameInfo(Model): - """The name of usage. - - :param value: Value of usage. - :type value: str - :param localized_value: Localized value of usage. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameInfo, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.localized_value = kwargs.get('localized_value', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info_py3.py deleted file mode 100644 index 92ebeac4e05f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/name_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class NameInfo(Model): - """The name of usage. - - :param value: Value of usage. - :type value: str - :param localized_value: Localized value of usage. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: - super(NameInfo, self).__init__(**kwargs) - self.value = value - self.localized_value = localized_value diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info.py deleted file mode 100644 index d8ef467de12e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_result_info_base import OperationResultInfoBase - - -class OperationResultInfo(OperationResultInfoBase): - """Operation result info. - - 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 job_list: List of jobs created by this operation. - :type job_list: list[str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_list': {'key': 'jobList', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(OperationResultInfo, self).__init__(**kwargs) - self.job_list = kwargs.get('job_list', None) - self.object_type = 'OperationResultInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base.py deleted file mode 100644 index ce015a5df5b2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResultInfoBase(Model): - """Base class for operation result info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo - - 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': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} - } - - def __init__(self, **kwargs): - super(OperationResultInfoBase, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_py3.py deleted file mode 100644 index e39b4b30edf3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResultInfoBase(Model): - """Base class for operation result info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo - - 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': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} - } - - def __init__(self, **kwargs) -> None: - super(OperationResultInfoBase, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource.py deleted file mode 100644 index 8c5aa269a2dc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_worker_response import OperationWorkerResponse - - -class OperationResultInfoBaseResource(OperationWorkerResponse): - """Base class for operation result info. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - :param operation: OperationResultInfoBaseResource operation - :type operation: - ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, - } - - def __init__(self, **kwargs): - super(OperationResultInfoBaseResource, self).__init__(**kwargs) - self.operation = kwargs.get('operation', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource_py3.py deleted file mode 100644 index e784f7d5884a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_base_resource_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_worker_response_py3 import OperationWorkerResponse - - -class OperationResultInfoBaseResource(OperationWorkerResponse): - """Base class for operation result info. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - :param operation: OperationResultInfoBaseResource operation - :type operation: - ~azure.mgmt.recoveryservicesbackup.models.OperationResultInfoBase - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, - } - - def __init__(self, *, status_code=None, headers=None, operation=None, **kwargs) -> None: - super(OperationResultInfoBaseResource, self).__init__(status_code=status_code, headers=headers, **kwargs) - self.operation = operation diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_py3.py deleted file mode 100644 index 28273a8f3a78..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_result_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_result_info_base_py3 import OperationResultInfoBase - - -class OperationResultInfo(OperationResultInfoBase): - """Operation result info. - - 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 job_list: List of jobs created by this operation. - :type job_list: list[str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_list': {'key': 'jobList', 'type': '[str]'}, - } - - def __init__(self, *, job_list=None, **kwargs) -> None: - super(OperationResultInfo, self).__init__(**kwargs) - self.job_list = job_list - self.object_type = 'OperationResultInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status.py deleted file mode 100644 index e57e8b6be760..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatus(Model): - """Operation status. - - :param id: ID of the operation. - :type id: str - :param name: Name of the operation. - :type name: str - :param status: Operation status. Possible values include: 'Invalid', - 'InProgress', 'Succeeded', 'Failed', 'Canceled' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues - :param start_time: Operation start time. Format: ISO-8601. - :type start_time: datetime - :param end_time: Operation end time. Format: ISO-8601. - :type end_time: datetime - :param error: Error information related to this operation. - :type error: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError - :param properties: Additional information associated with this operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__(self, **kwargs): - super(OperationStatus, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error.py deleted file mode 100644 index a7414e3400c6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatusError(Model): - """Error information associated with operation status call. - - :param code: Error code of the operation failure. - :type code: str - :param message: Error message displayed if the operation failure. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error_py3.py deleted file mode 100644 index 982a7c177867..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_error_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatusError(Model): - """Error information associated with operation status call. - - :param code: Error code of the operation failure. - :type code: str - :param message: Error message displayed if the operation failure. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(OperationStatusError, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info.py deleted file mode 100644 index f89804223cd0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatusExtendedInfo(Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo - - 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': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} - } - - def __init__(self, **kwargs): - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info_py3.py deleted file mode 100644 index 166aab47470d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_extended_info_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatusExtendedInfo(Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo - - 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': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} - } - - def __init__(self, **kwargs) -> None: - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info.py deleted file mode 100644 index 5357cae92e03..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info import OperationStatusExtendedInfo - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - 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 job_id: ID of the job created for this protected item. - :type job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.job_id = kwargs.get('job_id', None) - self.object_type = 'OperationStatusJobExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info_py3.py deleted file mode 100644 index a64796ae4fd3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_job_extended_info_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info_py3 import OperationStatusExtendedInfo - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - 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 job_id: ID of the job created for this protected item. - :type job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__(self, *, job_id: str=None, **kwargs) -> None: - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.job_id = job_id - self.object_type = 'OperationStatusJobExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info.py deleted file mode 100644 index a28b6b8690ba..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info import OperationStatusExtendedInfo - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - 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 job_ids: IDs of the jobs created for the protected item. - :type job_ids: list[str] - :param failed_jobs_error: Stores all the failed jobs along with the - corresponding error codes. - :type failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.job_ids = kwargs.get('job_ids', None) - self.failed_jobs_error = kwargs.get('failed_jobs_error', None) - self.object_type = 'OperationStatusJobsExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info_py3.py deleted file mode 100644 index afa2cc0a4bbb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_jobs_extended_info_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info_py3 import OperationStatusExtendedInfo - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - 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 job_ids: IDs of the jobs created for the protected item. - :type job_ids: list[str] - :param failed_jobs_error: Stores all the failed jobs along with the - corresponding error codes. - :type failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__(self, *, job_ids=None, failed_jobs_error=None, **kwargs) -> None: - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.job_ids = job_ids - self.failed_jobs_error = failed_jobs_error - self.object_type = 'OperationStatusJobsExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info.py deleted file mode 100644 index 3a18cc08753b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info import OperationStatusExtendedInfo - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision action. - - 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_target: Target details for file / folder restore. - :type recovery_target: - ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__(self, **kwargs): - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.recovery_target = kwargs.get('recovery_target', None) - self.object_type = 'OperationStatusProvisionILRExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info_py3.py deleted file mode 100644 index 8f6b4e9c6552..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_provision_ilr_extended_info_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .operation_status_extended_info_py3 import OperationStatusExtendedInfo - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision action. - - 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_target: Target details for file / folder restore. - :type recovery_target: - ~azure.mgmt.recoveryservicesbackup.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__(self, *, recovery_target=None, **kwargs) -> None: - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.recovery_target = recovery_target - self.object_type = 'OperationStatusProvisionILRExtendedInfo' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_py3.py deleted file mode 100644 index 8c8891c2ac3a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_status_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationStatus(Model): - """Operation status. - - :param id: ID of the operation. - :type id: str - :param name: Name of the operation. - :type name: str - :param status: Operation status. Possible values include: 'Invalid', - 'InProgress', 'Succeeded', 'Failed', 'Canceled' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusValues - :param start_time: Operation start time. Format: ISO-8601. - :type start_time: datetime - :param end_time: Operation end time. Format: ISO-8601. - :type end_time: datetime - :param error: Error information related to this operation. - :type error: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusError - :param properties: Additional information associated with this operation. - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__(self, *, id: str=None, name: str=None, status=None, start_time=None, end_time=None, error=None, properties=None, **kwargs) -> None: - super(OperationStatus, self).__init__(**kwargs) - self.id = id - self.name = name - self.status = status - self.start_time = start_time - self.end_time = end_time - self.error = error - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response.py deleted file mode 100644 index 8ac66d5c1115..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationWorkerResponse(Model): - """This is the base class for operation result responses. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - } - - def __init__(self, **kwargs): - super(OperationWorkerResponse, self).__init__(**kwargs) - self.status_code = kwargs.get('status_code', None) - self.headers = kwargs.get('headers', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response_py3.py deleted file mode 100644 index 018ac4341bca..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/operation_worker_response_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationWorkerResponse(Model): - """This is the base class for operation result responses. - - :param status_code: HTTP Status Code of the operation. Possible values - include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', - 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', - 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', - 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', - 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', - 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', - 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', - 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', - 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', - 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', - 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', - 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', - 'HttpVersionNotSupported' - :type status_code: str or - ~azure.mgmt.recoveryservicesbackup.models.HttpStatusCode - :param headers: HTTP headers associated with this operation. - :type headers: dict[str, list[str]] - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'HttpStatusCode'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - } - - def __init__(self, *, status_code=None, headers=None, **kwargs) -> None: - super(OperationWorkerResponse, self).__init__(**kwargs) - self.status_code = status_code - self.headers = headers diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range.py deleted file mode 100644 index bbea884d6f6a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PointInTimeRange(Model): - """Provides details for log ranges. - - :param start_time: Start time of the time range for log recovery. - :type start_time: datetime - :param end_time: End time of the time range for log recovery. - :type end_time: datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range_py3.py deleted file mode 100644 index 1298a1590f57..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/point_in_time_range_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PointInTimeRange(Model): - """Provides details for log ranges. - - :param start_time: Start time of the time range for log recovery. - :type start_time: datetime - :param end_time: End time of the time range for log recovery. - :type end_time: datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, start_time=None, end_time=None, **kwargs) -> None: - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = start_time - self.end_time = end_time diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation.py deleted file mode 100644 index 4f0faa2b829b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreBackupValidation(Model): - """Pre-backup validation for Azure VM Workload provider. - - :param status: Status of protectable item, i.e. - InProgress,Succeeded,Failed. Possible values include: 'Invalid', - 'Success', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus - :param code: Error code of protectable item - :type code: str - :param message: Message corresponding to the error code for the - protectable item - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PreBackupValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation_py3.py deleted file mode 100644 index afa24b320665..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_backup_validation_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreBackupValidation(Model): - """Pre-backup validation for Azure VM Workload provider. - - :param status: Status of protectable item, i.e. - InProgress,Succeeded,Failed. Possible values include: 'Invalid', - 'Success', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.InquiryStatus - :param code: Error code of protectable item - :type code: str - :param message: Message corresponding to the error code for the - protectable item - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, status=None, code: str=None, message: str=None, **kwargs) -> None: - super(PreBackupValidation, self).__init__(**kwargs) - self.status = status - self.code = code - self.message = message diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py deleted file mode 100644 index 59ad5923808b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreValidateEnableBackupRequest(Model): - """Contract to validate if backup can be enabled on the given resource in a - given vault and given configuration. - It will validate followings - 1. Vault capacity - 2. VM is already protected - 3. Any VM related configuration passed in properties. - - :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare - etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~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 - :type vault_id: str - :param properties: Configuration of VM if any needs to be validated like - OS type etc - :type properties: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PreValidateEnableBackupRequest, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.resource_id = kwargs.get('resource_id', None) - self.vault_id = kwargs.get('vault_id', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py deleted file mode 100644 index afad06247efe..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreValidateEnableBackupRequest(Model): - """Contract to validate if backup can be enabled on the given resource in a - given vault and given configuration. - It will validate followings - 1. Vault capacity - 2. VM is already protected - 3. Any VM related configuration passed in properties. - - :param resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare - etc. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', - 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type resource_type: str or - ~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 - :type vault_id: str - :param properties: Configuration of VM if any needs to be validated like - OS type etc - :type properties: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'str'}, - } - - def __init__(self, *, resource_type=None, resource_id: str=None, vault_id: str=None, properties: str=None, **kwargs) -> None: - super(PreValidateEnableBackupRequest, self).__init__(**kwargs) - self.resource_type = resource_type - self.resource_id = resource_id - self.vault_id = vault_id - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response.py deleted file mode 100644 index d9525820efb3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreValidateEnableBackupResponse(Model): - """Response contract for enable backup validation request. - - :param status: Validation Status. Possible values include: 'Invalid', - 'Succeeded', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus - :param error_code: Response error code - :type error_code: str - :param error_message: Response error message - :type error_message: str - :param recommendation: Recommended action for user - :type recommendation: str - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - for portal - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;rgname;vmname. This is required for portal - :type protected_item_name: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'recommendation': {'key': 'recommendation', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PreValidateEnableBackupResponse, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.recommendation = kwargs.get('recommendation', None) - self.container_name = kwargs.get('container_name', None) - self.protected_item_name = kwargs.get('protected_item_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response_py3.py deleted file mode 100644 index 832175e31d79..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_response_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PreValidateEnableBackupResponse(Model): - """Response contract for enable backup validation request. - - :param status: Validation Status. Possible values include: 'Invalid', - 'Succeeded', 'Failed' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.ValidationStatus - :param error_code: Response error code - :type error_code: str - :param error_message: Response error message - :type error_message: str - :param recommendation: Recommended action for user - :type recommendation: str - :param container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - for portal - :type container_name: str - :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;rgname;vmname. This is required for portal - :type protected_item_name: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'recommendation': {'key': 'recommendation', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - } - - def __init__(self, *, status=None, error_code: str=None, error_message: str=None, recommendation: str=None, container_name: str=None, protected_item_name: str=None, **kwargs) -> None: - super(PreValidateEnableBackupResponse, self).__init__(**kwargs) - self.status = status - self.error_code = error_code - self.error_message = error_message - self.recommendation = recommendation - self.container_name = container_name - self.protected_item_name = protected_item_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container.py deleted file mode 100644 index 481384a07938..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectableContainer(Model): - """Protectable Container Class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureStorageProtectableContainer, - AzureVMAppContainerProtectableContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} - } - - def __init__(self, **kwargs): - super(ProtectableContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.health_status = kwargs.get('health_status', None) - self.container_id = kwargs.get('container_id', None) - self.protectable_container_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_py3.py deleted file mode 100644 index 050d9d2ba230..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectableContainer(Model): - """Protectable Container Class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureStorageProtectableContainer, - AzureVMAppContainerProtectableContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param health_status: Status of health of the container. - :type health_status: str - :param container_id: Fabric Id of the container such as ARM Id. - :type container_id: str - :param protectable_container_type: Required. Constant filled by server. - :type protectable_container_type: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, health_status: str=None, container_id: str=None, **kwargs) -> None: - super(ProtectableContainer, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.health_status = health_status - self.container_id = container_id - self.protectable_container_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource.py deleted file mode 100644 index 383e12d15ddc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProtectableContainerResource(Resource): - """Protectable Container Class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectableContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, - } - - def __init__(self, **kwargs): - super(ProtectableContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_paged.py deleted file mode 100644 index a02dfe9b0496..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProtectableContainerResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectableContainerResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectableContainerResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectableContainerResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_py3.py deleted file mode 100644 index e24aa5568a44..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protectable_container_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProtectableContainerResource(Resource): - """Protectable Container Class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectableContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectableContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py deleted file mode 100644 index 1127fee72ea7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectedItem(Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, - GenericProtectedItem, MabFileFolderProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} - } - - def __init__(self, **kwargs): - super(ProtectedItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.last_recovery_point = kwargs.get('last_recovery_point', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - self.create_mode = kwargs.get('create_mode', None) - self.protected_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py deleted file mode 100644 index 953fdc9f15fe..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectedItem(Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, - GenericProtectedItem, MabFileFolderProtectedItem - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param workload_type: Type of workload this item represents. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param container_name: Unique name of container - :type container_name: str - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param last_recovery_point: Timestamp when the last (latest) backup copy - was created for this backup item. - :type last_recovery_point: datetime - :param backup_set_name: Name of the backup set the backup item belongs to - :type backup_set_name: str - :param create_mode: Create mode to indicate recovery of existing soft - deleted data source or creation of new data source. Possible values - include: 'Invalid', 'Default', 'Recover' - :type create_mode: str or - ~azure.mgmt.recoveryservicesbackup.models.CreateMode - :param protected_item_type: Required. Constant filled by server. - :type protected_item_type: str - """ - - _validation = { - 'protected_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'last_recovery_point': {'key': 'lastRecoveryPoint', 'type': 'iso-8601'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - 'create_mode': {'key': 'createMode', 'type': 'str'}, - 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} - } - - 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, **kwargs) -> None: - super(ProtectedItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.container_name = container_name - self.source_resource_id = source_resource_id - self.policy_id = policy_id - self.last_recovery_point = last_recovery_point - self.backup_set_name = backup_set_name - self.create_mode = create_mode - self.protected_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py deleted file mode 100644 index d695e3d42589..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param health_state: Health State for the backed up item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_state: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthState - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param policy_name: Backup policy name associated with the backup item. - :type policy_name: str - :param container_name: Name of the container. - :type container_name: str - :param backup_engine_name: Backup Engine name - :type backup_engine_name: str - :param friendly_name: Friendly name of protected item - :type friendly_name: str - :param fabric_name: Name of the fabric. - :type fabric_name: str - :param backup_set_name: Name of the backup set. - :type backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = kwargs.get('health_state', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.policy_name = kwargs.get('policy_name', None) - self.container_name = kwargs.get('container_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_set_name = kwargs.get('backup_set_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py deleted file mode 100644 index 2e45b84d2b1b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectedItemQueryObject(Model): - """Filters to list backup items. - - :param health_state: Health State for the backed up item. Possible values - include: 'Passed', 'ActionRequired', 'ActionSuggested', 'Invalid' - :type health_state: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthState - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param policy_name: Backup policy name associated with the backup item. - :type policy_name: str - :param container_name: Name of the container. - :type container_name: str - :param backup_engine_name: Backup Engine name - :type backup_engine_name: str - :param friendly_name: Friendly name of protected item - :type friendly_name: str - :param fabric_name: Name of the fabric. - :type fabric_name: str - :param backup_set_name: Name of the backup set. - :type backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__(self, *, health_state=None, backup_management_type=None, item_type=None, policy_name: str=None, container_name: str=None, backup_engine_name: str=None, friendly_name: str=None, fabric_name: str=None, backup_set_name: str=None, **kwargs) -> None: - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = health_state - self.backup_management_type = backup_management_type - self.item_type = item_type - self.policy_name = policy_name - self.container_name = container_name - self.backup_engine_name = backup_engine_name - self.friendly_name = friendly_name - self.fabric_name = fabric_name - self.backup_set_name = backup_set_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource.py deleted file mode 100644 index 3f7dca67b95c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectedItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__(self, **kwargs): - super(ProtectedItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_paged.py deleted file mode 100644 index 273209d38e9c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProtectedItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectedItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectedItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectedItemResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_py3.py deleted file mode 100644 index 22de3391b49f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_resource_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectedItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.ProtectedItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectedItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py deleted file mode 100644 index d7022590f859..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionContainer(Model): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSqlContainer, AzureStorageContainer, - AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, - MabContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} - } - - def __init__(self, **kwargs): - super(ProtectionContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.health_status = kwargs.get('health_status', None) - self.container_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py deleted file mode 100644 index bbfb15cb9ca9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionContainer(Model): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSqlContainer, AzureStorageContainer, - AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, - MabContainer - - All required parameters must be populated in order to send to Azure. - - :param friendly_name: Friendly name of the container. - :type friendly_name: str - :param backup_management_type: Type of backup management for the - container. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', - 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param registration_status: Status of registration of the container with - the Recovery Services Vault. - :type registration_status: str - :param health_status: Status of health of the container. - :type health_status: str - :param container_type: Required. Constant filled by server. - :type container_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} - } - - def __init__(self, *, friendly_name: str=None, backup_management_type=None, registration_status: str=None, health_status: str=None, **kwargs) -> None: - super(ProtectionContainer, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.backup_management_type = backup_management_type - self.registration_status = registration_status - self.health_status = health_status - self.container_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource.py deleted file mode 100644 index 5029205928c2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, - } - - def __init__(self, **kwargs): - super(ProtectionContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_paged.py deleted file mode 100644 index d134f3c1bd0c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProtectionContainerResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionContainerResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionContainerResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionContainerResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_py3.py deleted file mode 100644 index e639bac8de5b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific - workloads are derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionContainerResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionContainerResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py deleted file mode 100644 index 6d953106c9c9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionIntent(Model): - """Base class for backup ProtectionIntent. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureRecoveryServiceVaultProtectionIntent, - AzureResourceProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} - } - - def __init__(self, **kwargs): - super(ProtectionIntent, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.item_id = kwargs.get('item_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.protection_intent_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py deleted file mode 100644 index 956b7ada74e8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionIntent(Model): - """Base class for backup ProtectionIntent. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureRecoveryServiceVaultProtectionIntent, - AzureResourceProtectionIntent - - All required parameters must be populated in order to send to Azure. - - :param backup_management_type: Type of backup management for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param source_resource_id: ARM ID of the resource to be backed up. - :type source_resource_id: str - :param item_id: ID of the item which is getting protected, In case of - Azure Vm , it is ProtectedItemId - :type item_id: str - :param policy_id: ID of the backup policy with which this item is backed - up. - :type policy_id: str - :param protection_state: Backup state of this backup item. Possible values - include: 'Invalid', 'NotProtected', 'Protecting', 'Protected', - 'ProtectionFailed' - :type protection_state: str or - ~azure.mgmt.recoveryservicesbackup.models.ProtectionStatus - :param protection_intent_item_type: Required. Constant filled by server. - :type protection_intent_item_type: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} - } - - def __init__(self, *, backup_management_type=None, source_resource_id: str=None, item_id: str=None, policy_id: str=None, protection_state=None, **kwargs) -> None: - super(ProtectionIntent, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.source_resource_id = source_resource_id - self.item_id = item_id - self.policy_id = policy_id - self.protection_state = protection_state - self.protection_intent_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object.py deleted file mode 100644 index c70412714d67..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionIntentQueryObject(Model): - """Filters to list protection intent. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.IntentItemType - :param parent_name: Parent name of the intent - :type parent_name: str - :param item_name: Item name of the intent - :type item_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'item_name': {'key': 'itemName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectionIntentQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.parent_name = kwargs.get('parent_name', None) - self.item_name = kwargs.get('item_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object_py3.py deleted file mode 100644 index c82789fd7f67..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_query_object_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionIntentQueryObject(Model): - """Filters to list protection intent. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param item_type: Type of workload this item represents. Possible values - include: 'Invalid', 'SQLInstance', 'SQLAvailabilityGroupContainer' - :type item_type: str or - ~azure.mgmt.recoveryservicesbackup.models.IntentItemType - :param parent_name: Parent name of the intent - :type parent_name: str - :param item_name: Item name of the intent - :type item_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'item_name': {'key': 'itemName', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, item_type=None, parent_name: str=None, item_name: str=None, **kwargs) -> None: - super(ProtectionIntentQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.item_type = item_type - self.parent_name = parent_name - self.item_name = item_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource.py deleted file mode 100644 index 359e90f255e7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProtectionIntentResource(Resource): - """Base class for backup ProtectionIntent. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionIntentResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, - } - - def __init__(self, **kwargs): - super(ProtectionIntentResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_paged.py deleted file mode 100644 index 1a2b461a70d1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProtectionIntentResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionIntentResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionIntentResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionIntentResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_py3.py deleted file mode 100644 index 96f0f8ff1395..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProtectionIntentResource(Resource): - """Base class for backup ProtectionIntent. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionIntentResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntent - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionIntentResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy.py deleted file mode 100644 index cfadd161a3b2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionPolicy(Model): - """Base class for backup policy. Workload-specific backup policies are derived - 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 - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} - } - - def __init__(self, **kwargs): - super(ProtectionPolicy, self).__init__(**kwargs) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.backup_management_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_py3.py deleted file mode 100644 index 961d40e9c0fb..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionPolicy(Model): - """Base class for backup policy. Workload-specific backup policies are derived - 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 - - All required parameters must be populated in order to send to Azure. - - :param protected_items_count: Number of items associated with this policy. - :type protected_items_count: int - :param backup_management_type: Required. Constant filled by server. - :type backup_management_type: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - _subtype_map = { - 'backup_management_type': {'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} - } - - def __init__(self, *, protected_items_count: int=None, **kwargs) -> None: - super(ProtectionPolicy, self).__init__(**kwargs) - self.protected_items_count = protected_items_count - self.backup_management_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py deleted file mode 100644 index 6a7c6c3f5217..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionPolicyQueryObject(Model): - """Filters the list backup policies API. - - :param backup_management_type: Backup management type for the backup - policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param workload_type: Workload type for the backup policy. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProtectionPolicyQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.workload_type = kwargs.get('workload_type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py deleted file mode 100644 index c3dc647580d7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProtectionPolicyQueryObject(Model): - """Filters the list backup policies API. - - :param backup_management_type: Backup management type for the backup - policy. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - :param fabric_name: Fabric name for filter - :type fabric_name: str - :param workload_type: Workload type for the backup policy. Possible values - include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', - 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - :type workload_type: str or - ~azure.mgmt.recoveryservicesbackup.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, fabric_name: str=None, workload_type=None, **kwargs) -> None: - super(ProtectionPolicyQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.fabric_name = fabric_name - self.workload_type = workload_type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource.py deleted file mode 100644 index b96d7201ed2a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProtectionPolicyResource(Resource): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionPolicyResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, - } - - def __init__(self, **kwargs): - super(ProtectionPolicyResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_paged.py deleted file mode 100644 index 40aa3451b7d8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProtectionPolicyResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`ProtectionPolicyResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ProtectionPolicyResource]'} - } - - def __init__(self, *args, **kwargs): - - super(ProtectionPolicyResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_py3.py deleted file mode 100644 index d21d01b75ab7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProtectionPolicyResource(Resource): - """Base class for backup policy. Workload-specific backup policies are derived - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: ProtectionPolicyResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicy - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(ProtectionPolicyResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py deleted file mode 100644 index 514f61bbc720..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RecoveryPoint(Model): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint - - 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': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__(self, **kwargs): - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py deleted file mode 100644 index e2e87c51e520..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RecoveryPoint(Model): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint - - 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': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__(self, **kwargs) -> None: - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource.py deleted file mode 100644 index 54a9ac18aa40..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RecoveryPointResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__(self, **kwargs): - super(RecoveryPointResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_paged.py deleted file mode 100644 index d0d1eceaedb7..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -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) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_py3.py deleted file mode 100644 index 6ea4d805d721..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived - from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RecoveryPointResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(RecoveryPointResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information.py deleted file mode 100644 index fcccab9d9b27..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RecoveryPointTierInformation(Model): - """Recovery point tier information. - - :param type: Recovery point tier type. Possible values include: 'Invalid', - 'InstantRP', 'HardenedRP' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType - :param status: Recovery point tier status. Possible values include: - 'Invalid', 'Valid', 'Disabled', 'Deleted' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, - 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, - } - - def __init__(self, **kwargs): - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.status = kwargs.get('status', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information_py3.py deleted file mode 100644 index b7e25cb4b34e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_tier_information_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RecoveryPointTierInformation(Model): - """Recovery point tier information. - - :param type: Recovery point tier type. Possible values include: 'Invalid', - 'InstantRP', 'HardenedRP' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierType - :param status: Recovery point tier status. Possible values include: - 'Invalid', 'Valid', 'Disabled', 'Deleted' - :type status: str or - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointTierStatus - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'RecoveryPointTierType'}, - 'status': {'key': 'status', 'type': 'RecoveryPointTierStatus'}, - } - - def __init__(self, *, type=None, status=None, **kwargs) -> None: - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = type - self.status = status diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource.py deleted file mode 100644 index a8bb01618a5a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """ARM Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.e_tag = kwargs.get('e_tag', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list.py deleted file mode 100644 index 44b328e46bd6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceList(Model): - """Base for all lists of resources. - - :param next_link: The uri to fetch the next page of resources. Call - ListNext() fetches next page of resources. - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list_py3.py deleted file mode 100644 index 4e92209d5903..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_list_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceList(Model): - """Base for all lists of resources. - - :param next_link: The uri to fetch the next page of resources. Call - ListNext() fetches next page of resources. - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, next_link: str=None, **kwargs) -> None: - super(ResourceList, self).__init__(**kwargs) - self.next_link = next_link diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_py3.py deleted file mode 100644 index a45b6c84b923..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """ARM Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - self.e_tag = e_tag diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs.py deleted file mode 100644 index 7715c324cbc6..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RestoreFileSpecs(Model): - """Restore file specs like file path, type and target folder path info. - - :param path: Source File/Folder path - :type path: str - :param file_spec_type: Indicates what the Path variable stands for - :type file_spec_type: str - :param target_folder_path: Destination folder path in target FileShare - :type target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.file_spec_type = kwargs.get('file_spec_type', None) - self.target_folder_path = kwargs.get('target_folder_path', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs_py3.py deleted file mode 100644 index 3aa79fe8162a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_file_specs_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RestoreFileSpecs(Model): - """Restore file specs like file path, type and target folder path info. - - :param path: Source File/Folder path - :type path: str - :param file_spec_type: Indicates what the Path variable stands for - :type file_spec_type: str - :param target_folder_path: Destination folder path in target FileShare - :type target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__(self, *, path: str=None, file_spec_type: str=None, target_folder_path: str=None, **kwargs) -> None: - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = path - self.file_spec_type = file_spec_type - self.target_folder_path = target_folder_path diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py deleted file mode 100644 index d18be734a9ee..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RestoreRequest(Model): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest - - 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': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__(self, **kwargs): - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py deleted file mode 100644 index 659d951369f9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RestoreRequest(Model): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest - - 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': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__(self, **kwargs) -> None: - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource.py deleted file mode 100644 index beca6e1710ca..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class RestoreRequestResource(Resource): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RestoreRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, - } - - def __init__(self, **kwargs): - super(RestoreRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource_py3.py deleted file mode 100644 index c488620de4f8..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class RestoreRequestResource(Resource): - """Base class for restore request. Workload-specific restore requests are - derived from this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: RestoreRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(RestoreRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration.py deleted file mode 100644 index caac4911f800..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetentionDuration(Model): - """Retention duration. - - :param count: Count of duration types. Retention duration is obtained by - the counting the duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration - will be three weeks. - :type count: int - :param duration_type: Retention duration type of retention policy. - Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' - :type duration_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration_type': {'key': 'durationType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RetentionDuration, self).__init__(**kwargs) - self.count = kwargs.get('count', None) - self.duration_type = kwargs.get('duration_type', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration_py3.py deleted file mode 100644 index d2eccbffaed5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_duration_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetentionDuration(Model): - """Retention duration. - - :param count: Count of duration types. Retention duration is obtained by - the counting the duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration - will be three weeks. - :type count: int - :param duration_type: Retention duration type of retention policy. - Possible values include: 'Invalid', 'Days', 'Weeks', 'Months', 'Years' - :type duration_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionDurationType - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration_type': {'key': 'durationType', 'type': 'str'}, - } - - def __init__(self, *, count: int=None, duration_type=None, **kwargs) -> None: - super(RetentionDuration, self).__init__(**kwargs) - self.count = count - self.duration_type = duration_type diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy.py deleted file mode 100644 index f8bf392172bd..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetentionPolicy(Model): - """Base class for retention policy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} - } - - def __init__(self, **kwargs): - super(RetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy_py3.py deleted file mode 100644 index 7628a70dd614..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/retention_policy_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RetentionPolicy(Model): - """Base class for retention policy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} - } - - def __init__(self, **kwargs) -> None: - super(RetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy.py deleted file mode 100644 index 87f4bb99f669..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SchedulePolicy(Model): - """Base class for backup schedule. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, - SimpleSchedulePolicy - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} - } - - def __init__(self, **kwargs): - super(SchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy_py3.py deleted file mode 100644 index a9f280e16951..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/schedule_policy_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SchedulePolicy(Model): - """Base class for backup schedule. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, - SimpleSchedulePolicy - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} - } - - def __init__(self, **kwargs) -> None: - super(SchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py deleted file mode 100644 index 4b843269abf4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Settings(Model): - """Common settings field for backup management. - - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param issqlcompression: SQL compression flag - :type issqlcompression: bool - :param is_compression: Workload compression flag. This has been added so - that 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :type is_compression: bool - """ - - _attribute_map = { - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, - 'is_compression': {'key': 'isCompression', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(Settings, self).__init__(**kwargs) - self.time_zone = kwargs.get('time_zone', None) - self.issqlcompression = kwargs.get('issqlcompression', None) - self.is_compression = kwargs.get('is_compression', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py deleted file mode 100644 index 6e1708dd2382..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Settings(Model): - """Common settings field for backup management. - - :param time_zone: TimeZone optional input as string. For example: TimeZone - = "Pacific Standard Time". - :type time_zone: str - :param issqlcompression: SQL compression flag - :type issqlcompression: bool - :param is_compression: Workload compression flag. This has been added so - that 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :type is_compression: bool - """ - - _attribute_map = { - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, - 'is_compression': {'key': 'isCompression', 'type': 'bool'}, - } - - def __init__(self, *, time_zone: str=None, issqlcompression: bool=None, is_compression: bool=None, **kwargs) -> None: - super(Settings, self).__init__(**kwargs) - self.time_zone = time_zone - self.issqlcompression = issqlcompression - self.is_compression = is_compression diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy.py deleted file mode 100644 index 6e0a54f04e7a..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .retention_policy import RetentionPolicy - - -class SimpleRetentionPolicy(RetentionPolicy): - """Simple policy retention. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param retention_duration: Retention duration of the protection policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(SimpleRetentionPolicy, self).__init__(**kwargs) - self.retention_duration = kwargs.get('retention_duration', None) - self.retention_policy_type = 'SimpleRetentionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy_py3.py deleted file mode 100644 index 71416b26af7b..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_retention_policy_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .retention_policy_py3 import RetentionPolicy - - -class SimpleRetentionPolicy(RetentionPolicy): - """Simple policy retention. - - All required parameters must be populated in order to send to Azure. - - :param retention_policy_type: Required. Constant filled by server. - :type retention_policy_type: str - :param retention_duration: Retention duration of the protection policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_duration=None, **kwargs) -> None: - super(SimpleRetentionPolicy, self).__init__(**kwargs) - self.retention_duration = retention_duration - self.retention_policy_type = 'SimpleRetentionPolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy.py deleted file mode 100644 index bad416583e2f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy import SchedulePolicy - - -class SimpleSchedulePolicy(SchedulePolicy): - """Simple policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_run_frequency: Frequency of the schedule operation of this - policy. Possible values include: 'Invalid', 'Daily', 'Weekly' - :type schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType - :param schedule_run_days: List of days of week this schedule has to be - run. - :type schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param schedule_run_times: List of times of day this schedule has to be - run. - :type schedule_run_times: list[datetime] - :param schedule_weekly_frequency: At every number weeks this schedule has - to be run. - :type schedule_weekly_frequency: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, - 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, - 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, - 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(SimpleSchedulePolicy, self).__init__(**kwargs) - self.schedule_run_frequency = kwargs.get('schedule_run_frequency', None) - self.schedule_run_days = kwargs.get('schedule_run_days', None) - self.schedule_run_times = kwargs.get('schedule_run_times', None) - self.schedule_weekly_frequency = kwargs.get('schedule_weekly_frequency', None) - self.schedule_policy_type = 'SimpleSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy_py3.py deleted file mode 100644 index cdee86fd1bbf..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/simple_schedule_policy_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .schedule_policy_py3 import SchedulePolicy - - -class SimpleSchedulePolicy(SchedulePolicy): - """Simple policy schedule. - - All required parameters must be populated in order to send to Azure. - - :param schedule_policy_type: Required. Constant filled by server. - :type schedule_policy_type: str - :param schedule_run_frequency: Frequency of the schedule operation of this - policy. Possible values include: 'Invalid', 'Daily', 'Weekly' - :type schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.models.ScheduleRunType - :param schedule_run_days: List of days of week this schedule has to be - run. - :type schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param schedule_run_times: List of times of day this schedule has to be - run. - :type schedule_run_times: list[datetime] - :param schedule_weekly_frequency: At every number weeks this schedule has - to be run. - :type schedule_weekly_frequency: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, - 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[DayOfWeek]'}, - 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, - 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, - } - - def __init__(self, *, schedule_run_frequency=None, schedule_run_days=None, schedule_run_times=None, schedule_weekly_frequency: int=None, **kwargs) -> None: - super(SimpleSchedulePolicy, self).__init__(**kwargs) - self.schedule_run_frequency = schedule_run_frequency - self.schedule_run_days = schedule_run_days - self.schedule_run_times = schedule_run_times - self.schedule_weekly_frequency = schedule_weekly_frequency - self.schedule_policy_type = 'SimpleSchedulePolicy' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py deleted file mode 100644 index 1b2c5562aee4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SQLDataDirectory(Model): - """SQLDataDirectory info. - - :param type: Type of data directory mapping. Possible values include: - 'Invalid', 'Data', 'Log' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param path: File path - :type path: str - :param logical_name: Logical name of the file - :type logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.path = kwargs.get('path', None) - self.logical_name = kwargs.get('logical_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping.py deleted file mode 100644 index 6eed363c64e3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SQLDataDirectoryMapping(Model): - """Encapsulates information regarding data directory. - - :param mapping_type: Type of data directory mapping. Possible values - include: 'Invalid', 'Data', 'Log' - :type mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param source_logical_name: Restore source logical name path - :type source_logical_name: str - :param source_path: Restore source path - :type source_path: str - :param target_path: Target path - :type target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = kwargs.get('mapping_type', None) - self.source_logical_name = kwargs.get('source_logical_name', None) - self.source_path = kwargs.get('source_path', None) - self.target_path = kwargs.get('target_path', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping_py3.py deleted file mode 100644 index 6048d6787ca1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_mapping_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SQLDataDirectoryMapping(Model): - """Encapsulates information regarding data directory. - - :param mapping_type: Type of data directory mapping. Possible values - include: 'Invalid', 'Data', 'Log' - :type mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param source_logical_name: Restore source logical name path - :type source_logical_name: str - :param source_path: Restore source path - :type source_path: str - :param target_path: Target path - :type target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__(self, *, mapping_type=None, source_logical_name: str=None, source_path: str=None, target_path: str=None, **kwargs) -> None: - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = mapping_type - self.source_logical_name = source_logical_name - self.source_path = source_path - self.target_path = target_path diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_py3.py deleted file mode 100644 index 3ac31f086a93..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sql_data_directory_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SQLDataDirectory(Model): - """SQLDataDirectory info. - - :param type: Type of data directory mapping. Possible values include: - 'Invalid', 'Data', 'Log' - :type type: str or - ~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryType - :param path: File path - :type path: str - :param logical_name: Logical name of the file - :type logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__(self, *, type=None, path: str=None, logical_name: str=None, **kwargs) -> None: - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = type - self.path = path - self.logical_name = logical_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy.py deleted file mode 100644 index a41232946121..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubProtectionPolicy(Model): - """Sub-protection policy which includes schedule and retention. - - :param policy_type: Type of backup policy type. Possible values include: - 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' - :type policy_type: str or - ~azure.mgmt.recoveryservicesbackup.models.PolicyType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _attribute_map = { - 'policy_type': {'key': 'policyType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, **kwargs): - super(SubProtectionPolicy, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy_py3.py deleted file mode 100644 index d49b000296b2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/sub_protection_policy_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubProtectionPolicy(Model): - """Sub-protection policy which includes schedule and retention. - - :param policy_type: Type of backup policy type. Possible values include: - 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' - :type policy_type: str or - ~azure.mgmt.recoveryservicesbackup.models.PolicyType - :param schedule_policy: Backup schedule specified as part of backup - policy. - :type schedule_policy: - ~azure.mgmt.recoveryservicesbackup.models.SchedulePolicy - :param retention_policy: Retention policy with the details on backup copy - retention ranges. - :type retention_policy: - ~azure.mgmt.recoveryservicesbackup.models.RetentionPolicy - """ - - _attribute_map = { - 'policy_type': {'key': 'policyType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__(self, *, policy_type=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: - super(SubProtectionPolicy, self).__init__(**kwargs) - self.policy_type = policy_type - self.schedule_policy = schedule_policy - self.retention_policy = retention_policy diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info.py deleted file mode 100644 index 2df823901d50..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetAFSRestoreInfo(Model): - """Target Azure File Share Info. - - :param name: File share name - :type name: str - :param target_resource_id: Target file share resource ARM ID - :type target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_resource_id = kwargs.get('target_resource_id', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info_py3.py deleted file mode 100644 index 91c8c8dc786d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_afs_restore_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetAFSRestoreInfo(Model): - """Target Azure File Share Info. - - :param name: File share name - :type name: str - :param target_resource_id: Target file share resource ARM ID - :type target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, target_resource_id: str=None, **kwargs) -> None: - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = name - self.target_resource_id = target_resource_id diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py deleted file mode 100644 index eb51771638b5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetRestoreInfo(Model): - """Details about target workload during restore operation. - - :param overwrite_option: Can Overwrite if Target DataBase already exists. - Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' - :type overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions - :param container_id: Resource Id name of the container in which Target - DataBase resides - :type container_id: str - :param database_name: Database name InstanceName/DataBaseName for SQL or - System/DbName for SAP Hana - :type database_name: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = kwargs.get('overwrite_option', None) - self.container_id = kwargs.get('container_id', None) - self.database_name = kwargs.get('database_name', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py deleted file mode 100644 index 809db7da7ce5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetRestoreInfo(Model): - """Details about target workload during restore operation. - - :param overwrite_option: Can Overwrite if Target DataBase already exists. - Possible values include: 'Invalid', 'FailOnConflict', 'Overwrite' - :type overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.models.OverwriteOptions - :param container_id: Resource Id name of the container in which Target - DataBase resides - :type container_id: str - :param database_name: Database name InstanceName/DataBaseName for SQL or - System/DbName for SAP Hana - :type database_name: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - } - - def __init__(self, *, overwrite_option=None, container_id: str=None, database_name: str=None, **kwargs) -> None: - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = overwrite_option - self.container_id = container_id - self.database_name = database_name diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information.py deleted file mode 100644 index d374326d5884..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TokenInformation(Model): - """The token information details. - - :param token: Token value. - :type token: str - :param expiry_time_in_utc_ticks: Expiry time of token. - :type expiry_time_in_utc_ticks: long - :param security_pin: Security PIN - :type security_pin: str - """ - - _attribute_map = { - 'token': {'key': 'token', 'type': 'str'}, - 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, - 'security_pin': {'key': 'securityPIN', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TokenInformation, self).__init__(**kwargs) - self.token = kwargs.get('token', None) - self.expiry_time_in_utc_ticks = kwargs.get('expiry_time_in_utc_ticks', None) - self.security_pin = kwargs.get('security_pin', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information_py3.py deleted file mode 100644 index 566366c0b1a4..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/token_information_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TokenInformation(Model): - """The token information details. - - :param token: Token value. - :type token: str - :param expiry_time_in_utc_ticks: Expiry time of token. - :type expiry_time_in_utc_ticks: long - :param security_pin: Security PIN - :type security_pin: str - """ - - _attribute_map = { - 'token': {'key': 'token', 'type': 'str'}, - 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, - 'security_pin': {'key': 'securityPIN', 'type': 'str'}, - } - - def __init__(self, *, token: str=None, expiry_time_in_utc_ticks: int=None, security_pin: str=None, **kwargs) -> None: - super(TokenInformation, self).__init__(**kwargs) - self.token = token - self.expiry_time_in_utc_ticks = expiry_time_in_utc_ticks - self.security_pin = security_pin diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request.py deleted file mode 100644 index 4c073f88d1ab..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .validate_restore_operation_request import ValidateRestoreOperationRequest - - -class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): - """AzureRestoreValidation 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 restore_request: Sets restore request to be validated - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__(self, **kwargs): - super(ValidateIaasVMRestoreOperationRequest, self).__init__(**kwargs) - self.object_type = 'ValidateIaasVMRestoreOperationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py deleted file mode 100644 index 58f9e96832e1..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .validate_restore_operation_request_py3 import ValidateRestoreOperationRequest - - -class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): - """AzureRestoreValidation 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 restore_request: Sets restore request to be validated - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__(self, *, restore_request=None, **kwargs) -> None: - super(ValidateIaasVMRestoreOperationRequest, self).__init__(restore_request=restore_request, **kwargs) - self.object_type = 'ValidateIaasVMRestoreOperationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request.py deleted file mode 100644 index 4ea8598a1dd0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationRequest(Model): - """Base class for validate operation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateRestoreOperationRequest - - 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': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} - } - - def __init__(self, **kwargs): - super(ValidateOperationRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request_py3.py deleted file mode 100644 index 1df063a7d274..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_request_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationRequest(Model): - """Base class for validate operation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateRestoreOperationRequest - - 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': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} - } - - def __init__(self, **kwargs) -> None: - super(ValidateOperationRequest, self).__init__(**kwargs) - self.object_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response.py deleted file mode 100644 index 9b24e402aff2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationResponse(Model): - """Base class for validate operation response. - - :param validation_results: Gets the validation result - :type validation_results: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] - """ - - _attribute_map = { - 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, - } - - def __init__(self, **kwargs): - super(ValidateOperationResponse, self).__init__(**kwargs) - self.validation_results = kwargs.get('validation_results', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response_py3.py deleted file mode 100644 index 129b6754d8ba..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operation_response_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationResponse(Model): - """Base class for validate operation response. - - :param validation_results: Gets the validation result - :type validation_results: - list[~azure.mgmt.recoveryservicesbackup.models.ErrorDetail] - """ - - _attribute_map = { - 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, - } - - def __init__(self, *, validation_results=None, **kwargs) -> None: - super(ValidateOperationResponse, self).__init__(**kwargs) - self.validation_results = validation_results diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response.py deleted file mode 100644 index 4ffe9cd2ed72..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationsResponse(Model): - """ValidateOperationsResponse. - - :param validate_operation_response: - :type validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse - """ - - _attribute_map = { - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__(self, **kwargs): - super(ValidateOperationsResponse, self).__init__(**kwargs) - self.validate_operation_response = kwargs.get('validate_operation_response', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response_py3.py deleted file mode 100644 index 4a3f9dfd0d38..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_operations_response_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateOperationsResponse(Model): - """ValidateOperationsResponse. - - :param validate_operation_response: - :type validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.models.ValidateOperationResponse - """ - - _attribute_map = { - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__(self, *, validate_operation_response=None, **kwargs) -> None: - super(ValidateOperationsResponse, self).__init__(**kwargs) - self.validate_operation_response = validate_operation_response diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request.py deleted file mode 100644 index f204162a809d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .validate_operation_request import ValidateOperationRequest - - -class ValidateRestoreOperationRequest(ValidateOperationRequest): - """AzureRestoreValidation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateIaasVMRestoreOperationRequest - - 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 restore_request: Sets restore request to be validated - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - _subtype_map = { - 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} - } - - def __init__(self, **kwargs): - super(ValidateRestoreOperationRequest, self).__init__(**kwargs) - self.restore_request = kwargs.get('restore_request', None) - self.object_type = 'ValidateRestoreOperationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request_py3.py deleted file mode 100644 index a30d68806567..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_restore_operation_request_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .validate_operation_request_py3 import ValidateOperationRequest - - -class ValidateRestoreOperationRequest(ValidateOperationRequest): - """AzureRestoreValidation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateIaasVMRestoreOperationRequest - - 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 restore_request: Sets restore request to be validated - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - _subtype_map = { - 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} - } - - def __init__(self, *, restore_request=None, **kwargs) -> None: - super(ValidateRestoreOperationRequest, self).__init__(**kwargs) - self.restore_request = restore_request - self.object_type = 'ValidateRestoreOperationRequest' diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format.py deleted file mode 100644 index 71938a69bb68..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeeklyRetentionFormat(Model): - """Weekly retention format. - - :param days_of_the_week: List of days of the week. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param weeks_of_the_month: List of weeks of month. - :type weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, - } - - def __init__(self, **kwargs): - super(WeeklyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.weeks_of_the_month = kwargs.get('weeks_of_the_month', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format_py3.py deleted file mode 100644 index 5c1349e58fa5..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_format_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeeklyRetentionFormat(Model): - """Weekly retention format. - - :param days_of_the_week: List of days of the week. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param weeks_of_the_month: List of weeks of month. - :type weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.models.WeekOfMonth] - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[WeekOfMonth]'}, - } - - def __init__(self, *, days_of_the_week=None, weeks_of_the_month=None, **kwargs) -> None: - super(WeeklyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_week = days_of_the_week - self.weeks_of_the_month = weeks_of_the_month diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule.py deleted file mode 100644 index 895e178e6bf2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeeklyRetentionSchedule(Model): - """Weekly retention schedule. - - :param days_of_the_week: List of days of week for weekly retention policy. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(WeeklyRetentionSchedule, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule_py3.py deleted file mode 100644 index d8c8c677cc33..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/weekly_retention_schedule_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WeeklyRetentionSchedule(Model): - """Weekly retention schedule. - - :param days_of_the_week: List of days of week for weekly retention policy. - :type days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.models.DayOfWeek] - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[DayOfWeek]'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, days_of_the_week=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(WeeklyRetentionSchedule, self).__init__(**kwargs) - self.days_of_the_week = days_of_the_week - self.retention_times = retention_times - self.retention_duration = retention_duration diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details.py deleted file mode 100644 index 904d4f928d74..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadInquiryDetails(Model): - """Details of an inquired protectable item. - - :param type: Type of the Workload such as SQL, Oracle etc. - :type type: str - :param item_count: Contains the protectable item Count inside this - Container. - :type item_count: long - :param inquiry_validation: Inquiry validation such as permissions and - other backup validations. - :type inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'item_count': {'key': 'itemCount', 'type': 'long'}, - 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, - } - - def __init__(self, **kwargs): - super(WorkloadInquiryDetails, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.item_count = kwargs.get('item_count', None) - self.inquiry_validation = kwargs.get('inquiry_validation', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details_py3.py deleted file mode 100644 index 606ba73009c2..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_inquiry_details_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadInquiryDetails(Model): - """Details of an inquired protectable item. - - :param type: Type of the Workload such as SQL, Oracle etc. - :type type: str - :param item_count: Contains the protectable item Count inside this - Container. - :type item_count: long - :param inquiry_validation: Inquiry validation such as permissions and - other backup validations. - :type inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.models.InquiryValidation - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'item_count': {'key': 'itemCount', 'type': 'long'}, - 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, - } - - def __init__(self, *, type: str=None, item_count: int=None, inquiry_validation=None, **kwargs) -> None: - super(WorkloadInquiryDetails, self).__init__(**kwargs) - self.type = type - self.item_count = item_count - self.inquiry_validation = inquiry_validation diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item.py deleted file mode 100644 index 3e900993b7b3..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadItem - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - _subtype_map = { - 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} - } - - def __init__(self, **kwargs): - super(WorkloadItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.workload_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_py3.py deleted file mode 100644 index a99585446547..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadItem - - 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 workload_item_type: Required. Constant filled by server. - :type workload_item_type: str - """ - - _validation = { - 'workload_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'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - _subtype_map = { - 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: - super(WorkloadItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.friendly_name = friendly_name - self.protection_state = protection_state - self.workload_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource.py deleted file mode 100644 index 500a60c0793d..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class WorkloadItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, - } - - def __init__(self, **kwargs): - super(WorkloadItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_paged.py deleted file mode 100644 index 65ead95f1d13..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class WorkloadItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`WorkloadItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WorkloadItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(WorkloadItemResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_py3.py deleted file mode 100644 index d0c63881cded..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_item_resource_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class WorkloadItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadItemResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.WorkloadItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(WorkloadItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item.py deleted file mode 100644 index 8210296fec90..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadProtectableItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectableItem, - AzureVmWorkloadProtectableItem, IaaSVMProtectableItem - - 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 - """ - - _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'}, - } - - _subtype_map = { - 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} - } - - def __init__(self, **kwargs): - super(WorkloadProtectableItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.protectable_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_py3.py deleted file mode 100644 index d1dbd9ce092e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WorkloadProtectableItem(Model): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectableItem, - AzureVmWorkloadProtectableItem, IaaSVMProtectableItem - - 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 - """ - - _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'}, - } - - _subtype_map = { - 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} - } - - def __init__(self, *, backup_management_type: str=None, workload_type: str=None, friendly_name: str=None, protection_state=None, **kwargs) -> None: - super(WorkloadProtectableItem, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - self.workload_type = workload_type - self.friendly_name = friendly_name - self.protection_state = protection_state - self.protectable_item_type = None diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource.py deleted file mode 100644 index f9c8157cb641..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class WorkloadProtectableItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadProtectableItemResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, - } - - def __init__(self, **kwargs): - super(WorkloadProtectableItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_paged.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_paged.py deleted file mode 100644 index 03e909cd0bfc..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class WorkloadProtectableItemResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`WorkloadProtectableItemResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WorkloadProtectableItemResource]'} - } - - def __init__(self, *args, **kwargs): - - super(WorkloadProtectableItemResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_py3.py deleted file mode 100644 index 7e85377d3499..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/workload_protectable_item_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class WorkloadProtectableItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from - this class. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param e_tag: Optional ETag. - :type e_tag: str - :param properties: WorkloadProtectableItemResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(WorkloadProtectableItemResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule.py deleted file mode 100644 index c099a59effe0..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class YearlyRetentionSchedule(Model): - """Yearly retention schedule. - - :param retention_schedule_format_type: Retention schedule format for - yearly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param months_of_year: List of months of year of yearly retention policy. - :type months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] - :param retention_schedule_daily: Daily retention format for yearly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for yearly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, **kwargs): - super(YearlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.months_of_year = kwargs.get('months_of_year', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule_py3.py deleted file mode 100644 index 0e4d5e42b653..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/yearly_retention_schedule_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class YearlyRetentionSchedule(Model): - """Yearly retention schedule. - - :param retention_schedule_format_type: Retention schedule format for - yearly retention policy. Possible values include: 'Invalid', 'Daily', - 'Weekly' - :type retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.models.RetentionScheduleFormat - :param months_of_year: List of months of year of yearly retention policy. - :type months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.models.MonthOfYear] - :param retention_schedule_daily: Daily retention format for yearly - retention policy. - :type retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.models.DailyRetentionFormat - :param retention_schedule_weekly: Weekly retention format for yearly - retention policy. - :type retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.models.WeeklyRetentionFormat - :param retention_times: Retention times of retention policy. - :type retention_times: list[datetime] - :param retention_duration: Retention duration of retention Policy. - :type retention_duration: - ~azure.mgmt.recoveryservicesbackup.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'months_of_year': {'key': 'monthsOfYear', 'type': '[MonthOfYear]'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__(self, *, retention_schedule_format_type=None, months_of_year=None, retention_schedule_daily=None, retention_schedule_weekly=None, retention_times=None, retention_duration=None, **kwargs) -> None: - super(YearlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = retention_schedule_format_type - self.months_of_year = months_of_year - self.retention_schedule_daily = retention_schedule_daily - self.retention_schedule_weekly = retention_schedule_weekly - self.retention_times = retention_times - self.retention_duration = retention_duration 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 7d402d8d2f2a..b7b5ec5c0953 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,44 +9,44 @@ # regenerated. # -------------------------------------------------------------------------- -from .protection_intent_operations import ProtectionIntentOperations -from .backup_status_operations import BackupStatusOperations -from .feature_support_operations import FeatureSupportOperations -from .backup_jobs_operations import BackupJobsOperations -from .job_details_operations import JobDetailsOperations -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 .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 -from .security_pi_ns_operations import SecurityPINsOperations -from .backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations -from .operations import Operations +from ._protection_intent_operations import ProtectionIntentOperations +from ._backup_status_operations import BackupStatusOperations +from ._feature_support_operations import FeatureSupportOperations +from ._backup_jobs_operations import BackupJobsOperations +from ._job_details_operations import JobDetailsOperations +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 ._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 +from ._security_pi_ns_operations import SecurityPINsOperations +from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations +from ._operations import Operations __all__ = [ 'ProtectionIntentOperations', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_engines_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py similarity index 95% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_engines_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py index 99331c86fd7d..bfab9f133142 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_engines_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py @@ -19,6 +19,8 @@ class BackupEnginesOperations(object): """BackupEnginesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +63,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.BackupEngineBaseResourcePaged[~azure.mgmt.recoveryservicesbackup.models.BackupEngineBaseResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -97,6 +98,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -107,12 +113,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BackupEngineBaseResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BackupEngineBaseResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.BackupEngineBaseResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines'} @@ -181,7 +185,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupEngineBaseResource', response) 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 similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_jobs_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py index 565028761494..b85c823e402f 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 @@ -19,6 +19,8 @@ class BackupJobsOperations(object): """BackupJobsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.JobResourcePaged[~azure.mgmt.recoveryservicesbackup.models.JobResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -96,6 +97,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -106,12 +112,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.JobResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.JobResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.JobResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py index 056e358def83..2c88ed5b3395 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py @@ -19,6 +19,8 @@ class BackupOperationResultsOperations(object): """BackupOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_statuses_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py index e790184f8d8d..abd5951b2a41 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py @@ -19,6 +19,8 @@ class BackupOperationStatusesOperations(object): """BackupOperationStatusesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationStatus', response) 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 similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_policies_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py index 7e9c8a091164..9b28570e03a1 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 @@ -19,6 +19,8 @@ class BackupPoliciesOperations(object): """BackupPoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionPolicyResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -94,6 +95,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -104,12 +110,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProtectionPolicyResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProtectionPolicyResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProtectionPolicyResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protectable_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protectable_items_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py index 67533c1f1c99..86a05315a8d7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protectable_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py @@ -19,6 +19,8 @@ class BackupProtectableItemsOperations(object): """BackupProtectableItemsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -62,8 +64,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.WorkloadProtectableItemResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -98,6 +99,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -108,12 +114,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.WorkloadProtectableItemResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.WorkloadProtectableItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.WorkloadProtectableItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems'} 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 similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protected_items_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py index 32237a752a59..7d30345cc4ca 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 @@ -19,6 +19,8 @@ class BackupProtectedItemsOperations(object): """BackupProtectedItemsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +63,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -97,6 +98,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -107,12 +113,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProtectedItemResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProtectedItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProtectedItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_containers_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py index ad8b8241dfca..6609a5ae2b17 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py @@ -19,6 +19,8 @@ class BackupProtectionContainersOperations(object): """BackupProtectionContainersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -58,8 +60,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionContainerResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -92,6 +93,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -102,12 +108,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProtectionContainerResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProtectionContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProtectionContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_intent_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py index 861e3d02627a..267a19541377 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py @@ -19,6 +19,8 @@ class BackupProtectionIntentOperations(object): """BackupProtectionIntentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -61,8 +63,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectionIntentResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -97,6 +98,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -107,12 +113,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProtectionIntentResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProtectionIntentResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProtectionIntentResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_resource_storage_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_resource_storage_configs_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py index 7c551874e996..41280942e871 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_resource_storage_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py @@ -19,6 +19,8 @@ class BackupResourceStorageConfigsOperations(object): """BackupResourceStorageConfigsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -90,7 +92,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupResourceConfigResource', response) @@ -161,7 +162,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupResourceConfigResource', response) 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 similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_resource_vault_configs_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py index 7305c22c15fb..86306ef191ec 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 @@ -19,6 +19,8 @@ class BackupResourceVaultConfigsOperations(object): """BackupResourceVaultConfigsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -91,7 +93,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupResourceVaultConfigResource', response) @@ -163,7 +164,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupResourceVaultConfigResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_status_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py index 4c169b73880b..35a4d0f84cf1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_status_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py @@ -19,6 +19,8 @@ class BackupStatusOperations(object): """BackupStatusOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -92,7 +94,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('BackupStatusResponse', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_usage_summaries_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_usage_summaries_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py index 5ee8be6a5471..48a868512ba5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_usage_summaries_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py @@ -19,6 +19,8 @@ class BackupUsageSummariesOperations(object): """BackupUsageSummariesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsagePaged[~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsage] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -96,6 +97,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -106,12 +112,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BackupManagementUsagePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BackupManagementUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.BackupManagementUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_workload_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py similarity index 93% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_workload_items_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py index 70a669d49e41..0c9ab8c32212 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_workload_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py @@ -19,6 +19,8 @@ class BackupWorkloadItemsOperations(object): """BackupWorkloadItemsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -66,8 +68,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.WorkloadItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.WorkloadItemResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -104,6 +105,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -114,12 +120,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.WorkloadItemResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.WorkloadItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.WorkloadItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backups_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backups_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py index fb1cea28b101..203c93c98c81 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backups_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py @@ -19,6 +19,8 @@ class BackupsOperations(object): """BackupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/export_jobs_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py index ca9d4e158a85..e8ae9eeee4ac 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 @@ -19,6 +19,8 @@ class ExportJobsOperationResultsOperations(object): """ExportJobsOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationResultInfoBaseResource', response) if response.status_code == 202: diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/feature_support_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/feature_support_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py index fe5c56f1a209..03ff7cebd8bd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/feature_support_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py @@ -19,6 +19,8 @@ class FeatureSupportOperations(object): """FeatureSupportOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -95,7 +97,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AzureVMResourceFeatureSupportResponse', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/item_level_recovery_connections_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/item_level_recovery_connections_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py index 7e9b9761cddc..f646e52fd4ce 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/item_level_recovery_connections_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py @@ -19,6 +19,8 @@ class ItemLevelRecoveryConnectionsOperations(object): """ItemLevelRecoveryConnectionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. 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 similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/job_cancellations_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py index 95fadd78a6e2..e6282eeb0ffb 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 @@ -19,6 +19,8 @@ class JobCancellationsOperations(object): """JobCancellationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/job_details_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py index d642a91fc193..fcf4125351c9 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 @@ -19,6 +19,8 @@ class JobDetailsOperations(object): """JobDetailsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -92,7 +94,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('JobResource', response) 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 similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/job_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py index c686eb1f1258..544c94607b49 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 @@ -19,6 +19,8 @@ class JobOperationResultsOperations(object): """JobOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. 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 similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/jobs_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py index 1ec44f09f9bc..b8ff1a0bc647 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 @@ -19,6 +19,8 @@ class JobsOperations(object): """JobsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/operation_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py index 1f8729366aa6..ddcbaae0731b 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 @@ -19,6 +19,8 @@ class OperationOperations(object): """OperationOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -98,7 +100,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ValidateOperationsResponse', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py similarity index 90% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py index 8afe7ebaf2fb..3c69d7592b93 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryValueForSingleApiPaged[~azure.mgmt.recoveryservicesbackup.models.ClientDiscoveryValueForSingleApi] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ClientDiscoveryValueForSingleApiPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.RecoveryServices/operations'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protectable_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py similarity index 92% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protectable_containers_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py index 3a22e0154693..77f5beb56e29 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protectable_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py @@ -19,6 +19,8 @@ class ProtectableContainersOperations(object): """ProtectableContainersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.ProtectableContainerResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectableContainerResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -95,6 +96,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -105,12 +111,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProtectableContainerResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProtectableContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProtectableContainerResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers'} 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protected_item_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py index b263a504edb0..85de84b213a8 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 @@ -19,6 +19,8 @@ class ProtectedItemOperationResultsOperations(object): """ProtectedItemOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -104,7 +106,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectedItemResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protected_item_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protected_item_operation_statuses_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py index 3530e3e72ff8..c915568a3a95 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protected_item_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py @@ -19,6 +19,8 @@ class ProtectedItemOperationStatusesOperations(object): """ProtectedItemOperationStatusesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -108,7 +110,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationStatus', response) 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 similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protected_items_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py index e7fabfcf6a12..a5c184ce7089 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 @@ -19,6 +19,8 @@ class ProtectedItemsOperations(object): """ProtectedItemsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -107,7 +109,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectedItemResource', response) @@ -190,7 +191,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectedItemResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py index 689b231c0f95..70d4d9055552 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py @@ -19,6 +19,8 @@ class ProtectionContainerOperationResultsOperations(object): """ProtectionContainerOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -101,7 +103,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionContainerResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_refresh_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_refresh_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py index bbb90bb4d967..08f72164af9a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_container_refresh_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py @@ -19,6 +19,8 @@ class ProtectionContainerRefreshOperationResultsOperations(object): """ProtectionContainerRefreshOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py similarity index 99% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py index 0380362c45c9..f664ef129e0e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py @@ -19,6 +19,8 @@ class ProtectionContainersOperations(object): """ProtectionContainersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -98,7 +100,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionContainerResource', response) @@ -178,7 +179,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionContainerResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py similarity index 99% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_intent_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py index ba2cb2753e22..16a3e29082c5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py @@ -19,6 +19,8 @@ class ProtectionIntentOperations(object): """ProtectionIntentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PreValidateEnableBackupResponse', response) @@ -170,7 +171,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionIntentResource', response) @@ -248,7 +248,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionIntentResource', response) 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 similarity index 98% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_policies_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py index 3de545c15e37..c55db7c07df4 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 @@ -19,6 +19,8 @@ class ProtectionPoliciesOperations(object): """ProtectionPoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -96,7 +98,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionPolicyResource', response) @@ -172,7 +173,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionPolicyResource', response) 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_policy_operation_results_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py index 520336ef86ac..e10cf74f18a9 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 @@ -19,6 +19,8 @@ class ProtectionPolicyOperationResultsOperations(object): """ProtectionPolicyOperationResultsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -98,7 +100,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ProtectionPolicyResource', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_policy_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_policy_operation_statuses_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py index b960f1e012c3..9cb8d1369408 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_policy_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py @@ -19,6 +19,8 @@ class ProtectionPolicyOperationStatusesOperations(object): """ProtectionPolicyOperationStatusesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -102,7 +104,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationStatus', response) 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 similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/recovery_points_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py index 00a604bb66e1..468ea33d35b8 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 @@ -19,6 +19,8 @@ class RecoveryPointsOperations(object): """RecoveryPointsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -66,8 +68,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResourcePaged[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -103,6 +104,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.RecoveryPointResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.RecoveryPointResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.RecoveryPointResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints'} @@ -193,7 +197,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('RecoveryPointResource', response) 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 similarity index 97% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/restores_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py index 5a7d37ff3e47..9a57478951c1 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 @@ -19,6 +19,8 @@ class RestoresOperations(object): """RestoresOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/security_pi_ns_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py similarity index 96% rename from sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/security_pi_ns_operations.py rename to sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py index e0e2e64c24c5..08bd187beceb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/security_pi_ns_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py @@ -19,6 +19,8 @@ class SecurityPINsOperations(object): """SecurityPINsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TokenInformation', response) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py index b3f235f2da5d..a37fbaa8be5d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/setup.py @@ -64,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',