class Fog::OpenStack::ContainerInfra::Cluster

Public Instance Methods

create() click to toggle source
# File lib/fog/openstack/container_infra/models/cluster.rb, line 25
def create
  requires :name, :cluster_template_id
  merge_attributes(service.create_cluster(attributes).body)
  self
end
destroy() click to toggle source
# File lib/fog/openstack/container_infra/models/cluster.rb, line 39
def destroy
  requires :uuid
  service.delete_cluster(uuid)
  true
end
update() click to toggle source
# File lib/fog/openstack/container_infra/models/cluster.rb, line 31
def update
  requires :uuid, :name, :cluster_template_id
  attrs = attributes.select{|k,_| allowed_update_attributes.include? k}
  attrs = convert_update_params(attrs)
  merge_attributes(service.update_cluster(uuid, attrs).body)
  self
end

Private Instance Methods

allowed_update_attributes() click to toggle source
# File lib/fog/openstack/container_infra/models/cluster.rb, line 47
def allowed_update_attributes
  [
    :node_count
  ]
end