Sha256: ddc67967c4896184ee75990a8839862fd95cd439a37d3c3094da4141802aa88f
Contents?: true
Size: 1.09 KB
Versions: 10
Compression:
Stored size: 1.09 KB
Contents
require 'fog/core/model' module Fog module Compute class Brightbox class CloudIp < Fog::Model identity :id attribute :url attribute :resource_type attribute :name attribute :status attribute :description attribute :reverse_dns attribute :public_ip # Links - to be replaced attribute :account_id, :aliases => "account", :squash => "id" attribute :interface_id, :aliases => "interface", :squash => "id" attribute :server_id, :aliases => "server", :squash => "id" attribute :load_balancer, :alias => "load_balancer", :squash => "id" def map(interface_to_map) requires :identity connection.map_cloud_ip(identity, :interface => interface_to_map) end def mapped? status == "mapped" end def unmap requires :identity connection.unmap_cloud_ip(identity) end def destroy requires :identity connection.destroy_cloud_ip(identity) end end end end end
Version data entries
10 entries across 10 versions & 3 rubygems