Sha256: cbbc13b8f93e32ecd0a3c4efd8a6dbb73ffd657f9c7c4203ef244b4780ac3b29

Contents?: true

Size: 803 Bytes

Versions: 22

Compression:

Stored size: 803 Bytes

Contents

require 'fog/core/model'

module Fog
  module AWS
    class RDS
      class LogFile < Fog::Model
        attribute :rds_id, :aliases => 'DBInstanceIdentifier'
        attribute :name, :aliases => 'LogFileName'
        attribute :size, :aliases => 'Size', :type => :integer
        attribute :last_written, :aliases => 'LastWritten', :type => :time
        attribute :content, :aliases => 'LogFileData'
        attribute :marker, :aliases => 'Marker'
        attribute :more_content_available, :aliases => 'AdditionalDataPending', :type => :boolean

        def content_excerpt(marker=nil)
          result = service.download_db_logfile_portion(self.rds_id, self.name, {:marker => marker})
          merge_attributes(result.body['DownloadDBLogFilePortionResult'])
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
ns-fog-1.22.2 lib/fog/aws/models/rds/log_file.rb
fog-1.22.1 lib/fog/aws/models/rds/log_file.rb