1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/xenserver/models/compute/vdi.rb
2012-04-02 13:25:03 +02:00

33 lines
803 B
Ruby

require 'fog/core/model'
module Fog
module Compute
class XenServer
class VDI < Fog::Model
# API Reference here:
# http://docs.vmd.citrix.com/XenServer/5.6.0/1.0/en_gb/api/?c=VDI
identity :reference
attribute :uuid
attribute :is_a_snapshot
attribute :name, :aliases => :name_label
attribute :description, :aliases => :name_description
attribute :__parent, :aliases => :parent
attribute :virtual_size, :aliases => :parent
attribute :__vbds, :aliases => :VBDs
attribute :__sr, :aliases => :SR
attribute :sharable
attribute :readonly
def initialize(attributes={})
@uuid ||= 0
super
end
end
end
end
end