Sha256: 417de238be3e6db9d585f674fd153ffe27c68f5910d8509419087b78cb9a8cab

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class XenServer

      #
      # A physical CPU
      #
      # @see http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=host_cpu
      #
      class HostCpu < Fog::Model

        identity :reference

        attribute :uuid
        attribute :family
        attribute :features
        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
          service.hosts.get __host
        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-xenserver-0.0.1.alpha2 lib/fog/xenserver/models/compute/host_cpu.rb
fog-xenserver-0.0.1.alpha lib/fog/xenserver/models/compute/host_cpu.rb
fog-1.22.0 lib/fog/xenserver/models/compute/host_cpu.rb
fog-1.21.0 lib/fog/xenserver/models/compute/host_cpu.rb