class Fog::OpenStack::Network::LbPool

Public Instance Methods

associate_health_monitor(health_monitor_id) click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 53
def associate_health_monitor(health_monitor_id)
  requires :id
  service.associate_lb_health_monitor(id, health_monitor_id)
  true
end
create() click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 25
def create
  requires :subnet_id, :protocol, :lb_method
  merge_attributes(service.create_lb_pool(subnet_id,
                                          protocol,
                                          lb_method,
                                          attributes).body['pool'])
  self
end
destroy() click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 41
def destroy
  requires :id
  service.delete_lb_pool(id)
  true
end
disassociate_health_monitor(health_monitor_id) click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 59
def disassociate_health_monitor(health_monitor_id)
  requires :id
  service.disassociate_lb_health_monitor(id, health_monitor_id)
  true
end
stats() click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 47
def stats
  requires :id
  merge_attributes(service.get_lb_pool_stats(id).body['stats'])
  self
end
update() click to toggle source
# File lib/fog/openstack/network/models/lb_pool.rb, line 34
def update
  requires :id, :subnet_id, :protocol, :lb_method
  merge_attributes(service.update_lb_pool(id,
                                          attributes).body['pool'])
  self
end