Class: Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::AzureVmWorkloadProtectionPolicy
- Inherits:
-
ProtectionPolicy
- Object
- ProtectionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::AzureVmWorkloadProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb
Overview
Azure VM (Mercury) workload-specific backup policy.
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#make_policy_consistent ⇒ Boolean
Fix the policy inconsistency.
-
#settings ⇒ Settings
Common settings for the backup management.
-
#sub_protection_policy ⇒ Array<SubProtectionPolicy>
which includes schedule and retention.
-
#work_load_type ⇒ WorkloadType
Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’, ‘SAPAseDatabase’.
Attributes inherited from ProtectionPolicy
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AzureVmWorkloadProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AzureVmWorkloadProtectionPolicy
constructor
A new instance of AzureVmWorkloadProtectionPolicy.
Constructor Details
#initialize ⇒ AzureVmWorkloadProtectionPolicy
Returns a new instance of AzureVmWorkloadProtectionPolicy.
16 17 18 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 16 def initialize @backupManagementType = "AzureWorkload" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
20 21 22 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 20 def backupManagementType @backupManagementType end |
#make_policy_consistent ⇒ Boolean
Returns Fix the policy inconsistency.
37 38 39 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 37 def make_policy_consistent @make_policy_consistent end |
#settings ⇒ Settings
Returns Common settings for the backup management.
30 31 32 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 30 def settings @settings end |
#sub_protection_policy ⇒ Array<SubProtectionPolicy>
which includes schedule and retention
34 35 36 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 34 def sub_protection_policy @sub_protection_policy end |
#work_load_type ⇒ WorkloadType
Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’, ‘SAPAseDatabase’
27 28 29 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 27 def work_load_type @work_load_type end |
Class Method Details
.mapper ⇒ Object
Mapper for AzureVmWorkloadProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/azure_vm_workload_protection_policy.rb', line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AzureWorkload', type: { name: 'Composite', class_name: 'AzureVmWorkloadProtectionPolicy', model_properties: { protected_items_count: { client_side_validation: true, required: false, serialized_name: 'protectedItemsCount', type: { name: 'Number' } }, backupManagementType: { client_side_validation: true, required: true, serialized_name: 'backupManagementType', type: { name: 'String' } }, work_load_type: { client_side_validation: true, required: false, serialized_name: 'workLoadType', type: { name: 'String' } }, settings: { client_side_validation: true, required: false, serialized_name: 'settings', type: { name: 'Composite', class_name: 'Settings' } }, sub_protection_policy: { client_side_validation: true, required: false, serialized_name: 'subProtectionPolicy', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SubProtectionPolicyElementType', type: { name: 'Composite', class_name: 'SubProtectionPolicy' } } } }, make_policy_consistent: { client_side_validation: true, required: false, serialized_name: 'makePolicyConsistent', type: { name: 'Boolean' } } } } } end |