Sha256: c3c9c4b90666338d6f233f3a9a5a17a5192fcb7a1e61474abfd1fe2a38cb7a5c

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

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

module Azure::ARM::Monitor
  module Models
    #
    # Part of MultiTenantDiagnosticSettings. Specifies the settings for a
    # particular log.
    #
    class LogSettings

      include MsRestAzure

      include MsRest::JSONable
      # @return [String] Name of a Diagnostic Log category for a resource type
      # this setting is applied to. To obtain the list of Diagnostic Log
      # categories for a resource, first perform a GET diagnostic settings
      # operation.
      attr_accessor :category

      # @return [Boolean] a value indicating whether this log is enabled.
      attr_accessor :enabled

      # @return [RetentionPolicy] the retention policy for this log.
      attr_accessor :retention_policy


      #
      # Mapper for LogSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'LogSettings',
          type: {
            name: 'Composite',
            class_name: 'LogSettings',
            model_properties: {
              category: {
                required: false,
                serialized_name: 'category',
                type: {
                  name: 'String'
                }
              },
              enabled: {
                required: true,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              retention_policy: {
                required: false,
                serialized_name: 'retentionPolicy',
                type: {
                  name: 'Composite',
                  class_name: 'RetentionPolicy'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.12.0 lib/generated/azure_mgmt_monitor/models/log_settings.rb
azure_mgmt_monitor-0.11.0 lib/generated/azure_mgmt_monitor/models/log_settings.rb