Sha256: 6336ed8b4699282dc123e928635a59a083f9a2816e5c4541e66c034adfff0483

Contents?: true

Size: 994 Bytes

Versions: 48

Compression:

Stored size: 994 Bytes

Contents

require 'fog/core/collection'
require 'fog/aws/models/rds/parameter'

module Fog
  module AWS
    class RDS

      class Parameters < Fog::Collection
        attribute :group
        attribute :filters
        model Fog::AWS::RDS::Parameter

        def initialize(attributes)
          self.filters ||= {}
          if attributes[:source]
            filters[:source] = attributes[:source]
          end
          super
        end

        def all(filters = filters)
          self.filters = filters
          result = []
          marker = nil
          finished = false
          while !finished
            data = connection.describe_db_parameters(group.id, filters.merge(:marker => marker)).body
            result.concat(data['DescribeDBParametersResult']['Parameters'])
            marker = data['DescribeDBParametersResult']['Marker']
            finished = marker.nil?
          end
          load(result) # data is an array of attribute hashes
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 14 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/models/rds/parameters.rb
fog-nirvanix-1.8.1 lib/fog/aws/models/rds/parameters.rb
fog-parser-fix-1.6.1 lib/fog/aws/models/rds/parameters.rb
fog-test-again-1.6.0 lib/fog/aws/models/rds/parameters.rb
fog-parser-fix-1.6.0 lib/fog/aws/models/rds/parameters.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/models/rds/parameters.rb
fog-sgonyea-1.8.1 lib/fog/aws/models/rds/parameters.rb
fog-1.8.0 lib/fog/aws/models/rds/parameters.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/models/rds/parameters.rb
fog-1.7.0 lib/fog/aws/models/rds/parameters.rb
fog-1.6.0 lib/fog/aws/models/rds/parameters.rb
fog-1.5.0 lib/fog/aws/models/rds/parameters.rb
fog-1.4.0 lib/fog/aws/models/rds/parameters.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/rds/parameters.rb
michiels-fog-1.3.1 lib/fog/aws/models/rds/parameters.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/models/rds/parameters.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/rds/parameters.rb
fog-1.3.1 lib/fog/aws/models/rds/parameters.rb
fog-1.3.0 lib/fog/aws/models/rds/parameters.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/rds/parameters.rb