Class: Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::MabProtectionPolicy

Inherits:
ProtectionPolicy
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb

Overview

Mab container-specific backup policy.

Instance Attribute Summary collapse

Attributes inherited from ProtectionPolicy

#protected_items_count

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMabProtectionPolicy

Returns a new instance of MabProtectionPolicy.



16
17
18
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 16

def initialize
  @backupManagementType = "MAB"
end

Instance Attribute Details

#backupManagementTypeObject

Returns the value of attribute backupManagementType.



20
21
22
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 20

def backupManagementType
  @backupManagementType
end

#retention_policyRetentionPolicy

Returns Retention policy details.

Returns:



26
27
28
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 26

def retention_policy
  @retention_policy
end

#schedule_policySchedulePolicy

Returns Backup schedule of backup policy.

Returns:



23
24
25
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/mab_protection_policy.rb', line 23

def schedule_policy
  @schedule_policy
end

Class Method Details

.mapperObject

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-05-13/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