class OvirtSDK4::Host
Public Class Methods
Creates a new instance of the {Host} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [String] :address The value of attribute ‘address`.
@option opts [Array<AffinityLabel>, Array<Hash>] :affinity_labels The values of attribute ‘affinity_labels`.
@option opts [Array<Agent>, Array<Hash>] :agents The values of attribute ‘agents`.
@option opts [AutoNumaStatus] :auto_numa_status The value of attribute ‘auto_numa_status`.
@option opts [Certificate, Hash] :certificate The value of attribute ‘certificate`.
@option opts [Cluster, Hash] :cluster The value of attribute ‘cluster`.
@option opts [String] :comment The value of attribute ‘comment`.
@option opts [Cpu, Hash] :cpu The value of attribute ‘cpu`.
@option opts [Array<HostCpuUnit>, Array<Hash>] :cpu_units The values of attribute ‘cpu_units`.
@option opts [String] :description The value of attribute ‘description`.
@option opts [HostDevicePassthrough, Hash] :device_passthrough The value of attribute ‘device_passthrough`.
@option opts [Array<HostDevice>, Array<Hash>] :devices The values of attribute ‘devices`.
@option opts [Display, Hash] :display The value of attribute ‘display`.
@option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute ‘external_host_provider`.
@option opts [Array<ExternalNetworkProviderConfiguration>, Array<Hash>] :external_network_provider_configurations The values of attribute ‘external_network_provider_configurations`.
@option opts [ExternalStatus] :external_status The value of attribute ‘external_status`.
@option opts [HardwareInformation, Hash] :hardware_information The value of attribute ‘hardware_information`.
@option opts [Array<Hook>, Array<Hash>] :hooks The values of attribute ‘hooks`.
@option opts [HostedEngine, Hash] :hosted_engine The value of attribute ‘hosted_engine`.
@option opts [String] :id The value of attribute ‘id`.
@option opts [IscsiDetails, Hash] :iscsi The value of attribute ‘iscsi`.
@option opts [Array<KatelloErratum>, Array<Hash>] :katello_errata The values of attribute ‘katello_errata`.
@option opts [KdumpStatus] :kdump_status The value of attribute ‘kdump_status`.
@option opts [Ksm, Hash] :ksm The value of attribute ‘ksm`.
@option opts [Version, Hash] :libvirt_version The value of attribute ‘libvirt_version`.
@option opts [Integer] :max_scheduling_memory The value of attribute ‘max_scheduling_memory`.
@option opts [Integer] :memory The value of attribute ‘memory`.
@option opts [String] :name The value of attribute ‘name`.
@option opts [Array<NetworkAttachment>, Array<Hash>] :network_attachments The values of attribute ‘network_attachments`.
@option opts [Boolean] :network_operation_in_progress The value of attribute ‘network_operation_in_progress`.
@option opts [Array<HostNic>, Array<Hash>] :nics The values of attribute ‘nics`.
@option opts [Array<NumaNode>, Array<Hash>] :numa_nodes The values of attribute ‘numa_nodes`.
@option opts [Boolean] :numa_supported The value of attribute ‘numa_supported`.
@option opts [OperatingSystem, Hash] :os The value of attribute ‘os`.
@option opts [Boolean] :override_iptables The value of attribute ‘override_iptables`.
@option opts [Boolean] :ovn_configured The value of attribute ‘ovn_configured`.
@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute ‘permissions`.
@option opts [Integer] :port The value of attribute ‘port`.
@option opts [PowerManagement, Hash] :power_management The value of attribute ‘power_management`.
@option opts [HostProtocol] :protocol The value of attribute ‘protocol`.
@option opts [Boolean] :reinstallation_required The value of attribute ‘reinstallation_required`.
@option opts [String] :root_password The value of attribute ‘root_password`.
@option opts [SeLinux, Hash] :se_linux The value of attribute ‘se_linux`.
@option opts [Spm, Hash] :spm The value of attribute ‘spm`.
@option opts [Ssh, Hash] :ssh The value of attribute ‘ssh`.
@option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute ‘statistics`.
@option opts [HostStatus] :status The value of attribute ‘status`.
@option opts [String] :status_detail The value of attribute ‘status_detail`.
@option opts [Array<StorageConnectionExtension>, Array<Hash>] :storage_connection_extensions The values of attribute ‘storage_connection_extensions`.
@option opts [Array<HostStorage>, Array<Hash>] :storages The values of attribute ‘storages`.
@option opts [VmSummary, Hash] :summary The value of attribute ‘summary`.
@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute ‘tags`.
@option opts [TransparentHugePages, Hash] :transparent_huge_pages The value of attribute ‘transparent_huge_pages`.
@option opts [HostType] :type The value of attribute ‘type`.
@option opts [Array<UnmanagedNetwork>, Array<Hash>] :unmanaged_networks The values of attribute ‘unmanaged_networks`.
@option opts [Boolean] :update_available The value of attribute ‘update_available`.
@option opts [Version, Hash] :version The value of attribute ‘version`.
@option opts [VgpuPlacement] :vgpu_placement The value of attribute ‘vgpu_placement`.
OvirtSDK4::Identified::new
# 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.network_attachments = 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.permissions = 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.tags = 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
Public Instance Methods
Returns ‘true` if `self` and `other` have the same attributes and values.
OvirtSDK4::Identified#==
# 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 && @network_attachments == other.network_attachments && @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.permissions && @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.tags && @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
Returns the value of the ‘address` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 44486 def address @address end
Sets the value of the ‘address` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 44495 def address=(value) @address = value end
Returns the value of the ‘affinity_labels` attribute.
@return [Array<AffinityLabel>]
# File lib/ovirtsdk4/types.rb, line 44504 def affinity_labels @affinity_labels end
Sets the value of the ‘affinity_labels` attribute.
@param list [Array<AffinityLabel>]
# 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
Returns the value of the ‘agents` attribute.
@return [Array<Agent>]
# File lib/ovirtsdk4/types.rb, line 44530 def agents @agents end
Sets the value of the ‘agents` attribute.
@param list [Array<Agent>]
# 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
Returns the value of the ‘auto_numa_status` attribute.
@return [AutoNumaStatus]
# File lib/ovirtsdk4/types.rb, line 44556 def auto_numa_status @auto_numa_status end
Sets the value of the ‘auto_numa_status` attribute.
@param value [AutoNumaStatus]
# File lib/ovirtsdk4/types.rb, line 44565 def auto_numa_status=(value) @auto_numa_status = value end
Returns the value of the ‘certificate` attribute.
@return [Certificate]
# File lib/ovirtsdk4/types.rb, line 44574 def certificate @certificate end
Sets the value of the ‘certificate` attribute.
@param value [Certificate, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 44587 def certificate=(value) if value.is_a?(Hash) value = Certificate.new(value) end @certificate = value end
Returns the value of the ‘cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 44599 def cluster @cluster end
Sets the value of the ‘cluster` attribute.
@param value [Cluster, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 44612 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
Returns the value of the ‘comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 44624 def comment @comment end
Sets the value of the ‘comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 44633 def comment=(value) @comment = value end
Returns the value of the ‘cpu` attribute.
@return [Cpu]
# File lib/ovirtsdk4/types.rb, line 44642 def cpu @cpu end
Sets the value of the ‘cpu` attribute.
@param value [Cpu, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 44655 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end
Returns the value of the ‘cpu_units` attribute.
@return [Array<HostCpuUnit>]
# File lib/ovirtsdk4/types.rb, line 44667 def cpu_units @cpu_units end
Sets the value of the ‘cpu_units` attribute.
@param list [Array<HostCpuUnit>]
# 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
Returns the value of the ‘description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 44693 def description @description end
Sets the value of the ‘description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 44702 def description=(value) @description = value end
Returns the value of the ‘device_passthrough` attribute.
@return [HostDevicePassthrough]
# File lib/ovirtsdk4/types.rb, line 44711 def device_passthrough @device_passthrough end
Sets the value of the ‘device_passthrough` attribute.
@param value [HostDevicePassthrough, Hash]
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.
# 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
Returns the value of the ‘devices` attribute.
@return [Array<HostDevice>]
# File lib/ovirtsdk4/types.rb, line 44736 def devices @devices end
Sets the value of the ‘devices` attribute.
@param list [Array<HostDevice>]
# 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
Returns the value of the ‘display` attribute.
@return [Display]
# File lib/ovirtsdk4/types.rb, line 44762 def display @display end
Sets the value of the ‘display` attribute.
@param value [Display, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 44775 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end
Returns the value of the ‘external_host_provider` attribute.
@return [ExternalHostProvider]
# File lib/ovirtsdk4/types.rb, line 44787 def external_host_provider @external_host_provider end
Sets the value of the ‘external_host_provider` attribute.
@param value [ExternalHostProvider, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# 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
Returns the value of the ‘external_network_provider_configurations` attribute.
@return [Array<ExternalNetworkProviderConfiguration>]
# File lib/ovirtsdk4/types.rb, line 44812 def external_network_provider_configurations @external_network_provider_configurations end
Sets the value of the ‘external_network_provider_configurations` attribute.
@param list [Array<ExternalNetworkProviderConfiguration>]
# 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
Returns the value of the ‘external_status` attribute.
@return [ExternalStatus]
# File lib/ovirtsdk4/types.rb, line 44838 def external_status @external_status end
Sets the value of the ‘external_status` attribute.
@param value [ExternalStatus]
# File lib/ovirtsdk4/types.rb, line 44847 def external_status=(value) @external_status = value end
Returns the value of the ‘hardware_information` attribute.
@return [HardwareInformation]
# File lib/ovirtsdk4/types.rb, line 44856 def hardware_information @hardware_information end
Sets the value of the ‘hardware_information` attribute.
@param value [HardwareInformation, Hash]
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.
# 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
Generates a hash value for this object.
OvirtSDK4::Identified#hash
# 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 + @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
Returns the value of the ‘hooks` attribute.
@return [Array<Hook>]
# File lib/ovirtsdk4/types.rb, line 44881 def hooks @hooks end
Sets the value of the ‘hooks` attribute.
@param list [Array<Hook>]
# 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
Returns the value of the ‘hosted_engine` attribute.
@return [HostedEngine]
# File lib/ovirtsdk4/types.rb, line 44907 def hosted_engine @hosted_engine end
Sets the value of the ‘hosted_engine` attribute.
@param value [HostedEngine, Hash]
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.
# 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
Returns the value of the ‘id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 44932 def id @id end
Sets the value of the ‘id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 44941 def id=(value) @id = value end
Returns the value of the ‘iscsi` attribute.
@return [IscsiDetails]
# File lib/ovirtsdk4/types.rb, line 44950 def iscsi @iscsi end
Sets the value of the ‘iscsi` attribute.
@param value [IscsiDetails, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 44963 def iscsi=(value) if value.is_a?(Hash) value = IscsiDetails.new(value) end @iscsi = value end
Returns the value of the ‘katello_errata` attribute.
@return [Array<KatelloErratum>]
# File lib/ovirtsdk4/types.rb, line 44975 def katello_errata @katello_errata end
Sets the value of the ‘katello_errata` attribute.
@param list [Array<KatelloErratum>]
# 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
Returns the value of the ‘kdump_status` attribute.
@return [KdumpStatus]
# File lib/ovirtsdk4/types.rb, line 45001 def kdump_status @kdump_status end
Sets the value of the ‘kdump_status` attribute.
@param value [KdumpStatus]
# File lib/ovirtsdk4/types.rb, line 45010 def kdump_status=(value) @kdump_status = value end
Returns the value of the ‘ksm` attribute.
@return [Ksm]
# File lib/ovirtsdk4/types.rb, line 45019 def ksm @ksm end
Sets the value of the ‘ksm` attribute.
@param value [Ksm, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45032 def ksm=(value) if value.is_a?(Hash) value = Ksm.new(value) end @ksm = value end
Returns the value of the ‘libvirt_version` attribute.
@return [Version]
# File lib/ovirtsdk4/types.rb, line 45044 def libvirt_version @libvirt_version end
Sets the value of the ‘libvirt_version` attribute.
@param value [Version, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# 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
Returns the value of the ‘max_scheduling_memory` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 45069 def max_scheduling_memory @max_scheduling_memory end
Sets the value of the ‘max_scheduling_memory` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 45078 def max_scheduling_memory=(value) @max_scheduling_memory = value end
Returns the value of the ‘memory` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 45087 def memory @memory end
Sets the value of the ‘memory` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 45096 def memory=(value) @memory = value end
Returns the value of the ‘name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 45105 def name @name end
Sets the value of the ‘name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 45114 def name=(value) @name = value end
Returns the value of the ‘network_attachments` attribute.
@return [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 45123 def network_attachments @network_attachments end
Sets the value of the ‘network_attachments` attribute.
@param list [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 45132 def network_attachments=(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
Returns the value of the ‘network_operation_in_progress` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45149 def network_operation_in_progress @network_operation_in_progress end
Sets the value of the ‘network_operation_in_progress` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45158 def network_operation_in_progress=(value) @network_operation_in_progress = value end
Returns the value of the ‘nics` attribute.
@return [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 45167 def nics @nics end
Sets the value of the ‘nics` attribute.
@param list [Array<HostNic>]
# 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
Returns the value of the ‘numa_nodes` attribute.
@return [Array<NumaNode>]
# File lib/ovirtsdk4/types.rb, line 45193 def numa_nodes @numa_nodes end
Sets the value of the ‘numa_nodes` attribute.
@param list [Array<NumaNode>]
# 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
Returns the value of the ‘numa_supported` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45219 def numa_supported @numa_supported end
Sets the value of the ‘numa_supported` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45228 def numa_supported=(value) @numa_supported = value end
Returns the value of the ‘os` attribute.
@return [OperatingSystem]
# File lib/ovirtsdk4/types.rb, line 45237 def os @os end
Sets the value of the ‘os` attribute.
@param value [OperatingSystem, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45250 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end
Returns the value of the ‘override_iptables` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45262 def override_iptables @override_iptables end
Sets the value of the ‘override_iptables` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45271 def override_iptables=(value) @override_iptables = value end
Returns the value of the ‘ovn_configured` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45280 def ovn_configured @ovn_configured end
Sets the value of the ‘ovn_configured` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45289 def ovn_configured=(value) @ovn_configured = value end
Returns the value of the ‘permissions` attribute.
@return [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 45298 def permissions @permissions end
Sets the value of the ‘permissions` attribute.
@param list [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 45307 def permissions=(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
Returns the value of the ‘port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 45324 def port @port end
Sets the value of the ‘port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 45333 def port=(value) @port = value end
Returns the value of the ‘power_management` attribute.
@return [PowerManagement]
# File lib/ovirtsdk4/types.rb, line 45342 def power_management @power_management end
Sets the value of the ‘power_management` attribute.
@param value [PowerManagement, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# 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
Returns the value of the ‘protocol` attribute.
@return [HostProtocol]
# File lib/ovirtsdk4/types.rb, line 45367 def protocol @protocol end
Sets the value of the ‘protocol` attribute.
@param value [HostProtocol]
# File lib/ovirtsdk4/types.rb, line 45376 def protocol=(value) @protocol = value end
Returns the value of the ‘reinstallation_required` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45385 def reinstallation_required @reinstallation_required end
Sets the value of the ‘reinstallation_required` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45394 def reinstallation_required=(value) @reinstallation_required = value end
Returns the value of the ‘root_password` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 45403 def root_password @root_password end
Sets the value of the ‘root_password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 45412 def root_password=(value) @root_password = value end
Returns the value of the ‘se_linux` attribute.
@return [SeLinux]
# File lib/ovirtsdk4/types.rb, line 45421 def se_linux @se_linux end
Sets the value of the ‘se_linux` attribute.
@param value [SeLinux, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# 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
Returns the value of the ‘spm` attribute.
@return [Spm]
# File lib/ovirtsdk4/types.rb, line 45446 def spm @spm end
Sets the value of the ‘spm` attribute.
@param value [Spm, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45459 def spm=(value) if value.is_a?(Hash) value = Spm.new(value) end @spm = value end
Returns the value of the ‘ssh` attribute.
@return [Ssh]
# File lib/ovirtsdk4/types.rb, line 45471 def ssh @ssh end
Sets the value of the ‘ssh` attribute.
@param value [Ssh, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45484 def ssh=(value) if value.is_a?(Hash) value = Ssh.new(value) end @ssh = value end
Returns the value of the ‘statistics` attribute.
@return [Array<Statistic>]
# File lib/ovirtsdk4/types.rb, line 45496 def statistics @statistics end
Sets the value of the ‘statistics` attribute.
@param list [Array<Statistic>]
# 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
Returns the value of the ‘status` attribute.
@return [HostStatus]
# File lib/ovirtsdk4/types.rb, line 45522 def status @status end
Sets the value of the ‘status` attribute.
@param value [HostStatus]
# File lib/ovirtsdk4/types.rb, line 45531 def status=(value) @status = value end
Returns the value of the ‘status_detail` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 45540 def status_detail @status_detail end
Sets the value of the ‘status_detail` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 45549 def status_detail=(value) @status_detail = value end
Returns the value of the ‘storage_connection_extensions` attribute.
@return [Array<StorageConnectionExtension>]
# File lib/ovirtsdk4/types.rb, line 45558 def storage_connection_extensions @storage_connection_extensions end
Sets the value of the ‘storage_connection_extensions` attribute.
@param list [Array<StorageConnectionExtension>]
# 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
Returns the value of the ‘storages` attribute.
@return [Array<HostStorage>]
# File lib/ovirtsdk4/types.rb, line 45584 def storages @storages end
Sets the value of the ‘storages` attribute.
@param list [Array<HostStorage>]
# 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
Returns the value of the ‘summary` attribute.
@return [VmSummary]
# File lib/ovirtsdk4/types.rb, line 45610 def summary @summary end
Sets the value of the ‘summary` attribute.
@param value [VmSummary, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45623 def summary=(value) if value.is_a?(Hash) value = VmSummary.new(value) end @summary = value end
Returns the value of the ‘transparent_huge_pages` attribute.
@return [TransparentHugePages]
# File lib/ovirtsdk4/types.rb, line 45661 def transparent_huge_pages @transparent_huge_pages end
Sets the value of the ‘transparent_huge_pages` attribute.
@param value [TransparentHugePages, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# 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
Returns the value of the ‘type` attribute.
@return [HostType]
# File lib/ovirtsdk4/types.rb, line 45686 def type @type end
Sets the value of the ‘type` attribute.
@param value [HostType]
# File lib/ovirtsdk4/types.rb, line 45695 def type=(value) @type = value end
Returns the value of the ‘unmanaged_networks` attribute.
@return [Array<UnmanagedNetwork>]
# File lib/ovirtsdk4/types.rb, line 45704 def unmanaged_networks @unmanaged_networks end
Sets the value of the ‘unmanaged_networks` attribute.
@param list [Array<UnmanagedNetwork>]
# 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
Returns the value of the ‘update_available` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 45730 def update_available @update_available end
Sets the value of the ‘update_available` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 45739 def update_available=(value) @update_available = value end
Returns the value of the ‘version` attribute.
@return [Version]
# File lib/ovirtsdk4/types.rb, line 45748 def version @version end
Sets the value of the ‘version` attribute.
@param value [Version, Hash]
The ‘value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 45761 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end
Returns the value of the ‘vgpu_placement` attribute.
@return [VgpuPlacement]
# File lib/ovirtsdk4/types.rb, line 45773 def vgpu_placement @vgpu_placement end
Sets the value of the ‘vgpu_placement` attribute.
@param value [VgpuPlacement]
# File lib/ovirtsdk4/types.rb, line 45782 def vgpu_placement=(value) @vgpu_placement = value end