diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c6860e8470fe..1f9b1e701581 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -18,7 +18,8 @@ /azure-mgmt-eventgrid/ @kalyanaj /azure-mgmt-keyvault/ @schaabs /azure-mgmt-machinelearningcompute/ @shutchings -/azure-mgmt-recoveryservicesbackup/ @dragonfly91 +/azure-mgmt-recoveryservices/ @DheerendraRathor +/azure-mgmt-recoveryservicesbackup/ @DheerendraRathor /azure-mgmt-servicefabric/ @QingChenmsft /azure-mgmt-sql/ @jaredmoo /azure-mgmt-web/ @yugangw-msft diff --git a/azure-mgmt-recoveryservicesbackup/HISTORY.rst b/azure-mgmt-recoveryservicesbackup/HISTORY.rst index 744ae431eef3..6995e7b330b6 100644 --- a/azure-mgmt-recoveryservicesbackup/HISTORY.rst +++ b/azure-mgmt-recoveryservicesbackup/HISTORY.rst @@ -3,6 +3,39 @@ Release History =============== +0.3.0 (2018-06-27) +++++++++++++++++++ + +**Features** + +- SAP HANA contract changes (new filters added to existing API's.). This feature is still in development phase and not open for usage yet. +- Instant RP field added in create policy. +- Comments added for some contracts. + +**Python details** + +- Model DPMProtectedItem has a new parameter create_mode +- Model MabFileFolderProtectedItem has a new parameter create_mode +- Model AzureIaaSClassicComputeVMProtectedItem has a new parameter create_mode +- Model AzureWorkloadContainer has a new parameter workload_type +- Model AzureIaaSVMProtectionPolicy has a new parameter instant_rp_retention_range_in_days +- Model AzureFileshareProtectedItem has a new parameter create_mode +- Model AzureSQLAGWorkloadContainerProtectionContainer has a new parameter workload_type +- Model AzureSqlProtectedItem has a new parameter create_mode +- Model AzureIaaSVMJobExtendedInfo has a new parameter internal_property_bag +- Model KeyAndSecretDetails has a new parameter encryption_mechanism +- Model AzureIaaSVMProtectedItem has a new parameter create_mode +- Model AzureVMAppContainerProtectionContainer has a new parameter workload_type +- Model AzureVmWorkloadSQLDatabaseProtectedItem has a new parameter create_mode +- Model IaasVMRecoveryPoint has a new parameter os_type +- Model ProtectionPolicyQueryObject has a new parameter workload_type +- Model AzureIaaSComputeVMProtectedItem has a new parameter create_mode +- Model Settings has a new parameter is_compression +- Model GenericProtectedItem has a new parameter create_mode +- Model AzureWorkloadJob has a new parameter workload_type +- Model ProtectedItem has a new parameter create_mode +- Operation ProtectionContainersOperations.inquire has a new "filter" parameter + 0.2.0 (2018-05-25) ++++++++++++++++++ @@ -28,7 +61,7 @@ This version uses a next-generation code generator that *might* introduce breaki - Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same. - Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used. - - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, + - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`. - New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`, the response of the initial call will be returned without polling. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py index 75c1ed3ffccc..85f227a2f4b1 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py @@ -10,6 +10,7 @@ # -------------------------------------------------------------------------- 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 @@ -25,6 +26,7 @@ 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 @@ -35,16 +37,20 @@ 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 .error_detail_py3 import ErrorDetail + 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_sql_auto_protection_intent_py3 import AzureWorkloadSQLAutoProtectionIntent from .name_info_py3 import NameInfo from .backup_management_usage_py3 import BackupManagementUsage from .backup_status_request_py3 import BackupStatusRequest @@ -121,6 +127,10 @@ 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_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 @@ -137,11 +147,15 @@ from .azure_workload_recovery_point_py3 import AzureWorkloadRecoveryPoint from .azure_workload_restore_request_py3 import AzureWorkloadRestoreRequest from .point_in_time_range_py3 import PointInTimeRange + from .azure_workload_sap_hana_point_in_time_recovery_point_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint + from .azure_workload_sap_hana_point_in_time_restore_request_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest + from .azure_workload_sap_hana_recovery_point_py3 import AzureWorkloadSAPHanaRecoveryPoint + from .target_restore_info_py3 import TargetRestoreInfo + from .azure_workload_sap_hana_restore_request_py3 import AzureWorkloadSAPHanaRestoreRequest from .azure_workload_sql_point_in_time_recovery_point_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint from .azure_workload_sql_point_in_time_restore_request_py3 import AzureWorkloadSQLPointInTimeRestoreRequest from .azure_workload_sql_recovery_point_extended_info_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo from .azure_workload_sql_recovery_point_py3 import AzureWorkloadSQLRecoveryPoint - from .target_restore_info_py3 import TargetRestoreInfo from .sql_data_directory_mapping_py3 import SQLDataDirectoryMapping from .azure_workload_sql_restore_request_py3 import AzureWorkloadSQLRestoreRequest from .backup_engine_extended_info_py3 import BackupEngineExtendedInfo @@ -157,6 +171,7 @@ 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 @@ -210,6 +225,7 @@ from .client_discovery_for_properties_py3 import ClientDiscoveryForProperties from .client_discovery_value_for_single_api_py3 import ClientDiscoveryValueForSingleApi 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 @@ -225,6 +241,7 @@ 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 @@ -235,16 +252,20 @@ 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 .error_detail import ErrorDetail + 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_sql_auto_protection_intent import AzureWorkloadSQLAutoProtectionIntent from .name_info import NameInfo from .backup_management_usage import BackupManagementUsage from .backup_status_request import BackupStatusRequest @@ -321,6 +342,10 @@ 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_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 @@ -337,11 +362,15 @@ from .azure_workload_recovery_point import AzureWorkloadRecoveryPoint from .azure_workload_restore_request import AzureWorkloadRestoreRequest from .point_in_time_range import PointInTimeRange + from .azure_workload_sap_hana_point_in_time_recovery_point import AzureWorkloadSAPHanaPointInTimeRecoveryPoint + from .azure_workload_sap_hana_point_in_time_restore_request import AzureWorkloadSAPHanaPointInTimeRestoreRequest + from .azure_workload_sap_hana_recovery_point import AzureWorkloadSAPHanaRecoveryPoint + from .target_restore_info import TargetRestoreInfo + from .azure_workload_sap_hana_restore_request import AzureWorkloadSAPHanaRestoreRequest from .azure_workload_sql_point_in_time_recovery_point import AzureWorkloadSQLPointInTimeRecoveryPoint from .azure_workload_sql_point_in_time_restore_request import AzureWorkloadSQLPointInTimeRestoreRequest from .azure_workload_sql_recovery_point_extended_info import AzureWorkloadSQLRecoveryPointExtendedInfo from .azure_workload_sql_recovery_point import AzureWorkloadSQLRecoveryPoint - from .target_restore_info import TargetRestoreInfo from .sql_data_directory_mapping import SQLDataDirectoryMapping from .azure_workload_sql_restore_request import AzureWorkloadSQLRestoreRequest from .backup_engine_extended_info import BackupEngineExtendedInfo @@ -357,6 +386,7 @@ 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 @@ -428,6 +458,7 @@ SupportStatus, LastBackupStatus, ProtectedItemHealthStatus, + WorkloadItemType, UsagesUnit, DataSourceType, ProtectionStatus, @@ -445,6 +476,7 @@ WorkloadType, HttpStatusCode, ValidationStatus, + CreateMode, HealthState, ScheduleRunType, AzureFileShareType, @@ -461,7 +493,6 @@ EnhancedSecurityState, ContainerType, RestorePointQueryType, - WorkloadItemType, RecoveryPointTierType, RecoveryPointTierStatus, BackupItemType, @@ -469,6 +500,7 @@ ) __all__ = [ + 'AzureBackupGoalFeatureSupportRequest', 'AzureFileshareProtectedItemExtendedInfo', 'AzureFileshareProtectedItem', 'SchedulePolicy', @@ -484,6 +516,7 @@ 'AzureIaaSVMProtectedItemExtendedInfo', 'AzureIaaSVMProtectedItem', 'AzureIaaSVMProtectionPolicy', + 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceProtectionIntent', 'AzureSqlProtectedItemExtendedInfo', 'AzureSqlProtectedItem', @@ -494,16 +527,20 @@ 'AzureStorageJob', 'AzureVMResourceFeatureSupportRequest', 'AzureVMResourceFeatureSupportResponse', + 'ErrorDetail', 'AzureVmWorkloadProtectedItemExtendedInfo', + 'AzureVmWorkloadProtectedItem', 'Settings', 'SubProtectionPolicy', 'AzureVmWorkloadProtectionPolicy', - 'ErrorDetail', + 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabaseProtectedItem', + 'AzureWorkloadAutoProtectionIntent', 'AzureWorkloadErrorInfo', 'AzureWorkloadJobTaskDetails', 'AzureWorkloadJobExtendedInfo', 'AzureWorkloadJob', + 'AzureWorkloadSQLAutoProtectionIntent', 'NameInfo', 'BackupManagementUsage', 'BackupStatusRequest', @@ -580,6 +617,10 @@ 'AzureVmWorkloadItem', 'PreBackupValidation', 'AzureVmWorkloadProtectableItem', + 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', + 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', + 'AzureVmWorkloadSAPHanaSystemProtectableItem', + 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'AzureVmWorkloadSQLDatabaseProtectableItem', 'AzureVmWorkloadSQLDatabaseWorkloadItem', @@ -596,11 +637,15 @@ 'AzureWorkloadRecoveryPoint', 'AzureWorkloadRestoreRequest', 'PointInTimeRange', + 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint', + 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', + 'AzureWorkloadSAPHanaRecoveryPoint', + 'TargetRestoreInfo', + 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLPointInTimeRecoveryPoint', 'AzureWorkloadSQLPointInTimeRestoreRequest', 'AzureWorkloadSQLRecoveryPointExtendedInfo', 'AzureWorkloadSQLRecoveryPoint', - 'TargetRestoreInfo', 'SQLDataDirectoryMapping', 'AzureWorkloadSQLRestoreRequest', 'BackupEngineExtendedInfo', @@ -616,6 +661,7 @@ 'BMSBackupEngineQueryObject', 'BMSBackupEnginesQueryObject', 'BMSContainerQueryObject', + 'BMSContainersInquiryQueryObject', 'BMSPOQueryObject', 'BMSRefreshContainersQueryObject', 'BMSRPQueryObject', @@ -686,6 +732,7 @@ 'SupportStatus', 'LastBackupStatus', 'ProtectedItemHealthStatus', + 'WorkloadItemType', 'UsagesUnit', 'DataSourceType', 'ProtectionStatus', @@ -703,6 +750,7 @@ 'WorkloadType', 'HttpStatusCode', 'ValidationStatus', + 'CreateMode', 'HealthState', 'ScheduleRunType', 'AzureFileShareType', @@ -719,7 +767,6 @@ 'EnhancedSecurityState', 'ContainerType', 'RestorePointQueryType', - 'WorkloadItemType', 'RecoveryPointTierType', 'RecoveryPointTierStatus', 'BackupItemType', diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py new file mode 100644 index 000000000000..ad2495dd5f10 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py new file mode 100644 index 000000000000..0db35ed680b8 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_backup_goal_feature_support_request_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py index ab9014c78997..bb4ea1ce86b0 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item.py @@ -26,7 +26,7 @@ class AzureFileshareProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureFileshareProtectedItem(ProtectedItem): :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 @@ -81,6 +86,7 @@ class AzureFileshareProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py index 65f0a7367f0d..70ed72a34037 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_fileshare_protected_item_py3.py @@ -26,7 +26,7 @@ class AzureFileshareProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureFileshareProtectedItem(ProtectedItem): :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 @@ -81,6 +86,7 @@ class AzureFileshareProtectedItem(ProtectedItem): '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'}, @@ -91,8 +97,8 @@ class AzureFileshareProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py index 27d5496642dd..f6458bd8f65e 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py @@ -26,7 +26,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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 @@ -87,6 +92,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py index 532127d50cf0..3051d81f35d3 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item_py3.py @@ -26,7 +26,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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 @@ -87,6 +92,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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'}, @@ -100,6 +106,6 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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, 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, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py index f4276eca3742..97b05ba487ef 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item.py @@ -27,7 +27,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -42,6 +42,11 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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 @@ -88,6 +93,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py index b41dc1cf10d0..809ca3053562 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_scompute_vm_protected_item_py3.py @@ -27,7 +27,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -42,6 +42,11 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :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 @@ -88,6 +93,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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'}, @@ -101,6 +107,6 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): '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, 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, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py index 2d33a8378ae4..a74ebe50ca95 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info.py @@ -20,6 +20,8 @@ class AzureIaaSVMJobExtendedInfo(Model): 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 @@ -31,6 +33,7 @@ class AzureIaaSVMJobExtendedInfo(Model): _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'}, 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, } @@ -39,5 +42,6 @@ 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.dynamic_error_message = kwargs.get('dynamic_error_message', None) diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py index 83137dc16eb8..a41aa99bf4c3 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_job_extended_info_py3.py @@ -20,6 +20,8 @@ class AzureIaaSVMJobExtendedInfo(Model): 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 @@ -31,13 +33,15 @@ class AzureIaaSVMJobExtendedInfo(Model): _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'}, 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, } - def __init__(self, *, tasks_list=None, property_bag=None, progress_percentage: float=None, dynamic_error_message: str=None, **kwargs) -> None: + def __init__(self, *, tasks_list=None, property_bag=None, internal_property_bag=None, progress_percentage: float=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.dynamic_error_message = dynamic_error_message diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py index 558b67d25422..b59925f6e3d8 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item.py @@ -30,7 +30,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -45,6 +45,11 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :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 @@ -91,6 +96,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py index cc134305f5ef..ee21626db92b 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protected_item_py3.py @@ -30,7 +30,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -45,6 +45,11 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :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 @@ -91,6 +96,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): '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'}, @@ -108,8 +114,8 @@ class AzureIaaSVMProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py index c7c6fd8142d9..b1145707dd15 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy.py @@ -29,6 +29,9 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): 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 @@ -43,6 +46,7 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): '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'}, } @@ -50,5 +54,6 @@ 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py index 19902528cdd3..331896c34801 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_svm_protection_policy_py3.py @@ -29,6 +29,9 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): 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 @@ -43,12 +46,14 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): '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, time_zone: str=None, **kwargs) -> None: + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py new file mode 100644 index 000000000000..fc5387e89c4e --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py new file mode 100644 index 000000000000..9cca19f37d22 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_recovery_service_vault_protection_intent_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py index 9f35933d3369..89d7a5e7481a 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item.py @@ -26,7 +26,7 @@ class AzureSqlProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureSqlProtectedItem(ProtectedItem): :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 @@ -68,6 +73,7 @@ class AzureSqlProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py index 0791cf666cc3..20d596d2097d 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sql_protected_item_py3.py @@ -26,7 +26,7 @@ class AzureSqlProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureSqlProtectedItem(ProtectedItem): :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 @@ -68,14 +73,15 @@ class AzureSqlProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py index 32e7aadc568f..f30ad0a4be25 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container.py @@ -40,6 +40,12 @@ class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -55,6 +61,7 @@ class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): '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'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py index a8485357c201..1518c4613885 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_sqlag_workload_container_protection_container_py3.py @@ -40,6 +40,12 @@ class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -55,8 +61,9 @@ class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): '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'}, } - 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, **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, **kwargs) + 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, **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, **kwargs) self.container_type = 'SQLAGWorkLoadContainer' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py index 8ecd466caa2d..29385a89fed3 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container.py @@ -40,6 +40,12 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -55,6 +61,7 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): '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'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py index 2393cc9360c0..225da5e2dd15 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_app_container_protection_container_py3.py @@ -40,6 +40,12 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -55,8 +61,9 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): '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'}, } - 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, **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, **kwargs) + 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, **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, **kwargs) self.container_type = 'VMAppContainer' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py index cb5fc952701d..4a49ea05d58f 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item.py @@ -16,7 +16,9 @@ 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: AzureVmWorkloadSQLDatabaseWorkloadItem, + sub-classes are: AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, AzureVmWorkloadSQLInstanceWorkloadItem All required parameters must be populated in order to send to Azure. @@ -67,7 +69,7 @@ class AzureVmWorkloadItem(WorkloadItem): } _subtype_map = { - 'workload_item_type': {'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} + 'workload_item_type': {'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py index b0aa52cf5701..ff60103abc60 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_item_py3.py @@ -16,7 +16,9 @@ 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: AzureVmWorkloadSQLDatabaseWorkloadItem, + sub-classes are: AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, AzureVmWorkloadSQLInstanceWorkloadItem All required parameters must be populated in order to send to Azure. @@ -67,7 +69,7 @@ class AzureVmWorkloadItem(WorkloadItem): } _subtype_map = { - 'workload_item_type': {'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} + 'workload_item_type': {'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: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py index 8710ed72ec12..24ffedbd5d3a 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item.py @@ -16,7 +16,9 @@ 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: AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + sub-classes are: AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, AzureVmWorkloadSQLDatabaseProtectableItem, AzureVmWorkloadSQLInstanceProtectableItem @@ -79,7 +81,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): } _subtype_map = { - 'protectable_item_type': {'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} + 'protectable_item_type': {'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py index 613fd25b4687..e778af1fe61d 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protectable_item_py3.py @@ -16,7 +16,9 @@ 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: AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + sub-classes are: AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, AzureVmWorkloadSQLDatabaseProtectableItem, AzureVmWorkloadSQLInstanceProtectableItem @@ -79,7 +81,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): } _subtype_map = { - 'protectable_item_type': {'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} + 'protectable_item_type': {'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, subinquireditemcount: int=None, subprotectableitemcount: int=None, prebackupvalidation=None, **kwargs) -> None: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py new file mode 100644 index 000000000000..03cbf4aab126 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item.py @@ -0,0 +1,141 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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: AzureVmWorkloadSAPHanaDatabaseProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup managemenent 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' + :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': {'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem'} + } + + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py new file mode 100644 index 000000000000..18b8ed755ea9 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_protected_item_py3.py @@ -0,0 +1,141 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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: AzureVmWorkloadSAPHanaDatabaseProtectedItem + + All required parameters must be populated in order to send to Azure. + + :param backup_management_type: Type of backup managemenent 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' + :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': {'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem'} + } + + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py new file mode 100644 index 000000000000..08461cc45507 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 subinquireditemcount: For instance or AG, indicates number of DB's + present + :type subinquireditemcount: int + :param subprotectableitemcount: For instance or AG, indicates number of + DB's 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'}, + '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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py new file mode 100644 index 000000000000..14840640a0a1 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protectable_item_py3.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 subinquireditemcount: For instance or AG, indicates number of DB's + present + :type subinquireditemcount: int + :param subprotectableitemcount: For instance or AG, indicates number of + DB's 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'}, + '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, 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, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) + self.protectable_item_type = 'SAPHanaDatabase' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py new file mode 100644 index 000000000000..e9188d27eca7 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py new file mode 100644 index 000000000000..e76aa28f9525 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_protected_item_py3.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py new file mode 100644 index 000000000000..6e1e470f9613 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 DB's + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DB's 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py new file mode 100644 index 000000000000..d4fa24656aba --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_database_workload_item_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 DB's + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DB's 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py new file mode 100644 index 000000000000..6944eefd06ba --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 subinquireditemcount: For instance or AG, indicates number of DB's + present + :type subinquireditemcount: int + :param subprotectableitemcount: For instance or AG, indicates number of + DB's 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'}, + '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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py new file mode 100644 index 000000000000..a6e5516382f9 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_protectable_item_py3.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 subinquireditemcount: For instance or AG, indicates number of DB's + present + :type subinquireditemcount: int + :param subprotectableitemcount: For instance or AG, indicates number of + DB's 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'}, + '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, 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, subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, **kwargs) + self.protectable_item_type = 'SAPHanaSystem' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py new file mode 100644 index 000000000000..2c7f603893e5 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 DB's + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DB's 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py new file mode 100644 index 000000000000..113d662ef3bf --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sap_hana_system_workload_item_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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 DB's + present + :type subinquireditemcount: int + :param sub_workload_item_count: For instance or AG, indicates number of + DB's 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py index d18550cee706..ceeee3e30f22 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item.py @@ -26,7 +26,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): :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 @@ -95,6 +100,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py index d1938b620cf3..754ca0f4a197 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_vm_workload_sql_database_protected_item_py3.py @@ -26,7 +26,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): :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 @@ -95,6 +100,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): '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'}, @@ -110,8 +116,8 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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, **kwargs) self.friendly_name = friendly_name self.server_name = server_name self.parent_name = parent_name diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py new file mode 100644 index 000000000000..b4f9f06754bc --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py new file mode 100644 index 000000000000..7eb7d5687bf5 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_auto_protection_intent_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py index 543e5c56fbd8..76d7bfad9b30 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container.py @@ -45,6 +45,12 @@ class AzureWorkloadContainer(ProtectionContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -60,6 +66,7 @@ class AzureWorkloadContainer(ProtectionContainer): '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'}, } _subtype_map = { @@ -71,4 +78,5 @@ def __init__(self, **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.container_type = 'AzureWorkloadContainer' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py index 65f3152ad23b..41bba7c73a24 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_container_py3.py @@ -45,6 +45,12 @@ class AzureWorkloadContainer(ProtectionContainer): :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' + :type workload_type: str or + ~azure.mgmt.recoveryservicesbackup.models.WorkloadType """ _validation = { @@ -60,15 +66,17 @@ class AzureWorkloadContainer(ProtectionContainer): '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'}, } _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, **kwargs) -> None: + 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, **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.container_type = 'AzureWorkloadContainer' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py index 6d9a48a6f4b6..72b5fa377810 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job.py @@ -38,6 +38,8 @@ class AzureWorkloadJob(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 @@ -65,6 +67,7 @@ class AzureWorkloadJob(Job): '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]'}, @@ -73,6 +76,7 @@ class AzureWorkloadJob(Job): 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) diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py index f0790858750c..ee7e545078d8 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_job_py3.py @@ -38,6 +38,8 @@ class AzureWorkloadJob(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 @@ -65,14 +67,16 @@ class AzureWorkloadJob(Job): '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, duration=None, actions_info=None, error_details=None, extended_info=None, **kwargs) -> None: + 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.py new file mode 100644 index 000000000000..feecf2bf10d5 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point.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 .azure_workload_sap_hana_recovery_point import AzureWorkloadSAPHanaRecoveryPoint + + +class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadSAPHanaRecoveryPoint): + """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 recoverypoint 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.time_ranges = kwargs.get('time_ranges', None) + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.py new file mode 100644 index 000000000000..76449ea51062 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_recovery_point_py3.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 .azure_workload_sap_hana_recovery_point_py3 import AzureWorkloadSAPHanaRecoveryPoint + + +class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadSAPHanaRecoveryPoint): + """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 recoverypoint 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, **kwargs) + self.time_ranges = time_ranges + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py new file mode 100644 index 000000000000..1f6d8744b99f --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + '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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py new file mode 100644 index 000000000000..b412d4b441a9 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_point_in_time_restore_request_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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 point_in_time: PointInTime value + :type point_in_time: datetime + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, target_info=None, recovery_type=None, source_resource_id: str=None, property_bag=None, point_in_time=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(target_info=target_info, recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, **kwargs) + self.point_in_time = point_in_time + self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py new file mode 100644 index 000000000000..d18f8ab0858a --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AzureWorkloadSAPHanaRecoveryPoint(RecoveryPoint): + """SAPHana specific recoverypoint, specifcally encaspulates full/diff + recoverypoints. + + 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 recoverypoint 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': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaRecoveryPoint, 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 = 'AzureWorkloadSAPHanaRecoveryPoint' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py new file mode 100644 index 000000000000..b1ddee498bcf --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_recovery_point_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AzureWorkloadSAPHanaRecoveryPoint(RecoveryPoint): + """SAPHana specific recoverypoint, specifcally encaspulates full/diff + recoverypoints. + + 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 recoverypoint 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': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} + } + + def __init__(self, *, recovery_point_time_in_utc=None, type=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) + self.recovery_point_time_in_utc = recovery_point_time_in_utc + self.type = type + self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py new file mode 100644 index 000000000000..f7242faaca25 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AzureWorkloadSAPHanaRestoreRequest(RestoreRequest): + """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 target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} + } + + def __init__(self, **kwargs): + super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) + self.target_info = kwargs.get('target_info', None) + 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.object_type = 'AzureWorkloadSAPHanaRestoreRequest' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py new file mode 100644 index 000000000000..c5de6698accb --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sap_hana_restore_request_py3.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 AzureWorkloadSAPHanaRestoreRequest(RestoreRequest): + """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 target_info: Details of target database + :type target_info: + ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo + :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] + """ + + _validation = { + 'object_type': {'required': True}, + } + + _attribute_map = { + 'object_type': {'key': 'objectType', 'type': 'str'}, + 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, + 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, + 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, + 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, + } + + _subtype_map = { + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} + } + + def __init__(self, *, target_info=None, recovery_type=None, source_resource_id: str=None, property_bag=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) + self.target_info = target_info + self.recovery_type = recovery_type + self.source_resource_id = source_resource_id + self.property_bag = property_bag + self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py new file mode 100644 index 000000000000..7530074c5fd2 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py new file mode 100644 index 000000000000..20c2fb216410 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_workload_sql_auto_protection_intent_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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 managemenent 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py index aa4ff0110d16..e934b546276a 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request.py @@ -18,7 +18,7 @@ class BackupStatusRequest(Model): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type resource_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param resource_id: Entire ARM resource id of the resource diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py index 660f7ef77535..0e44817a5133 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_request_py3.py @@ -18,7 +18,7 @@ class BackupStatusRequest(Model): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type resource_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param resource_id: Entire ARM resource id of the resource diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py index 73c3e7f2eab0..80885ec72e6d 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response.py @@ -22,15 +22,15 @@ class BackupStatusResponse(Model): ~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 AAD. Possible + :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. This is required for portal + iaasvmcontainer;iaasvmcontainer;csname;vmname. :type container_name: str :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. This is required for portal + vm;iaasvmcontainer;csname;vmname. :type protected_item_name: str :param error_code: ErrorCode in case of intent failed :type error_code: str diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py index 4c2a61e02acd..2a9b7641efb1 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/backup_status_response_py3.py @@ -22,15 +22,15 @@ class BackupStatusResponse(Model): ~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 AAD. Possible + :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. This is required for portal + iaasvmcontainer;iaasvmcontainer;csname;vmname. :type container_name: str :param protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. This is required for portal + vm;iaasvmcontainer;csname;vmname. :type protected_item_name: str :param error_code: ErrorCode in case of intent failed :type error_code: str diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py index 60fc16110e72..dbc99a75d68d 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py @@ -28,7 +28,8 @@ class BMSContainerQueryObject(Model): 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' + 'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm', + 'HyperVCluster', 'WindowsClient' :type container_type: str or ~azure.mgmt.recoveryservicesbackup.models.ContainerType :param backup_engine_name: Backup engine name diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py index f941a05d0469..b68f6b78daf4 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object_py3.py @@ -28,7 +28,8 @@ class BMSContainerQueryObject(Model): 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' + 'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm', + 'HyperVCluster', 'WindowsClient' :type container_type: str or ~azure.mgmt.recoveryservicesbackup.models.ContainerType :param backup_engine_name: Backup engine name diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py new file mode 100644 index 000000000000..8894acfa8c49 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py new file mode 100644 index 000000000000..83eb9355fee5 --- /dev/null +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_containers_inquiry_query_object_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license 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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py index e781671827fe..bf3db1a9f8cd 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object.py @@ -13,7 +13,7 @@ class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the list containers API. + """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', diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py index 250bc8b15692..34b1c05a5781 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_refresh_containers_query_object_py3.py @@ -13,7 +13,7 @@ class BMSRefreshContainersQueryObject(Model): - """The query filters that can be used with the list containers API. + """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', diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py index b91b23fe7059..f589f05110ad 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object.py @@ -21,13 +21,14 @@ class BMSWorkloadItemQueryObject(Model): :type backup_management_type: str or ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase' + 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', + 'SAPHanaDatabase' :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' + 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param protection_status: Backup status query parameter. Possible values diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py index 4e9799049f70..4e57641ae91e 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_workload_item_query_object_py3.py @@ -21,13 +21,14 @@ class BMSWorkloadItemQueryObject(Model): :type backup_management_type: str or ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType :param workload_item_type: Workload Item type. Possible values include: - 'Invalid', 'SQLInstance', 'SQLDataBase' + 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', + 'SAPHanaDatabase' :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' + 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param protection_status: Backup status query parameter. Possible values diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py index bfe4d1466505..ed0e5762ecf8 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object.py @@ -23,7 +23,7 @@ class BMSPOQueryObject(Model): :param workload_type: Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare' + 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param container_name: Full name of the container whose Protectable diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py index 9cdfc290eec3..a6878de3f045 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bmspo_query_object_py3.py @@ -23,7 +23,7 @@ class BMSPOQueryObject(Model): :param workload_type: Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare' + 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param container_name: Full name of the container whose Protectable diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py index c6ebdd4f0a1c..953263d19ee2 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item.py @@ -26,7 +26,7 @@ class DPMProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class DPMProtectedItem(ProtectedItem): :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 @@ -73,6 +78,7 @@ class DPMProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py index 0796c3150308..b2528760ff93 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/dpm_protected_item_py3.py @@ -26,7 +26,7 @@ class DPMProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class DPMProtectedItem(ProtectedItem): :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 @@ -73,6 +78,7 @@ class DPMProtectedItem(ProtectedItem): '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'}, @@ -81,8 +87,8 @@ class DPMProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py index b739bdd9a923..4c4e2c274aab 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request.py @@ -16,7 +16,8 @@ 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: AzureVMResourceFeatureSupportRequest + sub-classes are: AzureBackupGoalFeatureSupportRequest, + AzureVMResourceFeatureSupportRequest All required parameters must be populated in order to send to Azure. @@ -33,7 +34,7 @@ class FeatureSupportRequest(Model): } _subtype_map = { - 'feature_type': {'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} + 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py index ee165936837e..15628cad981f 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/feature_support_request_py3.py @@ -16,7 +16,8 @@ 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: AzureVMResourceFeatureSupportRequest + sub-classes are: AzureBackupGoalFeatureSupportRequest, + AzureVMResourceFeatureSupportRequest All required parameters must be populated in order to send to Azure. @@ -33,7 +34,7 @@ class FeatureSupportRequest(Model): } _subtype_map = { - 'feature_type': {'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} + 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} } def __init__(self, **kwargs) -> None: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py index 94562b06e9e5..2a18b05fa163 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item.py @@ -26,7 +26,7 @@ class GenericProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class GenericProtectedItem(ProtectedItem): :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. @@ -74,6 +79,7 @@ class GenericProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py index 50bf890f08fb..99cbbcc8c005 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_protected_item_py3.py @@ -26,7 +26,7 @@ class GenericProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class GenericProtectedItem(ProtectedItem): :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. @@ -74,6 +79,7 @@ class GenericProtectedItem(ProtectedItem): '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'}, @@ -83,8 +89,8 @@ class GenericProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py index 19d50115fb87..1662bb84a086 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point.py @@ -46,8 +46,10 @@ class IaasVMRecoveryPoint(RecoveryPoint): :type is_managed_virtual_machine: bool :param virtual_machine_size: Virtual Machine Size :type virtual_machine_size: str - :param original_storage_account_option: Original SA Option + :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 = { @@ -67,6 +69,7 @@ class IaasVMRecoveryPoint(RecoveryPoint): '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): @@ -82,4 +85,5 @@ def __init__(self, **kwargs): 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py index 533f533b0078..0854b78fe2ac 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_recovery_point_py3.py @@ -46,8 +46,10 @@ class IaasVMRecoveryPoint(RecoveryPoint): :type is_managed_virtual_machine: bool :param virtual_machine_size: Virtual Machine Size :type virtual_machine_size: str - :param original_storage_account_option: Original SA Option + :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 = { @@ -67,9 +69,10 @@ class IaasVMRecoveryPoint(RecoveryPoint): '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, **kwargs) -> None: + 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 @@ -82,4 +85,5 @@ def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, r 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py index 88695e95a6bf..67a974720652 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request.py @@ -62,7 +62,7 @@ class IaasVMRestoreRequest(RestoreRequest): 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 SA Option + :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. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py index 91bb2c31beff..1974b5e32657 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/iaas_vm_restore_request_py3.py @@ -62,7 +62,7 @@ class IaasVMRestoreRequest(RestoreRequest): 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 SA Option + :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. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py index 03652133a779..efd5f41021e0 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details.py @@ -18,20 +18,26 @@ class KeyAndSecretDetails(Model): If the VM was encrypted then we will store follwing details : 1. Secret(BEK) - Url + Backup Data + vaultId. 2. Key(KEK) - Url + Backup Data + vaultId. + 3. EncryptionMechanism BEK and KEK can potentiallty 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 encrpytion 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py index cb66582adff4..b647fe22b51c 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/key_and_secret_details_py3.py @@ -18,20 +18,26 @@ class KeyAndSecretDetails(Model): If the VM was encrypted then we will store follwing details : 1. Secret(BEK) - Url + Backup Data + vaultId. 2. Key(KEK) - Url + Backup Data + vaultId. + 3. EncryptionMechanism BEK and KEK can potentiallty 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 encrpytion 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, **kwargs) -> None: + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py index 290446d78c3d..3ab174ec7f62 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container.py @@ -78,4 +78,4 @@ def __init__(self, **kwargs): 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 = 'MABWindowsContainer' + self.container_type = 'Windows' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py index 300c7892ca5c..95ab76b64abc 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info.py @@ -21,7 +21,7 @@ class MabContainerExtendedInfo(Model): container. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare' + 'AzureFileShare', 'SAPHanaDatabase' :type backup_item_type: str or ~azure.mgmt.recoveryservicesbackup.models.BackupItemType :param backup_items: List of backup items associated with this container. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py index 6fa456af82dc..f0d2f50b589c 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_extended_info_py3.py @@ -21,7 +21,7 @@ class MabContainerExtendedInfo(Model): container. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', - 'AzureFileShare' + 'AzureFileShare', 'SAPHanaDatabase' :type backup_item_type: str or ~azure.mgmt.recoveryservicesbackup.models.BackupItemType :param backup_items: List of backup items associated with this container. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py index 042cea2fa5cb..560894be1240 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_container_py3.py @@ -78,4 +78,4 @@ def __init__(self, *, friendly_name: str=None, backup_management_type=None, regi self.extended_info = extended_info self.mab_container_health_details = mab_container_health_details self.container_health_state = container_health_state - self.container_type = 'MABWindowsContainer' + self.container_type = 'Windows' diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py index 7e406334f413..de40e52acb30 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py @@ -26,7 +26,7 @@ class MabFileFolderProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class MabFileFolderProtectedItem(ProtectedItem): :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. @@ -75,6 +80,7 @@ class MabFileFolderProtectedItem(ProtectedItem): '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'}, diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py index 77dc4ffc8a24..00afedba0e2a 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item_py3.py @@ -26,7 +26,7 @@ class MabFileFolderProtectedItem(ProtectedItem): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -41,6 +41,11 @@ class MabFileFolderProtectedItem(ProtectedItem): :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. @@ -75,6 +80,7 @@ class MabFileFolderProtectedItem(ProtectedItem): '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'}, @@ -85,8 +91,8 @@ class MabFileFolderProtectedItem(ProtectedItem): '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, 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, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, 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 diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py index 39b5ca2f1797..37846c82f629 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job.py @@ -51,13 +51,14 @@ class MabJob(Job): 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' + 'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm', + 'HyperVCluster', 'WindowsClient' :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' + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param error_details: The errors. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py index 77822f0e41f9..1da283087bf4 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_job_py3.py @@ -51,13 +51,14 @@ class MabJob(Job): 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', 'SQLAGWorkLoadContainer', 'StorageContainer', - 'GenericContainer' + 'GenericContainer', 'SqlCluster', 'ExchangeDAG', 'SharepointFarm', + 'HyperVCluster', 'WindowsClient' :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' + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.WorkloadType :param error_details: The errors. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py index 116f56e224e1..23b321378d7c 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request.py @@ -20,15 +20,15 @@ class PreValidateEnableBackupRequest(Model): 2. VM is already protected 3. Any VM related configuration passed in properties. - :param resource_type: Container Type - VM, SQLPaaS, DPM etc. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare' + :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' :type resource_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM VM Id + :param resource_id: ARM Virtual Machine Id :type resource_id: str - :param vault_id: Entire vault id of the resource + :param vault_id: ARM id of the Recovery Services Vault :type vault_id: str :param properties: Configuration of VM if any needs to be validated like OS type etc diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py index 61b556bce8d8..be47c3d34ecc 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/pre_validate_enable_backup_request_py3.py @@ -20,15 +20,15 @@ class PreValidateEnableBackupRequest(Model): 2. VM is already protected 3. Any VM related configuration passed in properties. - :param resource_type: Container Type - VM, SQLPaaS, DPM etc. Possible - values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - 'GenericDataSource', 'SQLDataBase', 'AzureFileShare' + :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' :type resource_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType - :param resource_id: Entire ARM VM Id + :param resource_id: ARM Virtual Machine Id :type resource_id: str - :param vault_id: Entire vault id of the resource + :param vault_id: ARM id of the Recovery Services Vault :type vault_id: str :param properties: Configuration of VM if any needs to be validated like OS type etc diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py index 65e486c106ff..a77da44256dc 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item.py @@ -17,8 +17,9 @@ class ProtectedItem(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, - DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem + AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, + GenericProtectedItem, MabFileFolderProtectedItem All required parameters must be populated in order to send to Azure. @@ -31,7 +32,7 @@ class ProtectedItem(Model): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -46,6 +47,11 @@ class ProtectedItem(Model): :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 """ @@ -62,11 +68,12 @@ class ProtectedItem(Model): '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', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} + 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} } def __init__(self, **kwargs): @@ -78,4 +85,5 @@ def __init__(self, **kwargs): 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py index 44a04e035871..9652a3bd8fc2 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_py3.py @@ -17,8 +17,9 @@ class ProtectedItem(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, - AzureSqlProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, - DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem + AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, + GenericProtectedItem, MabFileFolderProtectedItem All required parameters must be populated in order to send to Azure. @@ -31,7 +32,7 @@ class ProtectedItem(Model): :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' + 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type workload_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param container_name: Unique name of container @@ -46,6 +47,11 @@ class ProtectedItem(Model): :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 """ @@ -62,14 +68,15 @@ class ProtectedItem(Model): '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', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} + 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem', '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, **kwargs) -> None: + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, **kwargs) -> None: super(ProtectedItem, self).__init__(**kwargs) self.backup_management_type = backup_management_type self.workload_type = workload_type @@ -78,4 +85,5 @@ def __init__(self, *, backup_management_type=None, workload_type=None, container 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py index 3d60de184520..3e32b9005001 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object.py @@ -28,7 +28,7 @@ class ProtectedItemQueryObject(Model): :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' + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type item_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param policy_name: Backup policy name associated with the backup item. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py index d34d1077699f..b16e9e9c1ef6 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protected_item_query_object_py3.py @@ -28,7 +28,7 @@ class ProtectedItemQueryObject(Model): :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' + 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase' :type item_type: str or ~azure.mgmt.recoveryservicesbackup.models.DataSourceType :param policy_name: Backup policy name associated with the backup item. diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py index 1b3911fea1de..b410911db36b 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container.py @@ -53,7 +53,7 @@ class ProtectionContainer(Model): } _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer', 'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'MABWindowsContainer': 'MabContainer'} + 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer', 'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'Windows': 'MabContainer'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py index 243490500ff6..4c04ec07a967 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_container_py3.py @@ -53,7 +53,7 @@ class ProtectionContainer(Model): } _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer', 'AzureSqlContainer': 'AzureSqlContainer', 'StorageContainer': 'AzureStorageContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'MABWindowsContainer': 'MabContainer'} + 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer', '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: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py index f37c921d311b..711760ce6dc2 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent.py @@ -16,7 +16,8 @@ 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: AzureResourceProtectionIntent + sub-classes are: AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent All required parameters must be populated in order to send to Azure. @@ -57,7 +58,7 @@ class ProtectionIntent(Model): } _subtype_map = { - 'protection_intent_item_type': {'AzureResourceItem': 'AzureResourceProtectionIntent'} + 'protection_intent_item_type': {'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent', 'AzureResourceItem': 'AzureResourceProtectionIntent'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py index 35a27f2925b3..856729108121 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_intent_py3.py @@ -16,7 +16,8 @@ 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: AzureResourceProtectionIntent + sub-classes are: AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent All required parameters must be populated in order to send to Azure. @@ -57,7 +58,7 @@ class ProtectionIntent(Model): } _subtype_map = { - 'protection_intent_item_type': {'AzureResourceItem': 'AzureResourceProtectionIntent'} + '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: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py index b9714ef633c8..a9a38a9ce79f 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object.py @@ -23,14 +23,22 @@ class ProtectionPolicyQueryObject(Model): ~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' + :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py index 08d9df201d1b..075e45e60fa6 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/protection_policy_query_object_py3.py @@ -23,14 +23,22 @@ class ProtectionPolicyQueryObject(Model): ~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' + :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, **kwargs) -> None: + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py index 514f61bbc720..d0c3082d2b15 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point.py @@ -18,7 +18,8 @@ class RecoveryPoint(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint + AzureWorkloadSAPHanaRecoveryPoint, GenericRecoveryPoint, + IaasVMRecoveryPoint All required parameters must be populated in order to send to Azure. @@ -35,7 +36,7 @@ class RecoveryPoint(Model): } _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} + 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py index e2e87c51e520..9b132c208824 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_point_py3.py @@ -18,7 +18,8 @@ class RecoveryPoint(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, - GenericRecoveryPoint, IaasVMRecoveryPoint + AzureWorkloadSAPHanaRecoveryPoint, GenericRecoveryPoint, + IaasVMRecoveryPoint All required parameters must be populated in order to send to Azure. @@ -35,7 +36,7 @@ class RecoveryPoint(Model): } _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} + 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} } def __init__(self, **kwargs) -> None: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_services_backup_client_enums.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_services_backup_client_enums.py index c65bb4a3066a..caa3db005b65 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_services_backup_client_enums.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/recovery_services_backup_client_enums.py @@ -73,6 +73,15 @@ class ProtectedItemHealthStatus(str, Enum): ir_pending = "IRPending" +class WorkloadItemType(str, Enum): + + invalid = "Invalid" + sql_instance = "SQLInstance" + sql_data_base = "SQLDataBase" + sap_hana_system = "SAPHanaSystem" + sap_hana_database = "SAPHanaDatabase" + + class UsagesUnit(str, Enum): count = "Count" @@ -98,6 +107,7 @@ class DataSourceType(str, Enum): generic_data_source = "GenericDataSource" sql_data_base = "SQLDataBase" azure_file_share = "AzureFileShare" + sap_hana_database = "SAPHanaDatabase" class ProtectionStatus(str, Enum): @@ -192,6 +202,7 @@ class WeekOfMonth(str, Enum): third = "Third" fourth = "Fourth" last = "Last" + invalid = "Invalid" class MonthOfYear(str, Enum): @@ -228,6 +239,11 @@ class MabServerType(str, Enum): sqlag_work_load_container = "SQLAGWorkLoadContainer" storage_container = "StorageContainer" generic_container = "GenericContainer" + sql_cluster = "SqlCluster" + exchange_dag = "ExchangeDAG" + sharepoint_farm = "SharepointFarm" + hyper_vcluster = "HyperVCluster" + windows_client = "WindowsClient" class WorkloadType(str, Enum): @@ -245,6 +261,7 @@ class WorkloadType(str, Enum): generic_data_source = "GenericDataSource" sql_data_base = "SQLDataBase" azure_file_share = "AzureFileShare" + sap_hana_database = "SAPHanaDatabase" class HttpStatusCode(str, Enum): @@ -305,6 +322,13 @@ class ValidationStatus(str, Enum): failed = "Failed" +class CreateMode(str, Enum): + + invalid = "Invalid" + default = "Default" + recover = "Recover" + + class HealthState(str, Enum): passed = "Passed" @@ -427,6 +451,11 @@ class ContainerType(str, Enum): sqlag_work_load_container = "SQLAGWorkLoadContainer" storage_container = "StorageContainer" generic_container = "GenericContainer" + sql_cluster = "SqlCluster" + exchange_dag = "ExchangeDAG" + sharepoint_farm = "SharepointFarm" + hyper_vcluster = "HyperVCluster" + windows_client = "WindowsClient" class RestorePointQueryType(str, Enum): @@ -439,13 +468,6 @@ class RestorePointQueryType(str, Enum): all = "All" -class WorkloadItemType(str, Enum): - - invalid = "Invalid" - sql_instance = "SQLInstance" - sql_data_base = "SQLDataBase" - - class RecoveryPointTierType(str, Enum): invalid = "Invalid" @@ -476,6 +498,7 @@ class BackupItemType(str, Enum): generic_data_source = "GenericDataSource" sql_data_base = "SQLDataBase" azure_file_share = "AzureFileShare" + sap_hana_database = "SAPHanaDatabase" class OperationStatusValues(str, Enum): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py index d18be734a9ee..8156117b88cd 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py @@ -18,7 +18,7 @@ class RestoreRequest(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest + AzureWorkloadSAPHanaRestoreRequest, IaasVMRestoreRequest All required parameters must be populated in order to send to Azure. @@ -35,7 +35,7 @@ class RestoreRequest(Model): } _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} } def __init__(self, **kwargs): diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py index 659d951369f9..6250bedb3c80 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request_py3.py @@ -18,7 +18,7 @@ class RestoreRequest(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, - IaasVMRestoreRequest + AzureWorkloadSAPHanaRestoreRequest, IaasVMRestoreRequest All required parameters must be populated in order to send to Azure. @@ -35,7 +35,7 @@ class RestoreRequest(Model): } _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} } def __init__(self, **kwargs) -> None: diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py index e7f38a6d995b..4b843269abf4 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings.py @@ -20,14 +20,20 @@ class Settings(Model): :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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py index 260c77d0dc13..6e1708dd2382 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/settings_py3.py @@ -20,14 +20,20 @@ class Settings(Model): :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, **kwargs) -> None: + 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/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py index de2d8363ff7b..eb51771638b5 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info.py @@ -22,7 +22,8 @@ class TargetRestoreInfo(Model): :param container_id: Resource Id name of the container in which Target DataBase resides :type container_id: str - :param database_name: Database name SQL InstanceName/DataBaseName + :param database_name: Database name InstanceName/DataBaseName for SQL or + System/DbName for SAP Hana :type database_name: str """ diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py index 717765ad36ac..809db7da7ce5 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/target_restore_info_py3.py @@ -22,7 +22,8 @@ class TargetRestoreInfo(Model): :param container_id: Resource Id name of the container in which Target DataBase resides :type container_id: str - :param database_name: Database name SQL InstanceName/DataBaseName + :param database_name: Database name InstanceName/DataBaseName for SQL or + System/DbName for SAP Hana :type database_name: str """ diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py index f73edffebe68..50fff4a723ad 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/protection_containers_operations.py @@ -254,7 +254,7 @@ def unregister( unregister.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}'} def inquire( - self, vault_name, resource_group_name, fabric_name, container_name, custom_headers=None, raw=False, **operation_config): + self, vault_name, resource_group_name, fabric_name, container_name, filter=None, custom_headers=None, raw=False, **operation_config): """Inquires all the protectable item in the given container that can be protected. @@ -271,6 +271,8 @@ def inquire( :param container_name: Name of the container in which inquiry needs to be triggered. :type container_name: str + :param filter: OData filter options. + :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -294,6 +296,8 @@ def inquire( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py index 9bd1dfac7ecb..3e682bbd5fb1 100644 --- a/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py +++ b/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.2.0" +VERSION = "0.3.0"