1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[xenserver] added missing HostCpu model

This commit is contained in:
Sergio Rubio 2013-01-07 22:35:09 +01:00
parent 44e84f571f
commit e98dbf7f68
2 changed files with 38 additions and 0 deletions

View file

@ -37,6 +37,7 @@ module Fog
model :guest_metrics
model :vbd_metrics
model :host_metrics
model :host_cpu
request_path 'fog/xenserver/requests/compute'
request :create_server

View file

@ -0,0 +1,37 @@
require 'fog/core/model'
module Fog
module Compute
class XenServer
#
# A physical CPU
#
# @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=host_cpu
#
class HostCpu < Fog::Model
identity :reference
attribute :uuid
attribute :family
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
connection.hosts.get __host
end
end
end
end
end