Sha256: 79d80286badd392bb86ce93ad6588ac244e311cf76a59ba23e61610a64dc3663

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 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::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

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.13.0 lib/generated/azure_mgmt_monitor/models/log_settings.rb