mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
- update compute api version to 2013/10/01
- add 'end' to described_reserved_instance
This commit is contained in:
parent
604c29d79c
commit
5f3e4e557d
3 changed files with 3 additions and 1 deletions
|
@ -372,7 +372,7 @@ module Fog
|
|||
@region = options[:region] ||= 'us-east-1'
|
||||
@instrumentor = options[:instrumentor]
|
||||
@instrumentor_name = options[:instrumentor_name] || 'fog.aws.compute'
|
||||
@version = options[:version] || '2013-08-15'
|
||||
@version = options[:version] || '2013-10-01'
|
||||
|
||||
if @endpoint = options[:endpoint]
|
||||
endpoint = URI.parse(@endpoint)
|
||||
|
|
|
@ -26,6 +26,7 @@ module Fog
|
|||
when 'start','end'
|
||||
@reserved_instance[name] = Time.parse(value)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -25,6 +25,7 @@ module Fog
|
|||
# * 'start'<~Time> - start time for reservation
|
||||
# * 'state'<~String> - state of reserved instance purchase, in .[pending-payment, active, payment-failed, retired]
|
||||
# * 'usagePrice"<~Float> - usage price of reserved instances, per hour
|
||||
# * 'end' - time reservation stopped being applied (i.e sold or canceled - as of version 2013/10/01)
|
||||
#
|
||||
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeReservedInstances.html]
|
||||
def describe_reserved_instances(filters = {})
|
||||
|
|
Loading…
Add table
Reference in a new issue