Class: Fog::AWS::RDS::ParameterGroup
- Defined in:
- lib/fog/aws/models/rds/parameter_group.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#initialize, #inspect, #reload, #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
#destroy ⇒ Object
24 25 26 27 28 |
# File 'lib/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/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/fog/aws/models/rds/parameter_group.rb', line 30 def parameters(filters={}) connection.parameters({:group => self}.merge(filters)) end |
#save ⇒ Object
13 14 15 16 17 18 |
# File 'lib/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 |