Sha256: e864abeb9d27b339544c1e45fda5c90e041c3b473dcd297c90997a1b2cb1fe6a

Contents?: true

Size: 964 Bytes

Versions: 16

Compression:

Stored size: 964 Bytes

Contents

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_arg = filters)
          filters = filters_arg
          result = []
          marker = nil
          finished = false
          while !finished
            data = service.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

16 entries across 16 versions & 2 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.8.0 lib/fog/aws/models/rds/parameters.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/models/rds/parameters.rb
fog-aws-0.7.6 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.7.5 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.7.4 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.7.3 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.7.2 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.6.0 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.5.0 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.4.1 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.4.0 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.3.0 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.2.2 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.2.0 lib/fog/aws/models/rds/parameters.rb
fog-aws-0.1.2 lib/fog/aws/models/rds/parameters.rb