2011-01-26 16:35:22 -05:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class AWS
|
2011-01-26 16:35:22 -05:00
|
|
|
class Real
|
|
|
|
|
|
|
|
require 'fog/compute/parsers/aws/describe_reserved_instances_offerings'
|
|
|
|
|
|
|
|
# Describe all or specified reserved instances offerings
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * filters<~Hash> - List of filters to limit results with
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# * 'requestId'<~String> - Id of request
|
|
|
|
# * 'reservedInstancesOfferingsSet'<~Array>:
|
|
|
|
# * 'availabilityZone'<~String> - availability zone of offering
|
|
|
|
# * 'duration'<~Integer> - duration, in seconds, of offering
|
|
|
|
# * 'fixedPrice'<~Float> - purchase price of offering
|
|
|
|
# * 'instanceType'<~String> - instance type of offering
|
|
|
|
# * 'productDescription'<~String> - description of offering
|
|
|
|
# * 'reservedInstancesOfferingId'<~String> - id of offering
|
|
|
|
# * 'usagePrice'<~Float> - usage price of offering, per hour
|
2011-05-19 12:31:56 -04:00
|
|
|
#
|
|
|
|
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeReservedInstancesOfferings.html]
|
2011-01-26 16:35:22 -05:00
|
|
|
def describe_reserved_instances_offerings(filters = {})
|
|
|
|
params = AWS.indexed_filters(filters)
|
|
|
|
request({
|
|
|
|
'Action' => 'DescribeReservedInstancesOfferings',
|
|
|
|
:idempotent => true,
|
2011-06-16 19:28:54 -04:00
|
|
|
:parser => Fog::Parsers::Compute::AWS::DescribeReservedInstancesOfferings.new
|
2011-01-26 16:35:22 -05:00
|
|
|
}.merge!(params))
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|