Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::MabProtectionPolicy
- Inherits:
-
ProtectionPolicy
- Object
- ProtectionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::MabProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb
Overview
Mab container-specific backup policy.
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#retention_policy ⇒ RetentionPolicy
Retention policy details.
-
#schedule_policy ⇒ SchedulePolicy
Backup schedule of backup policy.
Attributes inherited from ProtectionPolicy
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MabProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ MabProtectionPolicy
constructor
A new instance of MabProtectionPolicy.
Constructor Details
#initialize ⇒ MabProtectionPolicy
Returns a new instance of MabProtectionPolicy.
16 17 18 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 16 def initialize @backupManagementType = "MAB" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
20 21 22 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 20 def backupManagementType @backupManagementType end |
#retention_policy ⇒ RetentionPolicy
Returns Retention policy details.
26 27 28 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 26 def retention_policy @retention_policy end |
#schedule_policy ⇒ SchedulePolicy
Returns Backup schedule of backup policy.
23 24 25 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 23 def schedule_policy @schedule_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for MabProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 38 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 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MAB', type: { name: 'Composite', class_name: 'MabProtectionPolicy', 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 |