Class: Fog::Network::StormOnDemand::Balancer

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/network/balancer.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Balancer

Returns a new instance of Balancer.



20
21
22
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 20

def initialize(attributes={})
  super
end

Instance Method Details

#add_node(options) ⇒ Object



24
25
26
27
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 24

def add_node(options)
  requires :identity
  service.add_balancer_node({:uniq_id => identity}.merge!(options))
end

#add_service(options) ⇒ Object



34
35
36
37
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 34

def add_service(options)
  requires :identity
  service.add_balancer_service({:uniq_id => identity}.merge!(options))
end

#destroyObject



44
45
46
47
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 44

def destroy
  requires :identity
  service.delete_balancer({:uniq_id => identity})
end

#remove_node(options) ⇒ Object



29
30
31
32
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 29

def remove_node(options)
  requires :identity
  service.remove_balancer_node({:uniq_id => identity}.merge!(options))
end

#remove_service(options) ⇒ Object



39
40
41
42
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 39

def remove_service(options)
  requires :identity
  service.remove_balancer_service({:uniq_id => identity}.merge!(options))
end

#update(options) ⇒ Object



49
50
51
52
# File 'lib/fog/storm_on_demand/models/network/balancer.rb', line 49

def update(options)
  requires :identity
  service.update_balancer({:uniq_id => identity}.merge!(options))
end