class Fog::OpenStack::ContainerInfra::BayModel

Public Instance Methods

create() click to toggle source
# File lib/fog/openstack/container_infra/models/bay_model.rb, line 39
def create
  requires :name, :keypair_id,  :flavor_id, :image_id,
           :external_network_id, :coe
  merge_attributes(service.create_bay_model(attributes).body)
  self
end
destroy() click to toggle source
# File lib/fog/openstack/container_infra/models/bay_model.rb, line 54
def destroy
  requires :uuid
  service.delete_bay_model(uuid)
  true
end
update() click to toggle source
# File lib/fog/openstack/container_infra/models/bay_model.rb, line 46
def update
  requires :uuid, :name, :keypair_id,  :flavor_id, :image_id,
           :external_network_id, :coe
  attrs = convert_update_params(attributes)
  merge_attributes(service.update_bay_model(uuid, attrs).body)
  self
end