Class: Fog::Network::OpenStack::LbVip
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save
Instance Method Details
#create ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/fog/openstack/models/network/lb_vip.rb', line 23
def create
requires :subnet_id, :pool_id, :protocol, :protocol_port
merge_attributes(service.create_lb_vip(self.subnet_id,
self.pool_id,
self.protocol,
self.protocol_port,
self.attributes).body['vip'])
self
end
|
#destroy ⇒ Object
40
41
42
43
44
|
# File 'lib/fog/openstack/models/network/lb_vip.rb', line 40
def destroy
requires :id
service.delete_lb_vip(self.id)
true
end
|
#update ⇒ Object
33
34
35
36
37
38
|
# File 'lib/fog/openstack/models/network/lb_vip.rb', line 33
def update
requires :id, :subnet_id, :pool_id, :protocol, :protocol_port
merge_attributes(service.update_lb_vip(self.id,
self.attributes).body['vip'])
self
end
|