Class: Fog::Network::OpenStack::LbMember
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save
Instance Method Details
#create ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'lib/fog/openstack/models/network/lb_member.rb', line 17
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 ⇒ Object
34
35
36
37
38
|
# File 'lib/fog/openstack/models/network/lb_member.rb', line 34
def destroy
requires :id
service.delete_lb_member(self.id)
true
end
|
#update ⇒ Object
27
28
29
30
31
32
|
# File 'lib/fog/openstack/models/network/lb_member.rb', line 27
def update
requires :id, :pool_id, :address, :protocol_port, :weight
merge_attributes(service.update_lb_member(self.id,
self.attributes).body['member'])
self
end
|