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