class Fog::OpenStack::ContainerInfra::Bay
Public Instance Methods
create()
click to toggle source
# File lib/fog/openstack/container_infra/models/bay.rb, line 25 def create requires :name, :baymodel_id merge_attributes(service.create_bay(attributes).body) self end
destroy()
click to toggle source
# File lib/fog/openstack/container_infra/models/bay.rb, line 39 def destroy requires :uuid service.delete_bay(uuid) true end
update()
click to toggle source
# File lib/fog/openstack/container_infra/models/bay.rb, line 31 def update requires :uuid, :name, :baymodel_id attrs = attributes.select{|k,_| allowed_update_attributes.include? k} attrs = convert_update_params(attrs) merge_attributes(service.update_bay(uuid, attrs).body) self end
Private Instance Methods
allowed_update_attributes()
click to toggle source
# File lib/fog/openstack/container_infra/models/bay.rb, line 47 def allowed_update_attributes [ :node_count ] end