mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1932 from maginatics/rds_version
Add RDS API version parameter option.
This commit is contained in:
commit
9aad9c0df7
1 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ module Fog
|
||||||
class AuthorizationAlreadyExists < Fog::Errors::Error; end
|
class AuthorizationAlreadyExists < Fog::Errors::Error; end
|
||||||
|
|
||||||
requires :aws_access_key_id, :aws_secret_access_key
|
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_path 'fog/aws/requests/rds'
|
||||||
request :describe_events
|
request :describe_events
|
||||||
|
@ -155,6 +155,7 @@ module Fog
|
||||||
@port = options[:port] || 443
|
@port = options[:port] || 443
|
||||||
@scheme = options[:scheme] || 'https'
|
@scheme = options[:scheme] || 'https'
|
||||||
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
|
||||||
|
@version = options[:version] || '2012-09-17' #'2011-04-01'
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner_id
|
def owner_id
|
||||||
|
@ -191,7 +192,7 @@ module Fog
|
||||||
:host => @host,
|
:host => @host,
|
||||||
:path => @path,
|
:path => @path,
|
||||||
:port => @port,
|
:port => @port,
|
||||||
:version => '2012-09-17' #'2011-04-01'
|
:version => @version
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue