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/storage_repository.rb
2012-04-02 13:25:03 +02:00

36 lines
870 B
Ruby

require 'fog/core/model'
module Fog
module Compute
class XenServer
class StorageRepository < Fog::Model
# API Reference here:
# http://docs.vmd.citrix.com/XenServer/5.6.0/1.0/en_gb/api/?c=SR
identity :reference
attribute :name_label
attribute :uuid
attribute :allowed_operations
attribute :content_type
attribute :name_description
attribute :other_config
attribute :PBDs
attribute :shared
attribute :type
attribute :VDIs
ignore_attributes :blobs, :current_operations, :physical_size, :physical_utilisation, :sm_config, :tags,
:virtual_allocation
def initialize(attributes={})
@uuid ||= 0
super
end
end
end
end
end