class Fog::OpenStack::Compute::Aggregate
Public Instance Methods
add_host(host_uuid)
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 37 def add_host(host_uuid) requires :id service.add_aggregate_host(id, host_uuid) end
create()
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 25 def create requires :name merge_attributes(service.create_aggregate(name, attributes).body['aggregate']) self end
destroy()
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 51 def destroy requires :id service.delete_aggregate(id) true end
remove_host(host_uuid)
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 42 def remove_host(host_uuid) requires :id service.remove_aggregate_host(id, host_uuid) end
save()
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 20 def save requires :name identity ? update : create end
update()
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 31 def update requires :id merge_attributes(service.update_aggregate(id, attributes).body['aggregate']) self end
update_metadata(metadata)
click to toggle source
# File lib/fog/openstack/compute/models/aggregate.rb, line 47 def update_metadata(metadata) service.update_aggregate_metadata(id, metadata) end