Class: Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb

Overview

A long term retention policy.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#monthly_retentionString

ISO 8601 format.

Returns:

  • (String)

    The monthly retention policy for an LTR backup in an



21
22
23
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 21

def monthly_retention
  @monthly_retention
end

#week_of_yearInteger

8601 format.

Returns:

  • (Integer)

    The week of year to take the yearly backup in an ISO



29
30
31
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 29

def week_of_year
  @week_of_year
end

#weekly_retentionString

ISO 8601 format.

Returns:

  • (String)

    The weekly retention policy for an LTR backup in an



17
18
19
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 17

def weekly_retention
  @weekly_retention
end

#yearly_retentionString

ISO 8601 format.

Returns:

  • (String)

    The yearly retention policy for an LTR backup in an



25
26
27
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 25

def yearly_retention
  @yearly_retention
end

Class Method Details

.mapperObject

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



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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BackupLongTermRetentionPolicy',
    type: {
      name: 'Composite',
      class_name: 'BackupLongTermRetentionPolicy',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        weekly_retention: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.weeklyRetention',
          type: {
            name: 'String'
          }
        },
        monthly_retention: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.monthlyRetention',
          type: {
            name: 'String'
          }
        },
        yearly_retention: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.yearlyRetention',
          type: {
            name: 'String'
          }
        },
        week_of_year: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.weekOfYear',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end