Sha256: 026008554ab01b67189d47827fc1a3526e80e02beea05a19ac8703051ea4a5b5
Contents?: true
Size: 650 Bytes
Versions: 76
Compression:
Stored size: 650 Bytes
Contents
require 'fog/aws/models/rds/subnet_group' module Fog module AWS class RDS class SubnetGroups < Fog::Collection model Fog::AWS::RDS::SubnetGroup def all data = service.describe_db_subnet_groups.body['DescribeDBSubnetGroupsResult']['DBSubnetGroups'] load(data) # data is an array of attribute hashes end def get(identity) data = service.describe_db_subnet_groups(identity).body['DescribeDBSubnetGroupsResult']['DBSubnetGroups'].first new(data) # data is an attribute hash rescue Fog::AWS::RDS::NotFound nil end end end end end
Version data entries
76 entries across 74 versions & 3 rubygems