Sha256: 7d6138bb7f7aa983e417cf13c2e1f847777285fdef259daf8a2d27634e1424a4

Contents?: true

Size: 870 Bytes

Versions: 17

Compression:

Stored size: 870 Bytes

Contents

module Fog
  module Vcloud
    class Compute
      class Ip < Fog::Vcloud::Model

        ignore_attributes :xmlns_i, :xmlns

        identity :href, :aliases => :Href

        attribute :name, :aliases => :Name
        attribute :status, :aliases => :Status
        attribute :server, :aliases => :Server
        attribute :id, :aliases => :Id, :type => :integer

        def save
          if @changed
            connection.configure_network_ip( href, _compose_network_ip_data )
          end
          true
        end

        def reload
          super
          @changed = false
          self
        end

        private
        def _compose_network_ip_data
          {
            :id => id,
            :href => href,
            :name => name,
            :status => status,
            :server => server
          }
        end

      end
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
fog-1.1.2 lib/fog/vcloud/models/compute/ip.rb
fog_tractical-1.1.4 lib/fog/vcloud/models/compute/ip.rb
fog_tractical-1.1.3 lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
fog-1.1.1 lib/fog/vcloud/models/compute/ip.rb
fog-1.1.0 lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
tag-fog-1.0.1 lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/ip.rb
fog-1.0.0 lib/fog/vcloud/models/compute/ip.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/models/vcloud/ip.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/models/vcloud/ip.rb
fog-0.11.0 lib/fog/compute/models/vcloud/ip.rb
fog-0.10.0 lib/fog/compute/models/vcloud/ip.rb