Class: Fog::Network::StormOnDemand::Balancer
- Inherits:
-
Model
- Object
- Model
- Fog::Network::StormOnDemand::Balancer
show all
- Defined in:
- lib/fog/storm_on_demand/models/network/balancer.rb
Instance Attribute Summary
Attributes inherited from Model
#collection, #service
Instance Method Summary
collapse
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
#connection, #connection=, #prepare_service_value
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ Balancer
Returns a new instance of Balancer.
22
23
24
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 22
def initialize(attributes={})
super
end
|
Instance Method Details
#add_node(options) ⇒ Object
26
27
28
29
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 26
def add_node(options)
requires :identity
service.add_balancer_node({:uniq_id => identity}.merge!(options))
end
|
#add_service(options) ⇒ Object
36
37
38
39
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 36
def add_service(options)
requires :identity
service.add_balancer_service({:uniq_id => identity}.merge!(options))
end
|
#destroy ⇒ Object
46
47
48
49
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 46
def destroy
requires :identity
service.delete_balancer({:uniq_id => identity})
end
|
#remove_node(options) ⇒ Object
31
32
33
34
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 31
def remove_node(options)
requires :identity
service.remove_balancer_node({:uniq_id => identity}.merge!(options))
end
|
#remove_service(options) ⇒ Object
41
42
43
44
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 41
def remove_service(options)
requires :identity
service.remove_balancer_service({:uniq_id => identity}.merge!(options))
end
|
#update(options) ⇒ Object
51
52
53
54
|
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 51
def update(options)
requires :identity
service.update_balancer({:uniq_id => identity}.merge!(options))
end
|