class OvirtSDK4::VcpuPin

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {VcpuPin} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [String] :cpu_set The value of attribute `cpu_set`.

@option opts [Integer] :vcpu The value of attribute `vcpu`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 18473
def initialize(opts = {})
  super(opts)
  self.cpu_set = opts[:cpu_set]
  self.vcpu = opts[:vcpu]
end

Public Instance Methods

cpu_set() click to toggle source

Returns the value of the `cpu_set` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 18430
def cpu_set
  return @cpu_set
end
cpu_set=(value) click to toggle source

Sets the value of the `cpu_set` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 18439
def cpu_set=(value)
  @cpu_set = value
end
vcpu() click to toggle source

Returns the value of the `vcpu` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 18448
def vcpu
  return @vcpu
end
vcpu=(value) click to toggle source

Sets the value of the `vcpu` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 18457
def vcpu=(value)
  @vcpu = value
end