mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add RDS API version parameter option.
RDS API has moved to 2013-05-15 and added additional methods and parameters to existing ones (such as NewDBInstanceIdentifier in ModifyDBInstance). It makes sense to use the new API version, however it requires more testing and possibly implementing additional methods. This commit allows the version to be passed when instantiating a fog object, so that this can be done piece-meal, without blocking existing fog users. Refs: #1931
This commit is contained in:
parent
11afbd6461
commit
36d6f651f4
1 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ module Fog
|
|||
class AuthorizationAlreadyExists < Fog::Errors::Error; end
|
||||
|
||||
requires :aws_access_key_id, :aws_secret_access_key
|
||||
recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at
|
||||
recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version
|
||||
|
||||
request_path 'fog/aws/requests/rds'
|
||||
request :describe_events
|
||||
|
@ -155,6 +155,7 @@ module Fog
|
|||
@port = options[:port] || 443
|
||||
@scheme = options[:scheme] || 'https'
|
||||
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
||||
@version = options[:version] || '2012-09-17' #'2011-04-01'
|
||||
end
|
||||
|
||||
def owner_id
|
||||
|
@ -191,7 +192,7 @@ module Fog
|
|||
:host => @host,
|
||||
:path => @path,
|
||||
:port => @port,
|
||||
:version => '2012-09-17' #'2011-04-01'
|
||||
:version => @version
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue