Class: Fog::AWS::RDS::ParameterGroup

Inherits:
Model
  • Object
show all
Defined in:
lib/rackspace-fog/aws/models/rds/parameter_group.rb

Instance Attribute Summary

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#destroyObject



24
25
26
27
28
# File 'lib/rackspace-fog/aws/models/rds/parameter_group.rb', line 24

def destroy
  requires :id
  connection.delete_db_parameter_group(id)
  true
end

#modify(changes) ⇒ Object



20
21
22
# File 'lib/rackspace-fog/aws/models/rds/parameter_group.rb', line 20

def modify(changes)
  connection.modify_db_parameter_group id, changes.collect {|c| {'ParameterName' => c[:name], 'ParameterValue' => c[:value], 'ApplyMethod' => c[:apply_method]}}
end

#parameters(filters = {}) ⇒ Object



30
31
32
# File 'lib/rackspace-fog/aws/models/rds/parameter_group.rb', line 30

def parameters(filters={})
  connection.parameters({:group => self}.merge(filters))
end

#saveObject



13
14
15
16
17
18
# File 'lib/rackspace-fog/aws/models/rds/parameter_group.rb', line 13

def save
  requires :family
  requires :description
  requires :id
  connection.create_db_parameter_group(id, family, description)
end