Sha256: 3fb7b42059203f84240717032d55c32cf376d74bc52e3db95abd326455556b9f

Contents?: true

Size: 1.61 KB

Versions: 12

Compression:

Stored size: 1.61 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Monitor::Mgmt::V2016_03_01
  module Models
    #
    # Specifies the retention policy for the log.
    #
    class RetentionPolicy

      include MsRestAzure

      # @return [Boolean] a value indicating whether the retention policy is
      # enabled.
      attr_accessor :enabled

      # @return [Integer] the number of days for the retention in days. A value
      # of 0 will retain the events indefinitely.
      attr_accessor :days


      #
      # Mapper for RetentionPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RetentionPolicy',
          type: {
            name: 'Composite',
            class_name: 'RetentionPolicy',
            model_properties: {
              enabled: {
                client_side_validation: true,
                required: true,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              days: {
                client_side_validation: true,
                required: true,
                serialized_name: 'days',
                constraints: {
                  InclusiveMinimum: 0
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.19.0 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.18.0 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.6 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.5 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.4 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.3 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.2 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.1 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.17.0 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.16.1 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.16.0 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb
azure_mgmt_monitor-0.15.2 lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb