Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::LongTermRetentionPolicy

Inherits:
RetentionPolicy
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb

Overview

Long term retention policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLongTermRetentionPolicy

Returns a new instance of LongTermRetentionPolicy.

[View source]

16
17
18
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 16

def initialize
  @retentionPolicyType = "LongTermRetentionPolicy"
end

Instance Attribute Details

#daily_scheduleDailyRetentionSchedule

protection policy.

Returns:


24
25
26
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 24

def daily_schedule
  @daily_schedule
end

#monthly_scheduleMonthlyRetentionSchedule

protection policy.

Returns:


32
33
34
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 32

def monthly_schedule
  @monthly_schedule
end

#retentionPolicyTypeObject

Returns the value of attribute retentionPolicyType.


20
21
22
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 20

def retentionPolicyType
  @retentionPolicyType
end

#weekly_scheduleWeeklyRetentionSchedule

protection policy.

Returns:


28
29
30
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 28

def weekly_schedule
  @weekly_schedule
end

#yearly_scheduleYearlyRetentionSchedule

protection policy.

Returns:


36
37
38
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 36

def yearly_schedule
  @yearly_schedule
end

Class Method Details

.mapperObject

Mapper for LongTermRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.

[View source]

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
90
91
92
93
94
95
96
97
98
99
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 43

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LongTermRetentionPolicy',
    type: {
      name: 'Composite',
      class_name: 'LongTermRetentionPolicy',
      model_properties: {
        retentionPolicyType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'retentionPolicyType',
          type: {
            name: 'String'
          }
        },
        daily_schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dailySchedule',
          type: {
            name: 'Composite',
            class_name: 'DailyRetentionSchedule'
          }
        },
        weekly_schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'weeklySchedule',
          type: {
            name: 'Composite',
            class_name: 'WeeklyRetentionSchedule'
          }
        },
        monthly_schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'monthlySchedule',
          type: {
            name: 'Composite',
            class_name: 'MonthlyRetentionSchedule'
          }
        },
        yearly_schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'yearlySchedule',
          type: {
            name: 'Composite',
            class_name: 'YearlyRetentionSchedule'
          }
        }
      }
    }
  }
end