class Azure::ServiceFabric::V7_0_0_42::Models::BasicRetentionPolicyDescription

Describes basic retention policy.

Attributes

RetentionPolicyType[RW]
minimum_number_of_backups[RW]

@return [Integer] It is the minimum number of backups to be retained at any point of time. If specified with a non zero value, backups will not be deleted even if the backups have gone past retention duration and have number of backups less than or equal to it.

retention_duration[RW]

@return [Duration] It is the minimum duration for which a backup created, will remain stored in the storage and might get deleted after that span of time. It should be specified in ISO8601 format.

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/generated/azure_service_fabric/models/basic_retention_policy_description.rb, line 38
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Basic',
    type: {
      name: 'Composite',
      class_name: 'BasicRetentionPolicyDescription',
      model_properties: {
        RetentionPolicyType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RetentionPolicyType',
          type: {
            name: 'String'
          }
        },
        retention_duration: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RetentionDuration',
          type: {
            name: 'TimeSpan'
          }
        },
        minimum_number_of_backups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MinimumNumberOfBackups',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/7.0.0.42/generated/azure_service_fabric/models/basic_retention_policy_description.rb, line 16
def initialize
  @RetentionPolicyType = "Basic"
end