Class: Fog::OpenStack::Network::SubnetPool
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Network::SubnetPool
show all
- Defined in:
- lib/fog/openstack/network/models/subnet_pool.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #save
Instance Method Details
#create ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/fog/openstack/network/models/subnet_pool.rb', line 24
def create
requires :name, :prefixes
merge_attributes(service.create_subnet_pool(name,
prefixes,
attributes).body['subnetpool'])
self
end
|
#destroy ⇒ Object
39
40
41
42
43
|
# File 'lib/fog/openstack/network/models/subnet_pool.rb', line 39
def destroy
requires :id
service.delete_subnet_pool(id)
true
end
|
#update ⇒ Object
32
33
34
35
36
37
|
# File 'lib/fog/openstack/network/models/subnet_pool.rb', line 32
def update
requires :id
merge_attributes(service.update_subnet_pool(id,
attributes).body['subnetpool'])
self
end
|