class Fog::Compute::Brightbox::CloudIp
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 51 def destroy requires :identity service.destroy_cloud_ip(identity) end
map(destination)
click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 29 def map(destination) requires :identity case destination when Fog::Compute::Brightbox::Server final_destination = destination.interfaces.first["id"] when Fog::Compute::Brightbox::LoadBalancer final_destination = destination.id else final_destination = destination end service.map_cloud_ip(identity, :destination => final_destination) end
mapped?()
click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 42 def mapped? status == "mapped" end
unmap()
click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 46 def unmap requires :identity service.unmap_cloud_ip(identity) end