class Fog::Network::OpenStack::LbMember
Public Class Methods
new(attributes)
click to toggle source
Calls superclass method
# File lib/fog/openstack/models/network/lb_member.rb, line 17 def initialize(attributes) prepare_service_value(attributes) super end
Public Instance Methods
create()
click to toggle source
# File lib/fog/openstack/models/network/lb_member.rb, line 27 def create requires :pool_id, :address, :protocol_port, :weight merge_attributes(service.create_lb_member(self.pool_id, self.address, self.protocol_port, self.weight, self.attributes).body['member']) self end
destroy()
click to toggle source
# File lib/fog/openstack/models/network/lb_member.rb, line 44 def destroy requires :id service.delete_lb_member(self.id) true end
save()
click to toggle source
# File lib/fog/openstack/models/network/lb_member.rb, line 22 def save requires :pool_id, :address, :protocol_port, :weight identity ? update : create end
update()
click to toggle source
# File lib/fog/openstack/models/network/lb_member.rb, line 37 def update requires :id, :pool_id, :address, :protocol_port, :weight merge_attributes(service.update_lb_member(self.id, self.attributes).body['member']) self end