# 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::Web::Mgmt::V2016_08_01
  module Models
    #
    # Application logs azure blob storage configuration.
    #
    class AzureBlobStorageApplicationLogsConfig

      include MsRestAzure

      # @return [LogLevel] Log level. Possible values include: 'Off',
      # 'Verbose', 'Information', 'Warning', 'Error'
      attr_accessor :level

      # @return [String] SAS url to a azure blob container with
      # read/write/list/delete permissions.
      attr_accessor :sas_url

      # @return [Integer] Retention in days.
      # Remove blobs older than X days.
      # 0 or lower means no retention.
      attr_accessor :retention_in_days


      #
      # Mapper for AzureBlobStorageApplicationLogsConfig class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AzureBlobStorageApplicationLogsConfig',
          type: {
            name: 'Composite',
            class_name: 'AzureBlobStorageApplicationLogsConfig',
            model_properties: {
              level: {
                client_side_validation: true,
                required: false,
                serialized_name: 'level',
                type: {
                  name: 'Enum',
                  module: 'LogLevel'
                }
              },
              sas_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sasUrl',
                type: {
                  name: 'String'
                }
              },
              retention_in_days: {
                client_side_validation: true,
                required: false,
                serialized_name: 'retentionInDays',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
