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
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labelsattribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labelsattribute. -
#agents ⇒ Array<Agent>
Returns the value of the
agentsattribute. -
#agents=(list) ⇒ Object
Sets the value of the
agentsattribute. -
#auto_numa_status ⇒ AutoNumaStatus
Returns the value of the
auto_numa_statusattribute. -
#auto_numa_status=(value) ⇒ Object
Sets the value of the
auto_numa_statusattribute. -
#certificate ⇒ Certificate
Returns the value of the
certificateattribute. -
#certificate=(value) ⇒ Object
Sets the value of the
certificateattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_units ⇒ Array<HostCpuUnit>
Returns the value of the
cpu_unitsattribute. -
#cpu_units=(list) ⇒ Object
Sets the value of the
cpu_unitsattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the
device_passthroughattribute. -
#device_passthrough=(value) ⇒ Object
Sets the value of the
device_passthroughattribute. -
#devices ⇒ Array<HostDevice>
Returns the value of the
devicesattribute. -
#devices=(list) ⇒ Object
Sets the value of the
devicesattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#external_network_provider_configurations ⇒ Array<ExternalNetworkProviderConfiguration>
Returns the value of the
external_network_provider_configurationsattribute. -
#external_network_provider_configurations=(list) ⇒ Object
Sets the value of the
external_network_provider_configurationsattribute. -
#external_status ⇒ ExternalStatus
Returns the value of the
external_statusattribute. -
#external_status=(value) ⇒ Object
Sets the value of the
external_statusattribute. -
#hardware_information ⇒ HardwareInformation
Returns the value of the
hardware_informationattribute. -
#hardware_information=(value) ⇒ Object
Sets the value of the
hardware_informationattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#hooks ⇒ Array<Hook>
Returns the value of the
hooksattribute. -
#hooks=(list) ⇒ Object
Sets the value of the
hooksattribute. -
#hosted_engine ⇒ HostedEngine
Returns the value of the
hosted_engineattribute. -
#hosted_engine=(value) ⇒ Object
Sets the value of the
hosted_engineattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Host
constructor
Creates a new instance of the Host class.
-
#iscsi ⇒ IscsiDetails
Returns the value of the
iscsiattribute. -
#iscsi=(value) ⇒ Object
Sets the value of the
iscsiattribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errataattribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errataattribute. -
#kdump_status ⇒ KdumpStatus
Returns the value of the
kdump_statusattribute. -
#kdump_status=(value) ⇒ Object
Sets the value of the
kdump_statusattribute. -
#ksm ⇒ Ksm
Returns the value of the
ksmattribute. -
#ksm=(value) ⇒ Object
Sets the value of the
ksmattribute. -
#libvirt_version ⇒ Version
Returns the value of the
libvirt_versionattribute. -
#libvirt_version=(value) ⇒ Object
Sets the value of the
libvirt_versionattribute. -
#max_scheduling_memory ⇒ Integer
Returns the value of the
max_scheduling_memoryattribute. -
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the
max_scheduling_memoryattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the
network_attachmentsattribute. -
#network_attachments=(list) ⇒ Object
Sets the value of the
network_attachmentsattribute. -
#network_operation_in_progress ⇒ Boolean
Returns the value of the
network_operation_in_progressattribute. -
#network_operation_in_progress=(value) ⇒ Object
Sets the value of the
network_operation_in_progressattribute. -
#nics ⇒ Array<HostNic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodesattribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodesattribute. -
#numa_supported ⇒ Boolean
Returns the value of the
numa_supportedattribute. -
#numa_supported=(value) ⇒ Object
Sets the value of the
numa_supportedattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#override_iptables ⇒ Boolean
Returns the value of the
override_iptablesattribute. -
#override_iptables=(value) ⇒ Object
Sets the value of the
override_iptablesattribute. -
#ovn_configured ⇒ Boolean
Returns the value of the
ovn_configuredattribute. -
#ovn_configured=(value) ⇒ Object
Sets the value of the
ovn_configuredattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#power_management ⇒ PowerManagement
Returns the value of the
power_managementattribute. -
#power_management=(value) ⇒ Object
Sets the value of the
power_managementattribute. -
#protocol ⇒ HostProtocol
Returns the value of the
protocolattribute. -
#protocol=(value) ⇒ Object
Sets the value of the
protocolattribute. -
#reinstallation_required ⇒ Boolean
Returns the value of the
reinstallation_requiredattribute. -
#reinstallation_required=(value) ⇒ Object
Sets the value of the
reinstallation_requiredattribute. -
#root_password ⇒ String
Returns the value of the
root_passwordattribute. -
#root_password=(value) ⇒ Object
Sets the value of the
root_passwordattribute. -
#se_linux ⇒ SeLinux
Returns the value of the
se_linuxattribute. -
#se_linux=(value) ⇒ Object
Sets the value of the
se_linuxattribute. -
#spm ⇒ Spm
Returns the value of the
spmattribute. -
#spm=(value) ⇒ Object
Sets the value of the
spmattribute. -
#ssh ⇒ Ssh
Returns the value of the
sshattribute. -
#ssh=(value) ⇒ Object
Sets the value of the
sshattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ HostStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#status_detail ⇒ String
Returns the value of the
status_detailattribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detailattribute. -
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the
storage_connection_extensionsattribute. -
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the
storage_connection_extensionsattribute. -
#storages ⇒ Array<HostStorage>
Returns the value of the
storagesattribute. -
#storages=(list) ⇒ Object
Sets the value of the
storagesattribute. -
#summary ⇒ VmSummary
Returns the value of the
summaryattribute. -
#summary=(value) ⇒ Object
Sets the value of the
summaryattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#transparent_huge_pages ⇒ TransparentHugePages
Returns the value of the
transparent_huge_pagesattribute. -
#transparent_huge_pages=(value) ⇒ Object
Sets the value of the
transparent_huge_pagesattribute. -
#type ⇒ HostType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the
unmanaged_networksattribute. -
#unmanaged_networks=(list) ⇒ Object
Sets the value of the
unmanaged_networksattribute. -
#update_available ⇒ Boolean
Returns the value of the
update_availableattribute. -
#update_available=(value) ⇒ Object
Sets the value of the
update_availableattribute. -
#version ⇒ Version
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute. -
#vgpu_placement ⇒ VgpuPlacement
Returns the value of the
vgpu_placementattribute. -
#vgpu_placement=(value) ⇒ Object
Sets the value of the
vgpu_placementattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Host
Creates a new instance of the OvirtSDK4::Host class.
45910 45911 45912 45913 45914 45915 45916 45917 45918 45919 45920 45921 45922 45923 45924 45925 45926 45927 45928 45929 45930 45931 45932 45933 45934 45935 45936 45937 45938 45939 45940 45941 45942 45943 45944 45945 45946 45947 45948 45949 45950 45951 45952 45953 45954 45955 45956 45957 45958 45959 45960 45961 45962 45963 45964 45965 45966 |
# File 'lib/ovirtsdk4/types.rb', line 45910 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.
45971 45972 45973 45974 45975 45976 45977 45978 45979 45980 45981 45982 45983 45984 45985 45986 45987 45988 45989 45990 45991 45992 45993 45994 45995 45996 45997 45998 45999 46000 46001 46002 46003 46004 46005 46006 46007 46008 46009 46010 46011 46012 46013 46014 46015 46016 46017 46018 46019 46020 46021 46022 46023 46024 46025 46026 46027 |
# File 'lib/ovirtsdk4/types.rb', line 45971 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 && == 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 && == 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 && == 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.
44486 44487 44488 |
# File 'lib/ovirtsdk4/types.rb', line 44486 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
44495 44496 44497 |
# File 'lib/ovirtsdk4/types.rb', line 44495 def address=(value) @address = value end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels attribute.
44504 44505 44506 |
# File 'lib/ovirtsdk4/types.rb', line 44504 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels attribute.
44513 44514 44515 44516 44517 44518 44519 44520 44521 44522 44523 |
# File 'lib/ovirtsdk4/types.rb', line 44513 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.
44530 44531 44532 |
# File 'lib/ovirtsdk4/types.rb', line 44530 def agents @agents end |
#agents=(list) ⇒ Object
Sets the value of the agents attribute.
44539 44540 44541 44542 44543 44544 44545 44546 44547 44548 44549 |
# File 'lib/ovirtsdk4/types.rb', line 44539 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.
44556 44557 44558 |
# File 'lib/ovirtsdk4/types.rb', line 44556 def auto_numa_status @auto_numa_status end |
#auto_numa_status=(value) ⇒ Object
Sets the value of the auto_numa_status attribute.
44565 44566 44567 |
# File 'lib/ovirtsdk4/types.rb', line 44565 def auto_numa_status=(value) @auto_numa_status = value end |
#certificate ⇒ Certificate
Returns the value of the certificate attribute.
44574 44575 44576 |
# File 'lib/ovirtsdk4/types.rb', line 44574 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.
44587 44588 44589 44590 44591 44592 |
# File 'lib/ovirtsdk4/types.rb', line 44587 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.
44599 44600 44601 |
# File 'lib/ovirtsdk4/types.rb', line 44599 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.
44612 44613 44614 44615 44616 44617 |
# File 'lib/ovirtsdk4/types.rb', line 44612 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.
44624 44625 44626 |
# File 'lib/ovirtsdk4/types.rb', line 44624 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
44633 44634 44635 |
# File 'lib/ovirtsdk4/types.rb', line 44633 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu attribute.
44642 44643 44644 |
# File 'lib/ovirtsdk4/types.rb', line 44642 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.
44655 44656 44657 44658 44659 44660 |
# File 'lib/ovirtsdk4/types.rb', line 44655 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.
44667 44668 44669 |
# File 'lib/ovirtsdk4/types.rb', line 44667 def cpu_units @cpu_units end |
#cpu_units=(list) ⇒ Object
Sets the value of the cpu_units attribute.
44676 44677 44678 44679 44680 44681 44682 44683 44684 44685 44686 |
# File 'lib/ovirtsdk4/types.rb', line 44676 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.
44693 44694 44695 |
# File 'lib/ovirtsdk4/types.rb', line 44693 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
44702 44703 44704 |
# File 'lib/ovirtsdk4/types.rb', line 44702 def description=(value) @description = value end |
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the device_passthrough attribute.
44711 44712 44713 |
# File 'lib/ovirtsdk4/types.rb', line 44711 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.
44724 44725 44726 44727 44728 44729 |
# File 'lib/ovirtsdk4/types.rb', line 44724 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.
44736 44737 44738 |
# File 'lib/ovirtsdk4/types.rb', line 44736 def devices @devices end |
#devices=(list) ⇒ Object
Sets the value of the devices attribute.
44745 44746 44747 44748 44749 44750 44751 44752 44753 44754 44755 |
# File 'lib/ovirtsdk4/types.rb', line 44745 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.
44762 44763 44764 |
# File 'lib/ovirtsdk4/types.rb', line 44762 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.
44775 44776 44777 44778 44779 44780 |
# File 'lib/ovirtsdk4/types.rb', line 44775 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.
44787 44788 44789 |
# File 'lib/ovirtsdk4/types.rb', line 44787 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.
44800 44801 44802 44803 44804 44805 |
# File 'lib/ovirtsdk4/types.rb', line 44800 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.
44812 44813 44814 |
# File 'lib/ovirtsdk4/types.rb', line 44812 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.
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 |
# File 'lib/ovirtsdk4/types.rb', line 44821 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.
44838 44839 44840 |
# File 'lib/ovirtsdk4/types.rb', line 44838 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status attribute.
44847 44848 44849 |
# File 'lib/ovirtsdk4/types.rb', line 44847 def external_status=(value) @external_status = value end |
#hardware_information ⇒ HardwareInformation
Returns the value of the hardware_information attribute.
44856 44857 44858 |
# File 'lib/ovirtsdk4/types.rb', line 44856 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.
44869 44870 44871 44872 44873 44874 |
# File 'lib/ovirtsdk4/types.rb', line 44869 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.
46032 46033 46034 46035 46036 46037 46038 46039 46040 46041 46042 46043 46044 46045 46046 46047 46048 46049 46050 46051 46052 46053 46054 46055 46056 46057 46058 46059 46060 46061 46062 46063 46064 46065 46066 46067 46068 46069 46070 46071 46072 46073 46074 46075 46076 46077 46078 46079 46080 46081 46082 46083 46084 46085 46086 46087 46088 |
# File 'lib/ovirtsdk4/types.rb', line 46032 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 + .hash + @network_operation_in_progress.hash + @nics.hash + @numa_nodes.hash + @numa_supported.hash + @os.hash + @override_iptables.hash + @ovn_configured.hash + .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 + .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.
44881 44882 44883 |
# File 'lib/ovirtsdk4/types.rb', line 44881 def hooks @hooks end |
#hooks=(list) ⇒ Object
Sets the value of the hooks attribute.
44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 |
# File 'lib/ovirtsdk4/types.rb', line 44890 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.
44907 44908 44909 |
# File 'lib/ovirtsdk4/types.rb', line 44907 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.
44920 44921 44922 44923 44924 44925 |
# File 'lib/ovirtsdk4/types.rb', line 44920 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.
44932 44933 44934 |
# File 'lib/ovirtsdk4/types.rb', line 44932 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
44941 44942 44943 |
# File 'lib/ovirtsdk4/types.rb', line 44941 def id=(value) @id = value end |
#iscsi ⇒ IscsiDetails
Returns the value of the iscsi attribute.
44950 44951 44952 |
# File 'lib/ovirtsdk4/types.rb', line 44950 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.
44963 44964 44965 44966 44967 44968 |
# File 'lib/ovirtsdk4/types.rb', line 44963 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.
44975 44976 44977 |
# File 'lib/ovirtsdk4/types.rb', line 44975 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata attribute.
44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 |
# File 'lib/ovirtsdk4/types.rb', line 44984 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.
45001 45002 45003 |
# File 'lib/ovirtsdk4/types.rb', line 45001 def kdump_status @kdump_status end |
#kdump_status=(value) ⇒ Object
Sets the value of the kdump_status attribute.
45010 45011 45012 |
# File 'lib/ovirtsdk4/types.rb', line 45010 def kdump_status=(value) @kdump_status = value end |
#ksm ⇒ Ksm
Returns the value of the ksm attribute.
45019 45020 45021 |
# File 'lib/ovirtsdk4/types.rb', line 45019 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.
45032 45033 45034 45035 45036 45037 |
# File 'lib/ovirtsdk4/types.rb', line 45032 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.
45044 45045 45046 |
# File 'lib/ovirtsdk4/types.rb', line 45044 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.
45057 45058 45059 45060 45061 45062 |
# File 'lib/ovirtsdk4/types.rb', line 45057 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.
45069 45070 45071 |
# File 'lib/ovirtsdk4/types.rb', line 45069 def max_scheduling_memory @max_scheduling_memory end |
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the max_scheduling_memory attribute.
45078 45079 45080 |
# File 'lib/ovirtsdk4/types.rb', line 45078 def max_scheduling_memory=(value) @max_scheduling_memory = value end |
#memory ⇒ Integer
Returns the value of the memory attribute.
45087 45088 45089 |
# File 'lib/ovirtsdk4/types.rb', line 45087 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
45096 45097 45098 |
# File 'lib/ovirtsdk4/types.rb', line 45096 def memory=(value) @memory = value end |
#name ⇒ String
Returns the value of the name attribute.
45105 45106 45107 |
# File 'lib/ovirtsdk4/types.rb', line 45105 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
45114 45115 45116 |
# File 'lib/ovirtsdk4/types.rb', line 45114 def name=(value) @name = value end |
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the network_attachments attribute.
45123 45124 45125 |
# File 'lib/ovirtsdk4/types.rb', line 45123 def end |
#network_attachments=(list) ⇒ Object
Sets the value of the network_attachments attribute.
45132 45133 45134 45135 45136 45137 45138 45139 45140 45141 45142 |
# File 'lib/ovirtsdk4/types.rb', line 45132 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 = list end |
#network_operation_in_progress ⇒ Boolean
Returns the value of the network_operation_in_progress attribute.
45149 45150 45151 |
# File 'lib/ovirtsdk4/types.rb', line 45149 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.
45158 45159 45160 |
# File 'lib/ovirtsdk4/types.rb', line 45158 def network_operation_in_progress=(value) @network_operation_in_progress = value end |
#nics ⇒ Array<HostNic>
Returns the value of the nics attribute.
45167 45168 45169 |
# File 'lib/ovirtsdk4/types.rb', line 45167 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
45176 45177 45178 45179 45180 45181 45182 45183 45184 45185 45186 |
# File 'lib/ovirtsdk4/types.rb', line 45176 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.
45193 45194 45195 |
# File 'lib/ovirtsdk4/types.rb', line 45193 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes attribute.
45202 45203 45204 45205 45206 45207 45208 45209 45210 45211 45212 |
# File 'lib/ovirtsdk4/types.rb', line 45202 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.
45219 45220 45221 |
# File 'lib/ovirtsdk4/types.rb', line 45219 def numa_supported @numa_supported end |
#numa_supported=(value) ⇒ Object
Sets the value of the numa_supported attribute.
45228 45229 45230 |
# File 'lib/ovirtsdk4/types.rb', line 45228 def numa_supported=(value) @numa_supported = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
45237 45238 45239 |
# File 'lib/ovirtsdk4/types.rb', line 45237 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.
45250 45251 45252 45253 45254 45255 |
# File 'lib/ovirtsdk4/types.rb', line 45250 def os=(value) if value.is_a?(Hash) value = .new(value) end @os = value end |
#override_iptables ⇒ Boolean
Returns the value of the override_iptables attribute.
45262 45263 45264 |
# File 'lib/ovirtsdk4/types.rb', line 45262 def override_iptables @override_iptables end |
#override_iptables=(value) ⇒ Object
Sets the value of the override_iptables attribute.
45271 45272 45273 |
# File 'lib/ovirtsdk4/types.rb', line 45271 def override_iptables=(value) @override_iptables = value end |
#ovn_configured ⇒ Boolean
Returns the value of the ovn_configured attribute.
45280 45281 45282 |
# File 'lib/ovirtsdk4/types.rb', line 45280 def ovn_configured @ovn_configured end |
#ovn_configured=(value) ⇒ Object
Sets the value of the ovn_configured attribute.
45289 45290 45291 |
# File 'lib/ovirtsdk4/types.rb', line 45289 def ovn_configured=(value) @ovn_configured = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
45298 45299 45300 |
# File 'lib/ovirtsdk4/types.rb', line 45298 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
45307 45308 45309 45310 45311 45312 45313 45314 45315 45316 45317 |
# File 'lib/ovirtsdk4/types.rb', line 45307 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 = list end |
#port ⇒ Integer
Returns the value of the port attribute.
45324 45325 45326 |
# File 'lib/ovirtsdk4/types.rb', line 45324 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
45333 45334 45335 |
# File 'lib/ovirtsdk4/types.rb', line 45333 def port=(value) @port = value end |
#power_management ⇒ PowerManagement
Returns the value of the power_management attribute.
45342 45343 45344 |
# File 'lib/ovirtsdk4/types.rb', line 45342 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.
45355 45356 45357 45358 45359 45360 |
# File 'lib/ovirtsdk4/types.rb', line 45355 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.
45367 45368 45369 |
# File 'lib/ovirtsdk4/types.rb', line 45367 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol attribute.
45376 45377 45378 |
# File 'lib/ovirtsdk4/types.rb', line 45376 def protocol=(value) @protocol = value end |
#reinstallation_required ⇒ Boolean
Returns the value of the reinstallation_required attribute.
45385 45386 45387 |
# File 'lib/ovirtsdk4/types.rb', line 45385 def reinstallation_required @reinstallation_required end |
#reinstallation_required=(value) ⇒ Object
Sets the value of the reinstallation_required attribute.
45394 45395 45396 |
# File 'lib/ovirtsdk4/types.rb', line 45394 def reinstallation_required=(value) @reinstallation_required = value end |
#root_password ⇒ String
Returns the value of the root_password attribute.
45403 45404 45405 |
# File 'lib/ovirtsdk4/types.rb', line 45403 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password attribute.
45412 45413 45414 |
# File 'lib/ovirtsdk4/types.rb', line 45412 def root_password=(value) @root_password = value end |
#se_linux ⇒ SeLinux
Returns the value of the se_linux attribute.
45421 45422 45423 |
# File 'lib/ovirtsdk4/types.rb', line 45421 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.
45434 45435 45436 45437 45438 45439 |
# File 'lib/ovirtsdk4/types.rb', line 45434 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.
45446 45447 45448 |
# File 'lib/ovirtsdk4/types.rb', line 45446 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.
45459 45460 45461 45462 45463 45464 |
# File 'lib/ovirtsdk4/types.rb', line 45459 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.
45471 45472 45473 |
# File 'lib/ovirtsdk4/types.rb', line 45471 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.
45484 45485 45486 45487 45488 45489 |
# File 'lib/ovirtsdk4/types.rb', line 45484 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.
45496 45497 45498 |
# File 'lib/ovirtsdk4/types.rb', line 45496 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
45505 45506 45507 45508 45509 45510 45511 45512 45513 45514 45515 |
# File 'lib/ovirtsdk4/types.rb', line 45505 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.
45522 45523 45524 |
# File 'lib/ovirtsdk4/types.rb', line 45522 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
45531 45532 45533 |
# File 'lib/ovirtsdk4/types.rb', line 45531 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail attribute.
45540 45541 45542 |
# File 'lib/ovirtsdk4/types.rb', line 45540 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail attribute.
45549 45550 45551 |
# File 'lib/ovirtsdk4/types.rb', line 45549 def status_detail=(value) @status_detail = value end |
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the storage_connection_extensions attribute.
45558 45559 45560 |
# File 'lib/ovirtsdk4/types.rb', line 45558 def storage_connection_extensions @storage_connection_extensions end |
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the storage_connection_extensions attribute.
45567 45568 45569 45570 45571 45572 45573 45574 45575 45576 45577 |
# File 'lib/ovirtsdk4/types.rb', line 45567 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.
45584 45585 45586 |
# File 'lib/ovirtsdk4/types.rb', line 45584 def storages @storages end |
#storages=(list) ⇒ Object
Sets the value of the storages attribute.
45593 45594 45595 45596 45597 45598 45599 45600 45601 45602 45603 |
# File 'lib/ovirtsdk4/types.rb', line 45593 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.
45610 45611 45612 |
# File 'lib/ovirtsdk4/types.rb', line 45610 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.
45623 45624 45625 45626 45627 45628 |
# File 'lib/ovirtsdk4/types.rb', line 45623 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.
45635 45636 45637 |
# File 'lib/ovirtsdk4/types.rb', line 45635 def end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
45644 45645 45646 45647 45648 45649 45650 45651 45652 45653 45654 |
# File 'lib/ovirtsdk4/types.rb', line 45644 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 = list end |
#transparent_huge_pages ⇒ TransparentHugePages
Returns the value of the transparent_huge_pages attribute.
45661 45662 45663 |
# File 'lib/ovirtsdk4/types.rb', line 45661 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.
45674 45675 45676 45677 45678 45679 |
# File 'lib/ovirtsdk4/types.rb', line 45674 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.
45686 45687 45688 |
# File 'lib/ovirtsdk4/types.rb', line 45686 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
45695 45696 45697 |
# File 'lib/ovirtsdk4/types.rb', line 45695 def type=(value) @type = value end |
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the unmanaged_networks attribute.
45704 45705 45706 |
# File 'lib/ovirtsdk4/types.rb', line 45704 def unmanaged_networks @unmanaged_networks end |
#unmanaged_networks=(list) ⇒ Object
Sets the value of the unmanaged_networks attribute.
45713 45714 45715 45716 45717 45718 45719 45720 45721 45722 45723 |
# File 'lib/ovirtsdk4/types.rb', line 45713 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.
45730 45731 45732 |
# File 'lib/ovirtsdk4/types.rb', line 45730 def update_available @update_available end |
#update_available=(value) ⇒ Object
Sets the value of the update_available attribute.
45739 45740 45741 |
# File 'lib/ovirtsdk4/types.rb', line 45739 def update_available=(value) @update_available = value end |
#version ⇒ Version
Returns the value of the version attribute.
45748 45749 45750 |
# File 'lib/ovirtsdk4/types.rb', line 45748 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.
45761 45762 45763 45764 45765 45766 |
# File 'lib/ovirtsdk4/types.rb', line 45761 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.
45773 45774 45775 |
# File 'lib/ovirtsdk4/types.rb', line 45773 def vgpu_placement @vgpu_placement end |
#vgpu_placement=(value) ⇒ Object
Sets the value of the vgpu_placement attribute.
45782 45783 45784 |
# File 'lib/ovirtsdk4/types.rb', line 45782 def vgpu_placement=(value) @vgpu_placement = value end |