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

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

Instance Method Summary collapse

Instance Method Details

#add_node(options) ⇒ Object



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

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

#add_service(options) ⇒ Object



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

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

#destroyObject



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

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

#remove_node(options) ⇒ Object



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

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

#remove_service(options) ⇒ Object



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

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

#update(options) ⇒ Object



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

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