Sha256: fe60e8f613270102ca554c1686d77e2a0ce807f628349db9f8973100d494dcfa

Contents?: true

Size: 634 Bytes

Versions: 53

Compression:

Stored size: 634 Bytes

Contents

require 'fog/cloudsigma/nested_model'

module Fog
  module Compute
    class CloudSigma
      class VLAN < Fog::CloudSigma::CloudsigmaModel
        identity :uuid
        attribute :tags
        attribute :servers
        attribute :meta
        attribute :owner
        attribute :resource_uri, :type => :string
        attribute :subscription

        def update
          requires :identity
          data = attributes

          response = service.update_vlan(identity, data)

          new_attributes = response.body
          merge_attributes(new_attributes)
        end

        alias :save :update
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.12.1.2.1 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/cloudsigma/models/vlan.rb
fog-1.18.0 lib/fog/cloudsigma/models/vlan.rb
fog-1.17.0 lib/fog/cloudsigma/models/vlan.rb
fog-1.16.0 lib/fog/cloudsigma/models/vlan.rb