Sha256: 2d3492e99c55cb350a0a82d1355918bc8bcca9863c5c3337e1137449df33377a

Contents?: true

Size: 713 Bytes

Versions: 24

Compression:

Stored size: 713 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class Libvirt

      class Node < Fog::Model

        identity :uri

        attribute :model
        attribute :memory
        attribute :cpus
        attribute :mhz
        attribute :nodes
        attribute :sockets
        attribute :cores
        attribute :threads
        
        attribute :type
        attribute :version
        attribute :uri
        attribute :node_free_memory
        attribute :max_vcpus

        private

        def raw
          @raw
        end

        def raw=(new_raw)
          @raw = new_raw

          raw_attributes = new_raw

          merge_attributes(raw_attributes)
        end

      end

    end
  end

end

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
tag-fog-1.0.1 lib/fog/libvirt/models/compute/node.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/node.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/libvirt/models/compute/node.rb
fog-1.0.0 lib/fog/libvirt/models/compute/node.rb