Parent

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::Brightbox::CloudIp

Public Instance Methods

destroy() click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 48
def destroy
  requires :identity
  connection.destroy_cloud_ip(identity)
end
map(destination) click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 26
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
  connection.map_cloud_ip(identity, :destination => final_destination)
end
mapped?() click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 39
def mapped?
  status == "mapped"
end
unmap() click to toggle source
# File lib/fog/brightbox/models/compute/cloud_ip.rb, line 43
def unmap
  requires :identity
  connection.unmap_cloud_ip(identity)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.