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
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/models/rds/log_file.rb
fog-aws-0.1.1 lib/fog/aws/models/rds/log_file.rb
fog-aws-0.1.0 lib/fog/aws/models/rds/log_file.rb
fog-aws-0.0.8 lib/fog/aws/models/rds/log_file.rb
fog-aws-0.0.7 lib/fog/aws/models/rds/log_file.rb
fog-aws-0.0.6 lib/fog/aws/models/rds/log_file.rb
fog-aws-0.0.5 lib/fog/aws/models/rds/log_file.rb
fog-1.26.0 lib/fog/aws/models/rds/log_file.rb
fog-1.25.0 lib/fog/aws/models/rds/log_file.rb
nsidc-fog-1.24.1 lib/fog/aws/models/rds/log_file.rb
fog-1.24.0 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.11 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.10 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.9 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.8 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.7 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.6 lib/fog/aws/models/rds/log_file.rb
fog-1.23.0 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.4 lib/fog/aws/models/rds/log_file.rb
ns-fog-1.22.3 lib/fog/aws/models/rds/log_file.rb