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-1.22.0 lib/fog/cloudsigma/models/vlan.rb
fog-1.21.0 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/cloudsigma/models/vlan.rb
fog-1.20.0 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/cloudsigma/models/vlan.rb
fog-1.19.0 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/cloudsigma/models/vlan.rb