Class: Fog::OpenStack::ContainerInfra::ClusterTemplate
- Inherits:
-
Base
- Object
- Model
- Model
- Base
- Fog::OpenStack::ContainerInfra::ClusterTemplate
show all
- Defined in:
- lib/fog/openstack/container_infra/models/cluster_template.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Base
#convert_update_params
Methods inherited from Model
#initialize, #save
Instance Method Details
#create ⇒ Object
38
39
40
41
42
43
|
# File 'lib/fog/openstack/container_infra/models/cluster_template.rb', line 38
def create
requires :name, :keypair_id, :flavor_id, :image_id,
:external_network_id, :coe
merge_attributes(service.create_cluster_template(attributes).body)
self
end
|
#destroy ⇒ Object
53
54
55
56
57
|
# File 'lib/fog/openstack/container_infra/models/cluster_template.rb', line 53
def destroy
requires :uuid
service.delete_cluster_template(uuid)
true
end
|
#update ⇒ Object
45
46
47
48
49
50
51
|
# File 'lib/fog/openstack/container_infra/models/cluster_template.rb', line 45
def update
requires :uuid, :name, :keypair_id, :flavor_id, :image_id,
:external_network_id, :coe
attrs = convert_update_params(attributes)
merge_attributes(service.update_cluster_template(uuid, attrs).body)
self
end
|