2013-01-07 16:35:09 -05:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class XenServer
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2013-01-07 16:35:09 -05:00
|
|
|
#
|
|
|
|
# A physical CPU
|
|
|
|
#
|
2013-12-10 20:05:42 -05:00
|
|
|
# @see http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=host_cpu
|
2013-01-07 16:35:09 -05:00
|
|
|
#
|
|
|
|
class HostCpu < Fog::Model
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2013-01-07 16:35:09 -05:00
|
|
|
identity :reference
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2013-01-07 16:35:09 -05:00
|
|
|
attribute :uuid
|
|
|
|
attribute :family
|
2013-12-10 20:05:42 -05:00
|
|
|
attribute :features
|
2013-01-07 16:35:09 -05:00
|
|
|
attribute :flags
|
|
|
|
attribute :__host, :aliases => :host
|
|
|
|
attribute :model
|
|
|
|
attribute :model_name, :aliases => :modelname
|
|
|
|
attribute :number
|
|
|
|
attribute :other_config
|
|
|
|
attribute :speed
|
|
|
|
attribute :stepping
|
|
|
|
attribute :utilisation
|
|
|
|
attribute :vendor
|
|
|
|
|
|
|
|
def host
|
2013-01-07 18:14:13 -05:00
|
|
|
service.hosts.get __host
|
2013-01-07 16:35:09 -05:00
|
|
|
end
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2013-01-07 16:35:09 -05:00
|
|
|
end
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2013-01-07 16:35:09 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|