Class: OvirtSDK4::NumaNodePin
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::NumaNodePin
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (NumaNode) host_numa_node
Returns the value of the
host_numa_node
attribute. -
- (Object) host_numa_node=(value)
Sets the value of the
host_numa_node
attribute. -
- (Integer) index
Returns the value of the
index
attribute. -
- (Object) index=(value)
Sets the value of the
index
attribute. -
- (NumaNodePin) initialize(opts = {})
constructor
Creates a new instance of the NumaNodePin class.
-
- (Boolean) pinned
Returns the value of the
pinned
attribute. -
- (Object) pinned=(value)
Sets the value of the
pinned
attribute.
Methods included from Type
Constructor Details
- (NumaNodePin) initialize(opts = {})
Creates a new instance of the OvirtSDK4::NumaNodePin class.
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.
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.
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.
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.
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.
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.
8433 8434 8435 |
# File 'lib/ovirtsdk4/types.rb', line 8433 def pinned=(value) @pinned = value end |