class Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy

A long term retention policy.

Attributes

monthly_retention[RW]

@return [String] The monthly retention policy for an LTR backup in an ISO 8601 format.

week_of_year[RW]

@return [Integer] The week of year to take the yearly backup in an ISO 8601 format.

weekly_retention[RW]

@return [String] The weekly retention policy for an LTR backup in an ISO 8601 format.

yearly_retention[RW]

@return [String] The yearly retention policy for an LTR backup in an ISO 8601 format.

Private Class Methods

mapper() click to toggle source

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

# 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