1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Added support for RDS VPC subnet groups. Bumped RDS API version to 2012-01-15

This commit is contained in:
Rusty Geldmacher 2012-08-10 13:03:56 -04:00
parent 354ac075d8
commit d1354869e8
4 changed files with 8 additions and 3 deletions

View file

@ -29,6 +29,7 @@ module Fog
attribute :db_parameter_groups, :aliases => 'DBParameterGroups'
attribute :backup_retention_period, :aliases => 'BackupRetentionPeriod', :type => :integer
attribute :license_model, :aliases => 'LicenseModel'
attribute :db_subnet_group_name, :aliases => 'DBSubnetGroupName'
attr_accessor :password, :parameter_group_name, :security_group_names, :port
@ -100,7 +101,8 @@ module Fog
'PreferredMaintenanceWindow' => preferred_maintenance_window,
'PreferredBackupWindow' => preferred_backup_window,
'MultiAZ' => multi_az,
'LicenseModel' => license_model
'LicenseModel' => license_model,
'DBSubnetGroupName' => db_subnet_group_name
}
options.delete_if {|key, value| value.nil?}

View file

@ -38,6 +38,7 @@ module Fog
end
def end_element(name)
case name
when 'LatestRestorableTime', 'InstanceCreateTime'
@ -45,7 +46,8 @@ module Fog
when 'Engine',
'DBInstanceStatus', 'DBInstanceIdentifier', 'EngineVersion',
'PreferredBackupWindow', 'PreferredMaintenanceWindow',
'AvailabilityZone', 'MasterUsername', 'DBName', 'LicenseModel'
'AvailabilityZone', 'MasterUsername', 'DBName', 'LicenseModel',
'DBSubnetGroupName'
@db_instance[name] = value
when 'MultiAZ', 'AutoMinorVersionUpgrade'
if value == 'false'

View file

@ -174,7 +174,7 @@ module Fog
:host => @host,
:path => @path,
:port => @port,
:version => '2011-04-01' #'2010-07-28'
:version => '2012-01-15' #'2011-04-01'
}
)

View file

@ -26,6 +26,7 @@ module Fog
# * Port <~Integer> The port number on which the database accepts connections.
# * PreferredBackupWindow <~String> The daily time range during which automated backups are created if automated backups are enabled
# * PreferredMaintenanceWindow <~String> The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage
# * DBSubnetGroupName <~String> The name, if any, of the VPC subnet for this RDS instance
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>: