Class: OvirtSDK4::Host
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Host
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#agents ⇒ Array<Agent>
Returns the value of the
agents
attribute. -
#agents=(list) ⇒ Object
Sets the value of the
agents
attribute. -
#auto_numa_status ⇒ AutoNumaStatus
Returns the value of the
auto_numa_status
attribute. -
#auto_numa_status=(value) ⇒ Object
Sets the value of the
auto_numa_status
attribute. -
#certificate ⇒ Certificate
Returns the value of the
certificate
attribute. -
#certificate=(value) ⇒ Object
Sets the value of the
certificate
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_units ⇒ Array<HostCpuUnit>
Returns the value of the
cpu_units
attribute. -
#cpu_units=(list) ⇒ Object
Sets the value of the
cpu_units
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the
device_passthrough
attribute. -
#device_passthrough=(value) ⇒ Object
Sets the value of the
device_passthrough
attribute. -
#devices ⇒ Array<HostDevice>
Returns the value of the
devices
attribute. -
#devices=(list) ⇒ Object
Sets the value of the
devices
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#external_network_provider_configurations ⇒ Array<ExternalNetworkProviderConfiguration>
Returns the value of the
external_network_provider_configurations
attribute. -
#external_network_provider_configurations=(list) ⇒ Object
Sets the value of the
external_network_provider_configurations
attribute. -
#external_status ⇒ ExternalStatus
Returns the value of the
external_status
attribute. -
#external_status=(value) ⇒ Object
Sets the value of the
external_status
attribute. -
#hardware_information ⇒ HardwareInformation
Returns the value of the
hardware_information
attribute. -
#hardware_information=(value) ⇒ Object
Sets the value of the
hardware_information
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#hooks ⇒ Array<Hook>
Returns the value of the
hooks
attribute. -
#hooks=(list) ⇒ Object
Sets the value of the
hooks
attribute. -
#hosted_engine ⇒ HostedEngine
Returns the value of the
hosted_engine
attribute. -
#hosted_engine=(value) ⇒ Object
Sets the value of the
hosted_engine
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Host
constructor
Creates a new instance of the Host class.
-
#iscsi ⇒ IscsiDetails
Returns the value of the
iscsi
attribute. -
#iscsi=(value) ⇒ Object
Sets the value of the
iscsi
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#kdump_status ⇒ KdumpStatus
Returns the value of the
kdump_status
attribute. -
#kdump_status=(value) ⇒ Object
Sets the value of the
kdump_status
attribute. -
#ksm ⇒ Ksm
Returns the value of the
ksm
attribute. -
#ksm=(value) ⇒ Object
Sets the value of the
ksm
attribute. -
#libvirt_version ⇒ Version
Returns the value of the
libvirt_version
attribute. -
#libvirt_version=(value) ⇒ Object
Sets the value of the
libvirt_version
attribute. -
#max_scheduling_memory ⇒ Integer
Returns the value of the
max_scheduling_memory
attribute. -
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the
max_scheduling_memory
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the
network_attachments
attribute. -
#network_attachments=(list) ⇒ Object
Sets the value of the
network_attachments
attribute. -
#network_operation_in_progress ⇒ Boolean
Returns the value of the
network_operation_in_progress
attribute. -
#network_operation_in_progress=(value) ⇒ Object
Sets the value of the
network_operation_in_progress
attribute. -
#nics ⇒ Array<HostNic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodes
attribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodes
attribute. -
#numa_supported ⇒ Boolean
Returns the value of the
numa_supported
attribute. -
#numa_supported=(value) ⇒ Object
Sets the value of the
numa_supported
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#override_iptables ⇒ Boolean
Returns the value of the
override_iptables
attribute. -
#override_iptables=(value) ⇒ Object
Sets the value of the
override_iptables
attribute. -
#ovn_configured ⇒ Boolean
Returns the value of the
ovn_configured
attribute. -
#ovn_configured=(value) ⇒ Object
Sets the value of the
ovn_configured
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#power_management ⇒ PowerManagement
Returns the value of the
power_management
attribute. -
#power_management=(value) ⇒ Object
Sets the value of the
power_management
attribute. -
#protocol ⇒ HostProtocol
Returns the value of the
protocol
attribute. -
#protocol=(value) ⇒ Object
Sets the value of the
protocol
attribute. -
#reinstallation_required ⇒ Boolean
Returns the value of the
reinstallation_required
attribute. -
#reinstallation_required=(value) ⇒ Object
Sets the value of the
reinstallation_required
attribute. -
#root_password ⇒ String
Returns the value of the
root_password
attribute. -
#root_password=(value) ⇒ Object
Sets the value of the
root_password
attribute. -
#se_linux ⇒ SeLinux
Returns the value of the
se_linux
attribute. -
#se_linux=(value) ⇒ Object
Sets the value of the
se_linux
attribute. -
#spm ⇒ Spm
Returns the value of the
spm
attribute. -
#spm=(value) ⇒ Object
Sets the value of the
spm
attribute. -
#ssh ⇒ Ssh
Returns the value of the
ssh
attribute. -
#ssh=(value) ⇒ Object
Sets the value of the
ssh
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ HostStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the
storage_connection_extensions
attribute. -
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the
storage_connection_extensions
attribute. -
#storages ⇒ Array<HostStorage>
Returns the value of the
storages
attribute. -
#storages=(list) ⇒ Object
Sets the value of the
storages
attribute. -
#summary ⇒ VmSummary
Returns the value of the
summary
attribute. -
#summary=(value) ⇒ Object
Sets the value of the
summary
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#transparent_huge_pages ⇒ TransparentHugePages
Returns the value of the
transparent_huge_pages
attribute. -
#transparent_huge_pages=(value) ⇒ Object
Sets the value of the
transparent_huge_pages
attribute. -
#type ⇒ HostType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the
unmanaged_networks
attribute. -
#unmanaged_networks=(list) ⇒ Object
Sets the value of the
unmanaged_networks
attribute. -
#update_available ⇒ Boolean
Returns the value of the
update_available
attribute. -
#update_available=(value) ⇒ Object
Sets the value of the
update_available
attribute. -
#version ⇒ Version
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute. -
#vgpu_placement ⇒ VgpuPlacement
Returns the value of the
vgpu_placement
attribute. -
#vgpu_placement=(value) ⇒ Object
Sets the value of the
vgpu_placement
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Host
Creates a new instance of the OvirtSDK4::Host class.
45617 45618 45619 45620 45621 45622 45623 45624 45625 45626 45627 45628 45629 45630 45631 45632 45633 45634 45635 45636 45637 45638 45639 45640 45641 45642 45643 45644 45645 45646 45647 45648 45649 45650 45651 45652 45653 45654 45655 45656 45657 45658 45659 45660 45661 45662 45663 45664 45665 45666 45667 45668 45669 45670 45671 45672 45673 |
# File 'lib/ovirtsdk4/types.rb', line 45617 def initialize(opts = {}) super(opts) self.address = opts[:address] self.affinity_labels = opts[:affinity_labels] self.agents = opts[:agents] self.auto_numa_status = opts[:auto_numa_status] self.certificate = opts[:certificate] self.cluster = opts[:cluster] self.cpu = opts[:cpu] self.cpu_units = opts[:cpu_units] self.device_passthrough = opts[:device_passthrough] self.devices = opts[:devices] self.display = opts[:display] self.external_host_provider = opts[:external_host_provider] self.external_network_provider_configurations = opts[:external_network_provider_configurations] self.external_status = opts[:external_status] self.hardware_information = opts[:hardware_information] self.hooks = opts[:hooks] self.hosted_engine = opts[:hosted_engine] self.iscsi = opts[:iscsi] self.katello_errata = opts[:katello_errata] self.kdump_status = opts[:kdump_status] self.ksm = opts[:ksm] self.libvirt_version = opts[:libvirt_version] self.max_scheduling_memory = opts[:max_scheduling_memory] self.memory = opts[:memory] self. = opts[:network_attachments] self.network_operation_in_progress = opts[:network_operation_in_progress] self.nics = opts[:nics] self.numa_nodes = opts[:numa_nodes] self.numa_supported = opts[:numa_supported] self.os = opts[:os] self.override_iptables = opts[:override_iptables] self.ovn_configured = opts[:ovn_configured] self. = opts[:permissions] self.port = opts[:port] self.power_management = opts[:power_management] self.protocol = opts[:protocol] self.reinstallation_required = opts[:reinstallation_required] self.root_password = opts[:root_password] self.se_linux = opts[:se_linux] self.spm = opts[:spm] self.ssh = opts[:ssh] self.statistics = opts[:statistics] self.status = opts[:status] self.status_detail = opts[:status_detail] self.storage_connection_extensions = opts[:storage_connection_extensions] self.storages = opts[:storages] self.summary = opts[:summary] self. = opts[:tags] self.transparent_huge_pages = opts[:transparent_huge_pages] self.type = opts[:type] self.unmanaged_networks = opts[:unmanaged_networks] self.update_available = opts[:update_available] self.version = opts[:version] self.vgpu_placement = opts[:vgpu_placement] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
45678 45679 45680 45681 45682 45683 45684 45685 45686 45687 45688 45689 45690 45691 45692 45693 45694 45695 45696 45697 45698 45699 45700 45701 45702 45703 45704 45705 45706 45707 45708 45709 45710 45711 45712 45713 45714 45715 45716 45717 45718 45719 45720 45721 45722 45723 45724 45725 45726 45727 45728 45729 45730 45731 45732 45733 45734 |
# File 'lib/ovirtsdk4/types.rb', line 45678 def ==(other) super && @address == other.address && @affinity_labels == other.affinity_labels && @agents == other.agents && @auto_numa_status == other.auto_numa_status && @certificate == other.certificate && @cluster == other.cluster && @cpu == other.cpu && @cpu_units == other.cpu_units && @device_passthrough == other.device_passthrough && @devices == other.devices && @display == other.display && @external_host_provider == other.external_host_provider && @external_network_provider_configurations == other.external_network_provider_configurations && @external_status == other.external_status && @hardware_information == other.hardware_information && @hooks == other.hooks && @hosted_engine == other.hosted_engine && @iscsi == other.iscsi && @katello_errata == other.katello_errata && @kdump_status == other.kdump_status && @ksm == other.ksm && @libvirt_version == other.libvirt_version && @max_scheduling_memory == other.max_scheduling_memory && @memory == other.memory && @network_attachments == other. && @network_operation_in_progress == other.network_operation_in_progress && @nics == other.nics && @numa_nodes == other.numa_nodes && @numa_supported == other.numa_supported && @os == other.os && @override_iptables == other.override_iptables && @ovn_configured == other.ovn_configured && @permissions == other. && @port == other.port && @power_management == other.power_management && @protocol == other.protocol && @reinstallation_required == other.reinstallation_required && @root_password == other.root_password && @se_linux == other.se_linux && @spm == other.spm && @ssh == other.ssh && @statistics == other.statistics && @status == other.status && @status_detail == other.status_detail && @storage_connection_extensions == other.storage_connection_extensions && @storages == other.storages && @summary == other.summary && @tags == other. && @transparent_huge_pages == other.transparent_huge_pages && @type == other.type && @unmanaged_networks == other.unmanaged_networks && @update_available == other.update_available && @version == other.version && @vgpu_placement == other.vgpu_placement end |
#address ⇒ String
Returns the value of the address
attribute.
44193 44194 44195 |
# File 'lib/ovirtsdk4/types.rb', line 44193 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
44202 44203 44204 |
# File 'lib/ovirtsdk4/types.rb', line 44202 def address=(value) @address = value end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
44211 44212 44213 |
# File 'lib/ovirtsdk4/types.rb', line 44211 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
44220 44221 44222 44223 44224 44225 44226 44227 44228 44229 44230 |
# File 'lib/ovirtsdk4/types.rb', line 44220 def affinity_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = AffinityLabel.new(value) end end end @affinity_labels = list end |
#agents ⇒ Array<Agent>
Returns the value of the agents
attribute.
44237 44238 44239 |
# File 'lib/ovirtsdk4/types.rb', line 44237 def agents @agents end |
#agents=(list) ⇒ Object
Sets the value of the agents
attribute.
44246 44247 44248 44249 44250 44251 44252 44253 44254 44255 44256 |
# File 'lib/ovirtsdk4/types.rb', line 44246 def agents=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Agent.new(value) end end end @agents = list end |
#auto_numa_status ⇒ AutoNumaStatus
Returns the value of the auto_numa_status
attribute.
44263 44264 44265 |
# File 'lib/ovirtsdk4/types.rb', line 44263 def auto_numa_status @auto_numa_status end |
#auto_numa_status=(value) ⇒ Object
Sets the value of the auto_numa_status
attribute.
44272 44273 44274 |
# File 'lib/ovirtsdk4/types.rb', line 44272 def auto_numa_status=(value) @auto_numa_status = value end |
#certificate ⇒ Certificate
Returns the value of the certificate
attribute.
44281 44282 44283 |
# File 'lib/ovirtsdk4/types.rb', line 44281 def certificate @certificate end |
#certificate=(value) ⇒ Object
Sets the value of the certificate
attribute.
The value
parameter can be an instance of Certificate 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.
44294 44295 44296 44297 44298 44299 |
# File 'lib/ovirtsdk4/types.rb', line 44294 def certificate=(value) if value.is_a?(Hash) value = Certificate.new(value) end @certificate = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
44306 44307 44308 |
# File 'lib/ovirtsdk4/types.rb', line 44306 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster
attribute.
The value
parameter can be an instance of Cluster 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.
44319 44320 44321 44322 44323 44324 |
# File 'lib/ovirtsdk4/types.rb', line 44319 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
44331 44332 44333 |
# File 'lib/ovirtsdk4/types.rb', line 44331 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44340 44341 44342 |
# File 'lib/ovirtsdk4/types.rb', line 44340 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
44349 44350 44351 |
# File 'lib/ovirtsdk4/types.rb', line 44349 def cpu @cpu end |
#cpu=(value) ⇒ Object
Sets the value of the cpu
attribute.
The value
parameter can be an instance of Cpu 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.
44362 44363 44364 44365 44366 44367 |
# File 'lib/ovirtsdk4/types.rb', line 44362 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_units ⇒ Array<HostCpuUnit>
Returns the value of the cpu_units
attribute.
44374 44375 44376 |
# File 'lib/ovirtsdk4/types.rb', line 44374 def cpu_units @cpu_units end |
#cpu_units=(list) ⇒ Object
Sets the value of the cpu_units
attribute.
44383 44384 44385 44386 44387 44388 44389 44390 44391 44392 44393 |
# File 'lib/ovirtsdk4/types.rb', line 44383 def cpu_units=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostCpuUnit.new(value) end end end @cpu_units = list end |
#description ⇒ String
Returns the value of the description
attribute.
44400 44401 44402 |
# File 'lib/ovirtsdk4/types.rb', line 44400 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44409 44410 44411 |
# File 'lib/ovirtsdk4/types.rb', line 44409 def description=(value) @description = value end |
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the device_passthrough
attribute.
44418 44419 44420 |
# File 'lib/ovirtsdk4/types.rb', line 44418 def device_passthrough @device_passthrough end |
#device_passthrough=(value) ⇒ Object
Sets the value of the device_passthrough
attribute.
The value
parameter can be an instance of OvirtSDK4::HostDevicePassthrough 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.
44431 44432 44433 44434 44435 44436 |
# File 'lib/ovirtsdk4/types.rb', line 44431 def device_passthrough=(value) if value.is_a?(Hash) value = HostDevicePassthrough.new(value) end @device_passthrough = value end |
#devices ⇒ Array<HostDevice>
Returns the value of the devices
attribute.
44443 44444 44445 |
# File 'lib/ovirtsdk4/types.rb', line 44443 def devices @devices end |
#devices=(list) ⇒ Object
Sets the value of the devices
attribute.
44452 44453 44454 44455 44456 44457 44458 44459 44460 44461 44462 |
# File 'lib/ovirtsdk4/types.rb', line 44452 def devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostDevice.new(value) end end end @devices = list end |
#display ⇒ Display
Returns the value of the display
attribute.
44469 44470 44471 |
# File 'lib/ovirtsdk4/types.rb', line 44469 def display @display end |
#display=(value) ⇒ Object
Sets the value of the display
attribute.
The value
parameter can be an instance of Display 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.
44482 44483 44484 44485 44486 44487 |
# File 'lib/ovirtsdk4/types.rb', line 44482 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
44494 44495 44496 |
# File 'lib/ovirtsdk4/types.rb', line 44494 def external_host_provider @external_host_provider end |
#external_host_provider=(value) ⇒ Object
Sets the value of the external_host_provider
attribute.
The value
parameter can be an instance of ExternalHostProvider 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.
44507 44508 44509 44510 44511 44512 |
# File 'lib/ovirtsdk4/types.rb', line 44507 def external_host_provider=(value) if value.is_a?(Hash) value = ExternalHostProvider.new(value) end @external_host_provider = value end |
#external_network_provider_configurations ⇒ Array<ExternalNetworkProviderConfiguration>
Returns the value of the external_network_provider_configurations
attribute.
44519 44520 44521 |
# File 'lib/ovirtsdk4/types.rb', line 44519 def external_network_provider_configurations @external_network_provider_configurations end |
#external_network_provider_configurations=(list) ⇒ Object
Sets the value of the external_network_provider_configurations
attribute.
44528 44529 44530 44531 44532 44533 44534 44535 44536 44537 44538 |
# File 'lib/ovirtsdk4/types.rb', line 44528 def external_network_provider_configurations=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalNetworkProviderConfiguration.new(value) end end end @external_network_provider_configurations = list end |
#external_status ⇒ ExternalStatus
Returns the value of the external_status
attribute.
44545 44546 44547 |
# File 'lib/ovirtsdk4/types.rb', line 44545 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
44554 44555 44556 |
# File 'lib/ovirtsdk4/types.rb', line 44554 def external_status=(value) @external_status = value end |
#hardware_information ⇒ HardwareInformation
Returns the value of the hardware_information
attribute.
44563 44564 44565 |
# File 'lib/ovirtsdk4/types.rb', line 44563 def hardware_information @hardware_information end |
#hardware_information=(value) ⇒ Object
Sets the value of the hardware_information
attribute.
The value
parameter can be an instance of OvirtSDK4::HardwareInformation 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.
44576 44577 44578 44579 44580 44581 |
# File 'lib/ovirtsdk4/types.rb', line 44576 def hardware_information=(value) if value.is_a?(Hash) value = HardwareInformation.new(value) end @hardware_information = value end |
#hash ⇒ Object
Generates a hash value for this object.
45739 45740 45741 45742 45743 45744 45745 45746 45747 45748 45749 45750 45751 45752 45753 45754 45755 45756 45757 45758 45759 45760 45761 45762 45763 45764 45765 45766 45767 45768 45769 45770 45771 45772 45773 45774 45775 45776 45777 45778 45779 45780 45781 45782 45783 45784 45785 45786 45787 45788 45789 45790 45791 45792 45793 45794 45795 |
# File 'lib/ovirtsdk4/types.rb', line 45739 def hash super + @address.hash + @affinity_labels.hash + @agents.hash + @auto_numa_status.hash + @certificate.hash + @cluster.hash + @cpu.hash + @cpu_units.hash + @device_passthrough.hash + @devices.hash + @display.hash + @external_host_provider.hash + @external_network_provider_configurations.hash + @external_status.hash + @hardware_information.hash + @hooks.hash + @hosted_engine.hash + @iscsi.hash + @katello_errata.hash + @kdump_status.hash + @ksm.hash + @libvirt_version.hash + @max_scheduling_memory.hash + @memory.hash + @network_attachments.hash + @network_operation_in_progress.hash + @nics.hash + @numa_nodes.hash + @numa_supported.hash + @os.hash + @override_iptables.hash + @ovn_configured.hash + @permissions.hash + @port.hash + @power_management.hash + @protocol.hash + @reinstallation_required.hash + @root_password.hash + @se_linux.hash + @spm.hash + @ssh.hash + @statistics.hash + @status.hash + @status_detail.hash + @storage_connection_extensions.hash + @storages.hash + @summary.hash + @tags.hash + @transparent_huge_pages.hash + @type.hash + @unmanaged_networks.hash + @update_available.hash + @version.hash + @vgpu_placement.hash end |
#hooks ⇒ Array<Hook>
Returns the value of the hooks
attribute.
44588 44589 44590 |
# File 'lib/ovirtsdk4/types.rb', line 44588 def hooks @hooks end |
#hooks=(list) ⇒ Object
Sets the value of the hooks
attribute.
44597 44598 44599 44600 44601 44602 44603 44604 44605 44606 44607 |
# File 'lib/ovirtsdk4/types.rb', line 44597 def hooks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Hook.new(value) end end end @hooks = list end |
#hosted_engine ⇒ HostedEngine
Returns the value of the hosted_engine
attribute.
44614 44615 44616 |
# File 'lib/ovirtsdk4/types.rb', line 44614 def hosted_engine @hosted_engine end |
#hosted_engine=(value) ⇒ Object
Sets the value of the hosted_engine
attribute.
The value
parameter can be an instance of OvirtSDK4::HostedEngine 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.
44627 44628 44629 44630 44631 44632 |
# File 'lib/ovirtsdk4/types.rb', line 44627 def hosted_engine=(value) if value.is_a?(Hash) value = HostedEngine.new(value) end @hosted_engine = value end |
#id ⇒ String
Returns the value of the id
attribute.
44639 44640 44641 |
# File 'lib/ovirtsdk4/types.rb', line 44639 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
44648 44649 44650 |
# File 'lib/ovirtsdk4/types.rb', line 44648 def id=(value) @id = value end |
#iscsi ⇒ IscsiDetails
Returns the value of the iscsi
attribute.
44657 44658 44659 |
# File 'lib/ovirtsdk4/types.rb', line 44657 def iscsi @iscsi end |
#iscsi=(value) ⇒ Object
Sets the value of the iscsi
attribute.
The value
parameter can be an instance of IscsiDetails 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.
44670 44671 44672 44673 44674 44675 |
# File 'lib/ovirtsdk4/types.rb', line 44670 def iscsi=(value) if value.is_a?(Hash) value = IscsiDetails.new(value) end @iscsi = value end |
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the katello_errata
attribute.
44682 44683 44684 |
# File 'lib/ovirtsdk4/types.rb', line 44682 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
44691 44692 44693 44694 44695 44696 44697 44698 44699 44700 44701 |
# File 'lib/ovirtsdk4/types.rb', line 44691 def katello_errata=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = KatelloErratum.new(value) end end end @katello_errata = list end |
#kdump_status ⇒ KdumpStatus
Returns the value of the kdump_status
attribute.
44708 44709 44710 |
# File 'lib/ovirtsdk4/types.rb', line 44708 def kdump_status @kdump_status end |
#kdump_status=(value) ⇒ Object
Sets the value of the kdump_status
attribute.
44717 44718 44719 |
# File 'lib/ovirtsdk4/types.rb', line 44717 def kdump_status=(value) @kdump_status = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
44726 44727 44728 |
# File 'lib/ovirtsdk4/types.rb', line 44726 def ksm @ksm end |
#ksm=(value) ⇒ Object
Sets the value of the ksm
attribute.
The value
parameter can be an instance of Ksm 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.
44739 44740 44741 44742 44743 44744 |
# File 'lib/ovirtsdk4/types.rb', line 44739 def ksm=(value) if value.is_a?(Hash) value = Ksm.new(value) end @ksm = value end |
#libvirt_version ⇒ Version
Returns the value of the libvirt_version
attribute.
44751 44752 44753 |
# File 'lib/ovirtsdk4/types.rb', line 44751 def libvirt_version @libvirt_version end |
#libvirt_version=(value) ⇒ Object
Sets the value of the libvirt_version
attribute.
The value
parameter can be an instance of Version 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.
44764 44765 44766 44767 44768 44769 |
# File 'lib/ovirtsdk4/types.rb', line 44764 def libvirt_version=(value) if value.is_a?(Hash) value = Version.new(value) end @libvirt_version = value end |
#max_scheduling_memory ⇒ Integer
Returns the value of the max_scheduling_memory
attribute.
44776 44777 44778 |
# File 'lib/ovirtsdk4/types.rb', line 44776 def max_scheduling_memory @max_scheduling_memory end |
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the max_scheduling_memory
attribute.
44785 44786 44787 |
# File 'lib/ovirtsdk4/types.rb', line 44785 def max_scheduling_memory=(value) @max_scheduling_memory = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
44794 44795 44796 |
# File 'lib/ovirtsdk4/types.rb', line 44794 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
44803 44804 44805 |
# File 'lib/ovirtsdk4/types.rb', line 44803 def memory=(value) @memory = value end |
#name ⇒ String
Returns the value of the name
attribute.
44812 44813 44814 |
# File 'lib/ovirtsdk4/types.rb', line 44812 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44821 44822 44823 |
# File 'lib/ovirtsdk4/types.rb', line 44821 def name=(value) @name = value end |
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the network_attachments
attribute.
44830 44831 44832 |
# File 'lib/ovirtsdk4/types.rb', line 44830 def @network_attachments end |
#network_attachments=(list) ⇒ Object
Sets the value of the network_attachments
attribute.
44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 |
# File 'lib/ovirtsdk4/types.rb', line 44839 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkAttachment.new(value) end end end @network_attachments = list end |
#network_operation_in_progress ⇒ Boolean
Returns the value of the network_operation_in_progress
attribute.
44856 44857 44858 |
# File 'lib/ovirtsdk4/types.rb', line 44856 def network_operation_in_progress @network_operation_in_progress end |
#network_operation_in_progress=(value) ⇒ Object
Sets the value of the network_operation_in_progress
attribute.
44865 44866 44867 |
# File 'lib/ovirtsdk4/types.rb', line 44865 def network_operation_in_progress=(value) @network_operation_in_progress = value end |
#nics ⇒ Array<HostNic>
Returns the value of the nics
attribute.
44874 44875 44876 |
# File 'lib/ovirtsdk4/types.rb', line 44874 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 |
# File 'lib/ovirtsdk4/types.rb', line 44883 def nics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostNic.new(value) end end end @nics = list end |
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the numa_nodes
attribute.
44900 44901 44902 |
# File 'lib/ovirtsdk4/types.rb', line 44900 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 |
# File 'lib/ovirtsdk4/types.rb', line 44909 def numa_nodes=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NumaNode.new(value) end end end @numa_nodes = list end |
#numa_supported ⇒ Boolean
Returns the value of the numa_supported
attribute.
44926 44927 44928 |
# File 'lib/ovirtsdk4/types.rb', line 44926 def numa_supported @numa_supported end |
#numa_supported=(value) ⇒ Object
Sets the value of the numa_supported
attribute.
44935 44936 44937 |
# File 'lib/ovirtsdk4/types.rb', line 44935 def numa_supported=(value) @numa_supported = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
44944 44945 44946 |
# File 'lib/ovirtsdk4/types.rb', line 44944 def os @os end |
#os=(value) ⇒ Object
Sets the value of the os
attribute.
The value
parameter can be an instance of OperatingSystem 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.
44957 44958 44959 44960 44961 44962 |
# File 'lib/ovirtsdk4/types.rb', line 44957 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#override_iptables ⇒ Boolean
Returns the value of the override_iptables
attribute.
44969 44970 44971 |
# File 'lib/ovirtsdk4/types.rb', line 44969 def override_iptables @override_iptables end |
#override_iptables=(value) ⇒ Object
Sets the value of the override_iptables
attribute.
44978 44979 44980 |
# File 'lib/ovirtsdk4/types.rb', line 44978 def override_iptables=(value) @override_iptables = value end |
#ovn_configured ⇒ Boolean
Returns the value of the ovn_configured
attribute.
44987 44988 44989 |
# File 'lib/ovirtsdk4/types.rb', line 44987 def ovn_configured @ovn_configured end |
#ovn_configured=(value) ⇒ Object
Sets the value of the ovn_configured
attribute.
44996 44997 44998 |
# File 'lib/ovirtsdk4/types.rb', line 44996 def ovn_configured=(value) @ovn_configured = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
45005 45006 45007 |
# File 'lib/ovirtsdk4/types.rb', line 45005 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 |
# File 'lib/ovirtsdk4/types.rb', line 45014 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#port ⇒ Integer
Returns the value of the port
attribute.
45031 45032 45033 |
# File 'lib/ovirtsdk4/types.rb', line 45031 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
45040 45041 45042 |
# File 'lib/ovirtsdk4/types.rb', line 45040 def port=(value) @port = value end |
#power_management ⇒ PowerManagement
Returns the value of the power_management
attribute.
45049 45050 45051 |
# File 'lib/ovirtsdk4/types.rb', line 45049 def power_management @power_management end |
#power_management=(value) ⇒ Object
Sets the value of the power_management
attribute.
The value
parameter can be an instance of PowerManagement 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.
45062 45063 45064 45065 45066 45067 |
# File 'lib/ovirtsdk4/types.rb', line 45062 def power_management=(value) if value.is_a?(Hash) value = PowerManagement.new(value) end @power_management = value end |
#protocol ⇒ HostProtocol
Returns the value of the protocol
attribute.
45074 45075 45076 |
# File 'lib/ovirtsdk4/types.rb', line 45074 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
45083 45084 45085 |
# File 'lib/ovirtsdk4/types.rb', line 45083 def protocol=(value) @protocol = value end |
#reinstallation_required ⇒ Boolean
Returns the value of the reinstallation_required
attribute.
45092 45093 45094 |
# File 'lib/ovirtsdk4/types.rb', line 45092 def reinstallation_required @reinstallation_required end |
#reinstallation_required=(value) ⇒ Object
Sets the value of the reinstallation_required
attribute.
45101 45102 45103 |
# File 'lib/ovirtsdk4/types.rb', line 45101 def reinstallation_required=(value) @reinstallation_required = value end |
#root_password ⇒ String
Returns the value of the root_password
attribute.
45110 45111 45112 |
# File 'lib/ovirtsdk4/types.rb', line 45110 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password
attribute.
45119 45120 45121 |
# File 'lib/ovirtsdk4/types.rb', line 45119 def root_password=(value) @root_password = value end |
#se_linux ⇒ SeLinux
Returns the value of the se_linux
attribute.
45128 45129 45130 |
# File 'lib/ovirtsdk4/types.rb', line 45128 def se_linux @se_linux end |
#se_linux=(value) ⇒ Object
Sets the value of the se_linux
attribute.
The value
parameter can be an instance of SeLinux 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.
45141 45142 45143 45144 45145 45146 |
# File 'lib/ovirtsdk4/types.rb', line 45141 def se_linux=(value) if value.is_a?(Hash) value = SeLinux.new(value) end @se_linux = value end |
#spm ⇒ Spm
Returns the value of the spm
attribute.
45153 45154 45155 |
# File 'lib/ovirtsdk4/types.rb', line 45153 def spm @spm end |
#spm=(value) ⇒ Object
Sets the value of the spm
attribute.
The value
parameter can be an instance of Spm 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.
45166 45167 45168 45169 45170 45171 |
# File 'lib/ovirtsdk4/types.rb', line 45166 def spm=(value) if value.is_a?(Hash) value = Spm.new(value) end @spm = value end |
#ssh ⇒ Ssh
Returns the value of the ssh
attribute.
45178 45179 45180 |
# File 'lib/ovirtsdk4/types.rb', line 45178 def ssh @ssh end |
#ssh=(value) ⇒ Object
Sets the value of the ssh
attribute.
The value
parameter can be an instance of Ssh 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.
45191 45192 45193 45194 45195 45196 |
# File 'lib/ovirtsdk4/types.rb', line 45191 def ssh=(value) if value.is_a?(Hash) value = Ssh.new(value) end @ssh = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
45203 45204 45205 |
# File 'lib/ovirtsdk4/types.rb', line 45203 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
45212 45213 45214 45215 45216 45217 45218 45219 45220 45221 45222 |
# File 'lib/ovirtsdk4/types.rb', line 45212 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |
#status ⇒ HostStatus
Returns the value of the status
attribute.
45229 45230 45231 |
# File 'lib/ovirtsdk4/types.rb', line 45229 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
45238 45239 45240 |
# File 'lib/ovirtsdk4/types.rb', line 45238 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
45247 45248 45249 |
# File 'lib/ovirtsdk4/types.rb', line 45247 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
45256 45257 45258 |
# File 'lib/ovirtsdk4/types.rb', line 45256 def status_detail=(value) @status_detail = value end |
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the storage_connection_extensions
attribute.
45265 45266 45267 |
# File 'lib/ovirtsdk4/types.rb', line 45265 def storage_connection_extensions @storage_connection_extensions end |
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the storage_connection_extensions
attribute.
45274 45275 45276 45277 45278 45279 45280 45281 45282 45283 45284 |
# File 'lib/ovirtsdk4/types.rb', line 45274 def storage_connection_extensions=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = StorageConnectionExtension.new(value) end end end @storage_connection_extensions = list end |
#storages ⇒ Array<HostStorage>
Returns the value of the storages
attribute.
45291 45292 45293 |
# File 'lib/ovirtsdk4/types.rb', line 45291 def storages @storages end |
#storages=(list) ⇒ Object
Sets the value of the storages
attribute.
45300 45301 45302 45303 45304 45305 45306 45307 45308 45309 45310 |
# File 'lib/ovirtsdk4/types.rb', line 45300 def storages=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostStorage.new(value) end end end @storages = list end |
#summary ⇒ VmSummary
Returns the value of the summary
attribute.
45317 45318 45319 |
# File 'lib/ovirtsdk4/types.rb', line 45317 def summary @summary end |
#summary=(value) ⇒ Object
Sets the value of the summary
attribute.
The value
parameter can be an instance of VmSummary 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.
45330 45331 45332 45333 45334 45335 |
# File 'lib/ovirtsdk4/types.rb', line 45330 def summary=(value) if value.is_a?(Hash) value = VmSummary.new(value) end @summary = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
45342 45343 45344 |
# File 'lib/ovirtsdk4/types.rb', line 45342 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
45351 45352 45353 45354 45355 45356 45357 45358 45359 45360 45361 |
# File 'lib/ovirtsdk4/types.rb', line 45351 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Tag.new(value) end end end @tags = list end |
#transparent_huge_pages ⇒ TransparentHugePages
Returns the value of the transparent_huge_pages
attribute.
45368 45369 45370 |
# File 'lib/ovirtsdk4/types.rb', line 45368 def transparent_huge_pages @transparent_huge_pages end |
#transparent_huge_pages=(value) ⇒ Object
Sets the value of the transparent_huge_pages
attribute.
The value
parameter can be an instance of TransparentHugePages 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.
45381 45382 45383 45384 45385 45386 |
# File 'lib/ovirtsdk4/types.rb', line 45381 def transparent_huge_pages=(value) if value.is_a?(Hash) value = TransparentHugePages.new(value) end @transparent_huge_pages = value end |
#type ⇒ HostType
Returns the value of the type
attribute.
45393 45394 45395 |
# File 'lib/ovirtsdk4/types.rb', line 45393 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
45402 45403 45404 |
# File 'lib/ovirtsdk4/types.rb', line 45402 def type=(value) @type = value end |
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the unmanaged_networks
attribute.
45411 45412 45413 |
# File 'lib/ovirtsdk4/types.rb', line 45411 def unmanaged_networks @unmanaged_networks end |
#unmanaged_networks=(list) ⇒ Object
Sets the value of the unmanaged_networks
attribute.
45420 45421 45422 45423 45424 45425 45426 45427 45428 45429 45430 |
# File 'lib/ovirtsdk4/types.rb', line 45420 def unmanaged_networks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = UnmanagedNetwork.new(value) end end end @unmanaged_networks = list end |
#update_available ⇒ Boolean
Returns the value of the update_available
attribute.
45437 45438 45439 |
# File 'lib/ovirtsdk4/types.rb', line 45437 def update_available @update_available end |
#update_available=(value) ⇒ Object
Sets the value of the update_available
attribute.
45446 45447 45448 |
# File 'lib/ovirtsdk4/types.rb', line 45446 def update_available=(value) @update_available = value end |
#version ⇒ Version
Returns the value of the version
attribute.
45455 45456 45457 |
# File 'lib/ovirtsdk4/types.rb', line 45455 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
The value
parameter can be an instance of Version 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.
45468 45469 45470 45471 45472 45473 |
# File 'lib/ovirtsdk4/types.rb', line 45468 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |
#vgpu_placement ⇒ VgpuPlacement
Returns the value of the vgpu_placement
attribute.
45480 45481 45482 |
# File 'lib/ovirtsdk4/types.rb', line 45480 def vgpu_placement @vgpu_placement end |
#vgpu_placement=(value) ⇒ Object
Sets the value of the vgpu_placement
attribute.
45489 45490 45491 |
# File 'lib/ovirtsdk4/types.rb', line 45489 def vgpu_placement=(value) @vgpu_placement = value end |