Sha256: 9f38221a8ae397bb449dcb2fda6bd1d5e22fd6db81a7c71764b041116a4e0361
Contents?: true
Size: 991 Bytes
Versions: 16
Compression:
Stored size: 991 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 = 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 & 4 rubygems