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/network/openstack/models/lb_vip.rb', line 23
def create
requires :subnet_id, :pool_id, :protocol, :protocol_port
merge_attributes(service.create_lb_vip(subnet_id,
pool_id,
protocol,
protocol_port,
attributes).body['vip'])
self
end
|
#destroy ⇒ Object
40
41
42
43
44
|
# File 'lib/fog/network/openstack/models/lb_vip.rb', line 40
def destroy
requires :id
service.delete_lb_vip(id)
true
end
|
#update ⇒ Object
33
34
35
36
37
38
|
# File 'lib/fog/network/openstack/models/lb_vip.rb', line 33
def update
requires :id, :subnet_id, :pool_id, :protocol, :protocol_port
merge_attributes(service.update_lb_vip(id,
attributes).body['vip'])
self
end
|