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

Version Path
fog-0.3.30 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.29 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.28 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.27 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.26 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.25 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.24 lib/fog/brightbox/models/compute/cloud_ip.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.23 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.22 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.21 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.20 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.19 lib/fog/brightbox/models/compute/cloud_ip.rb
fog-0.3.18 lib/fog/brightbox/models/compute/cloud_ip.rb