# 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::Postgresql::Mgmt::V2017_12_01_preview
  module Models
    #
    # Represents a log file.
    #
    class LogFile < ProxyResource

      include MsRestAzure

      # @return [Integer] Size of the log file.
      attr_accessor :size_in_kb

      # @return [DateTime] Creation timestamp of the log file.
      attr_accessor :created_time

      # @return [DateTime] Last modified timestamp of the log file.
      attr_accessor :last_modified_time

      # @return [String] Type of the log file.
      attr_accessor :log_file_type

      # @return [String] The url to download the log file from.
      attr_accessor :url


      #
      # Mapper for LogFile class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LogFile',
          type: {
            name: 'Composite',
            class_name: 'LogFile',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              size_in_kb: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.sizeInKB',
                type: {
                  name: 'Number'
                }
              },
              created_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.createdTime',
                type: {
                  name: 'DateTime'
                }
              },
              last_modified_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.lastModifiedTime',
                type: {
                  name: 'DateTime'
                }
              },
              log_file_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.type',
                type: {
                  name: 'String'
                }
              },
              url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.url',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
