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

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

Instance Attribute Summary

Attributes inherited from Model

#collection, #service

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 Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Fog::Attributes::InstanceMethods

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

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#destroyObject



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

def destroy
  requires :id
  service.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)
  service.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={})
  service.parameters({:group => self}.merge(filters))
end

#saveObject



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
  service.create_db_parameter_group(id, family, description)
end