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:
parent
44e84f571f
commit
e98dbf7f68
2 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
37
lib/fog/xenserver/models/compute/host_cpu.rb
Normal file
37
lib/fog/xenserver/models/compute/host_cpu.rb
Normal 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
|
Loading…
Reference in a new issue