2013-01-18 17:34:08 +02:00
|
|
|
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
|
|
|
|
|
2014-05-23 01:59:34 +01:00
|
|
|
alias_method :save, :update
|
2013-01-18 17:34:08 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|