Fog::Model
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 60 def destination_id server_id || load_balancer || server_group || database_server || interface_id end
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 55 def destroy requires :identity service.destroy_cloud_ip(identity) end
Attempt to map or point the Cloud IP to the destination resource.
@param [Object] destination
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 34 def map(destination) requires :identity if destination.respond_to?(:mapping_identity) final_destination = destination.mapping_identity elsif destination.respond_to?(:identity) final_destination = destination.identity else final_destination = destination end service.map_cloud_ip(identity, :destination => final_destination) end
Generated with the Darkfish Rdoc Generator 2.