1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/models/rds/instance_options.rb
Josh Lane d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00

28 lines
779 B
Ruby

require 'fog/core/collection'
require 'fog/aws/models/rds/instance_option'
module Fog
module AWS
class RDS
class InstanceOptions < Fog::PagedCollection
attribute :filters
attribute :engine
model Fog::AWS::RDS::InstanceOption
def initialize(attributes)
self.filters ||= {}
super
end
# This method deliberately returns only a single page of results
def all(filters_arg = filters)
filters.merge!(filters_arg)
result = service.describe_orderable_db_instance_options(engine, filters).body['DescribeOrderableDBInstanceOptionsResult']
filters[:marker] = result['Marker']
load(result['OrderableDBInstanceOptions'])
end
end
end
end
end