Class: OvirtSDK4::NumaNodePin

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (NumaNodePin) initialize(opts = {})

Creates a new instance of the OvirtSDK4::NumaNodePin class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :host_numa_node (NumaNode, Hash)

    The value of attribute host_numa_node.

  • :index (Integer)

    The value of attribute index.

  • :pinned (Boolean)

    The value of attribute pinned.



8451
8452
8453
8454
8455
8456
# File 'lib/ovirtsdk4/types.rb', line 8451

def initialize(opts = {})
  super(opts)
  self.host_numa_node = opts[:host_numa_node]
  self.index = opts[:index]
  self.pinned = opts[:pinned]
end

Instance Method Details

- (NumaNode) host_numa_node

Returns the value of the host_numa_node attribute.

Returns:



8381
8382
8383
# File 'lib/ovirtsdk4/types.rb', line 8381

def host_numa_node
  return @host_numa_node
end

- (Object) host_numa_node=(value)

Sets the value of the host_numa_node attribute.

The value parameter can be an instance of OvirtSDK4::NumaNode or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



8394
8395
8396
8397
8398
8399
# File 'lib/ovirtsdk4/types.rb', line 8394

def host_numa_node=(value)
  if value.is_a?(Hash)
    value = NumaNode.new(value)
  end
  @host_numa_node = value
end

- (Integer) index

Returns the value of the index attribute.

Returns:

  • (Integer)


8406
8407
8408
# File 'lib/ovirtsdk4/types.rb', line 8406

def index
  return @index
end

- (Object) index=(value)

Sets the value of the index attribute.

Parameters:

  • value (Integer)


8415
8416
8417
# File 'lib/ovirtsdk4/types.rb', line 8415

def index=(value)
  @index = value
end

- (Boolean) pinned

Returns the value of the pinned attribute.

Returns:

  • (Boolean)


8424
8425
8426
# File 'lib/ovirtsdk4/types.rb', line 8424

def pinned
  return @pinned
end

- (Object) pinned=(value)

Sets the value of the pinned attribute.

Parameters:

  • value (Boolean)


8433
8434
8435
# File 'lib/ovirtsdk4/types.rb', line 8433

def pinned=(value)
  @pinned = value
end