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.15.0.20130927082724 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/cloudsigma/models/vlan.rb
fog-1.15.0 lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.14.0 lib/fog/cloudsigma/models/vlan.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/cloudsigma/models/vlan.rb
fog-1.14.0 lib/fog/cloudsigma/models/vlan.rb
fog-1.13.0 lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.12.1.2 lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.12.1.1 lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.12.1a lib/fog/cloudsigma/models/vlan.rb
gapinc-fog-1.12.1 lib/fog/cloudsigma/models/vlan.rb
fog-1.12.1 lib/fog/cloudsigma/models/vlan.rb
fog-1.12.0 lib/fog/cloudsigma/models/vlan.rb