Sha256: 4b5dfefc2095296a5c8c37d59c29353843d3d930cb4abc32d690a5edcccbc2de
Contents?: true
Size: 940 Bytes
Versions: 14
Compression:
Stored size: 940 Bytes
Contents
require 'fog/core/model' module Fog module Brightbox class Compute class CloudIp < Fog::Model identity :id attribute :url attribute :name attribute :status attribute :resource_type attribute :description attribute :reverse_dns attribute :public_ip attribute :account_id, :aliases => "account", :squash => "id" attribute :interface_id, :aliases => "interface", :squash => "id" attribute :server_id, :aliases => "server", :squash => "id" def map(interface_to_map) requires :identity connection.map_cloud_ip(identity, :interface => interface_to_map) 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
14 entries across 14 versions & 2 rubygems