mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
02ff3171ee
Added security_groups collection and security_group model to Fog::AWS::RDS Added API methods: Fog::AWS::RDS#describe_db_security_groups Fog::AWS::RDS#create_db_security_group Fog::AWS::RDS#delete_db_security_group Fog::AWS::RDS#authorize_db_security_group_ingress Fog::AWS::RDS#revoke_db_security_group_ingress
39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
module Fog
|
|
module AWS
|
|
class RDS
|
|
class Real
|
|
|
|
require 'fog/aws/parsers/rds/describe_db_security_groups'
|
|
|
|
# Describe all or specified db snapshots
|
|
# http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?API_DescribeDBSecurityGroups.html
|
|
# ==== Parameters
|
|
# * DBSecurityGroupName <~String> - The name of the DB Security Group to return details for.
|
|
# * Marker <~String> - An optional marker provided in the previous DescribeDBInstances request
|
|
# * MaxRecords <~Integer> - Max number of records to return (between 20 and 100)
|
|
# Only one of DBInstanceIdentifier or DBSnapshotIdentifier can be specified
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Hash>:
|
|
def describe_db_security_groups(opts={})
|
|
opts = {'DBSecurityGroupName' => opts} if opts.is_a?(String)
|
|
|
|
request({
|
|
'Action' => 'DescribeDBSecurityGroups',
|
|
:parser => Fog::Parsers::AWS::RDS::DescribeDBSecurityGroups.new
|
|
}.merge(opts))
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def describe_db_security_group(opts={})
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|