class Fog::Compute::Gridscale::Ip
Public Instance Methods
delete()
click to toggle source
# File lib/fog/compute/gridscale/models/ip.rb, line 57 def delete requires :object_uuid response = service.ip_delete object_uuid response.body end
destroy()
click to toggle source
# File lib/fog/compute/gridscale/models/ip.rb, line 63 def destroy requires :object_uuid response = service.ip_delete(object_uuid) response end
save()
click to toggle source
# File lib/fog/compute/gridscale/models/ip.rb, line 27 def save raise Fog::Errors::Error.new('Re-saving an existing object may create a duplicate') if persisted? requires :family options = {} if attributes[:labels] options[:labels] = labels end if attributes[:failover] options[:failover] = failover end if attributes[:name] options[:name] = name end if attributes[:reverse_dns] options[:reverse_dns] = reverse_dns end if attributes[:location_uuid] options[:location_uuid] = location_uuid end data = service.ip_create(family, options) merge_attributes(data.body) true end