Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::AzureIaaSVMProtectionPolicy
- Inherits:
-
ProtectionPolicy
- Object
- ProtectionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::AzureIaaSVMProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb
Overview
Azure VM (also known as IaaS VM) workload-specific backup policy.
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#retention_policy ⇒ RetentionPolicy
backup copy retention ranges.
-
#schedule_policy ⇒ SchedulePolicy
backup policy.
Attributes inherited from ProtectionPolicy
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AzureIaaSVMProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AzureIaaSVMProtectionPolicy
constructor
A new instance of AzureIaaSVMProtectionPolicy.
Constructor Details
#initialize ⇒ AzureIaaSVMProtectionPolicy
Returns a new instance of AzureIaaSVMProtectionPolicy.
20 21 22 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 20 def initialize @backupManagementType = "AzureIaasVM" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
24 25 26 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 24 def backupManagementType @backupManagementType end |
#retention_policy ⇒ RetentionPolicy
backup copy retention ranges.
32 33 34 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 32 def retention_policy @retention_policy end |
#schedule_policy ⇒ SchedulePolicy
backup policy.
28 29 30 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 28 def schedule_policy @schedule_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for AzureIaaSVMProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
39 40 41 42 43 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 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotection_policy.rb', line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AzureIaasVM', type: { name: 'Composite', class_name: 'AzureIaaSVMProtectionPolicy', 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' } }, schedule_policy: { client_side_validation: true, required: false, serialized_name: 'schedulePolicy', type: { name: 'Composite', polymorphic_discriminator: 'schedulePolicyType', uber_parent: 'SchedulePolicy', class_name: 'SchedulePolicy' } }, retention_policy: { client_side_validation: true, required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', polymorphic_discriminator: 'retentionPolicyType', uber_parent: 'RetentionPolicy', class_name: 'RetentionPolicy' } } } } } end |