Class: Fog::OpenStack::Network::LbVip
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Network::LbVip
show all
- Defined in:
- lib/fog/openstack/network/models/lb_vip.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #save
Instance Method Details
#create ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/fog/openstack/network/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/openstack/network/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/openstack/network/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
|