mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
module Fog
|
|
module AWS
|
|
class Compute
|
|
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
|
|
def describe_reserved_instances_offerings(filters = {})
|
|
params = AWS.indexed_filters(filters)
|
|
request({
|
|
'Action' => 'DescribeReservedInstancesOfferings',
|
|
:idempotent => true,
|
|
:parser => Fog::Parsers::AWS::Compute::DescribeReservedInstancesOfferings.new
|
|
}.merge!(params))
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|