Sha256: 99468bab1c36e011d68729f022a7cef8de73881bcba17e774f2cfe7226293fc7

Contents?: true

Size: 760 Bytes

Versions: 76

Compression:

Stored size: 760 Bytes

Contents

module Fog
  module AWS
    class RDS
      class SubnetGroup < Fog::Model
        identity   :id, :aliases => ['DBSubnetGroupName', :name]
        attribute  :description, :aliases => 'DBSubnetGroupDescription'
        attribute  :status, :aliases => 'SubnetGroupStatus'
        attribute  :vpc_id, :aliases => 'VpcId'
        attribute  :subnet_ids, :aliases => 'Subnets'

        def ready?
          requires :status
          status == 'Complete'
        end

        def save
          requires :description, :id, :subnet_ids
          service.create_db_subnet_group(id, subnet_ids, description)
          reload
        end

        def destroy
          requires :id
          service.delete_db_subnet_group(id)
        end
      end
    end
  end
end

Version data entries

76 entries across 74 versions & 3 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.29.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.28.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.27.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.26.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.25.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.24.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.23.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.22.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.21.1 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.21.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.20.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.19.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.18.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.17.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.16.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.15.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.14.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.13.0 lib/fog/aws/models/rds/subnet_group.rb
fog-aws-3.12.0 lib/fog/aws/models/rds/subnet_group.rb