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. -
#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. -
#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. -
#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.
43811 43812 43813 43814 43815 43816 43817 43818 43819 43820 43821 43822 43823 43824 43825 43826 43827 43828 43829 43830 43831 43832 43833 43834 43835 43836 43837 43838 43839 43840 43841 43842 43843 43844 43845 43846 43847 43848 43849 43850 43851 43852 43853 43854 43855 43856 43857 43858 43859 43860 43861 43862 43863 43864 |
# File 'lib/ovirtsdk4/types.rb', line 43811 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.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. = opts[:permissions] self.port = opts[:port] self.power_management = opts[:power_management] self.protocol = opts[:protocol] 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.
43869 43870 43871 43872 43873 43874 43875 43876 43877 43878 43879 43880 43881 43882 43883 43884 43885 43886 43887 43888 43889 43890 43891 43892 43893 43894 43895 43896 43897 43898 43899 43900 43901 43902 43903 43904 43905 43906 43907 43908 43909 43910 43911 43912 43913 43914 43915 43916 43917 43918 43919 43920 43921 43922 |
# File 'lib/ovirtsdk4/types.rb', line 43869 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 && @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 && @permissions == other. && @port == other.port && @power_management == other.power_management && @protocol == other.protocol && @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.
42455 42456 42457 |
# File 'lib/ovirtsdk4/types.rb', line 42455 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
42464 42465 42466 |
# File 'lib/ovirtsdk4/types.rb', line 42464 def address=(value) @address = value end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
42473 42474 42475 |
# File 'lib/ovirtsdk4/types.rb', line 42473 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
42482 42483 42484 42485 42486 42487 42488 42489 42490 42491 42492 |
# File 'lib/ovirtsdk4/types.rb', line 42482 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.
42499 42500 42501 |
# File 'lib/ovirtsdk4/types.rb', line 42499 def agents @agents end |
#agents=(list) ⇒ Object
Sets the value of the agents
attribute.
42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 |
# File 'lib/ovirtsdk4/types.rb', line 42508 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.
42525 42526 42527 |
# File 'lib/ovirtsdk4/types.rb', line 42525 def auto_numa_status @auto_numa_status end |
#auto_numa_status=(value) ⇒ Object
Sets the value of the auto_numa_status
attribute.
42534 42535 42536 |
# File 'lib/ovirtsdk4/types.rb', line 42534 def auto_numa_status=(value) @auto_numa_status = value end |
#certificate ⇒ Certificate
Returns the value of the certificate
attribute.
42543 42544 42545 |
# File 'lib/ovirtsdk4/types.rb', line 42543 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.
42556 42557 42558 42559 42560 42561 |
# File 'lib/ovirtsdk4/types.rb', line 42556 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.
42568 42569 42570 |
# File 'lib/ovirtsdk4/types.rb', line 42568 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.
42581 42582 42583 42584 42585 42586 |
# File 'lib/ovirtsdk4/types.rb', line 42581 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.
42593 42594 42595 |
# File 'lib/ovirtsdk4/types.rb', line 42593 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42602 42603 42604 |
# File 'lib/ovirtsdk4/types.rb', line 42602 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
42611 42612 42613 |
# File 'lib/ovirtsdk4/types.rb', line 42611 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.
42624 42625 42626 42627 42628 42629 |
# File 'lib/ovirtsdk4/types.rb', line 42624 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#description ⇒ String
Returns the value of the description
attribute.
42636 42637 42638 |
# File 'lib/ovirtsdk4/types.rb', line 42636 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42645 42646 42647 |
# File 'lib/ovirtsdk4/types.rb', line 42645 def description=(value) @description = value end |
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the device_passthrough
attribute.
42654 42655 42656 |
# File 'lib/ovirtsdk4/types.rb', line 42654 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.
42667 42668 42669 42670 42671 42672 |
# File 'lib/ovirtsdk4/types.rb', line 42667 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.
42679 42680 42681 |
# File 'lib/ovirtsdk4/types.rb', line 42679 def devices @devices end |
#devices=(list) ⇒ Object
Sets the value of the devices
attribute.
42688 42689 42690 42691 42692 42693 42694 42695 42696 42697 42698 |
# File 'lib/ovirtsdk4/types.rb', line 42688 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.
42705 42706 42707 |
# File 'lib/ovirtsdk4/types.rb', line 42705 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.
42718 42719 42720 42721 42722 42723 |
# File 'lib/ovirtsdk4/types.rb', line 42718 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.
42730 42731 42732 |
# File 'lib/ovirtsdk4/types.rb', line 42730 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.
42743 42744 42745 42746 42747 42748 |
# File 'lib/ovirtsdk4/types.rb', line 42743 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.
42755 42756 42757 |
# File 'lib/ovirtsdk4/types.rb', line 42755 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.
42764 42765 42766 42767 42768 42769 42770 42771 42772 42773 42774 |
# File 'lib/ovirtsdk4/types.rb', line 42764 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.
42781 42782 42783 |
# File 'lib/ovirtsdk4/types.rb', line 42781 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
42790 42791 42792 |
# File 'lib/ovirtsdk4/types.rb', line 42790 def external_status=(value) @external_status = value end |
#hardware_information ⇒ HardwareInformation
Returns the value of the hardware_information
attribute.
42799 42800 42801 |
# File 'lib/ovirtsdk4/types.rb', line 42799 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.
42812 42813 42814 42815 42816 42817 |
# File 'lib/ovirtsdk4/types.rb', line 42812 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.
43927 43928 43929 43930 43931 43932 43933 43934 43935 43936 43937 43938 43939 43940 43941 43942 43943 43944 43945 43946 43947 43948 43949 43950 43951 43952 43953 43954 43955 43956 43957 43958 43959 43960 43961 43962 43963 43964 43965 43966 43967 43968 43969 43970 43971 43972 43973 43974 43975 43976 43977 43978 43979 43980 |
# File 'lib/ovirtsdk4/types.rb', line 43927 def hash super + @address.hash + @affinity_labels.hash + @agents.hash + @auto_numa_status.hash + @certificate.hash + @cluster.hash + @cpu.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 + @permissions.hash + @port.hash + @power_management.hash + @protocol.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.
42824 42825 42826 |
# File 'lib/ovirtsdk4/types.rb', line 42824 def hooks @hooks end |
#hooks=(list) ⇒ Object
Sets the value of the hooks
attribute.
42833 42834 42835 42836 42837 42838 42839 42840 42841 42842 42843 |
# File 'lib/ovirtsdk4/types.rb', line 42833 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.
42850 42851 42852 |
# File 'lib/ovirtsdk4/types.rb', line 42850 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.
42863 42864 42865 42866 42867 42868 |
# File 'lib/ovirtsdk4/types.rb', line 42863 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.
42875 42876 42877 |
# File 'lib/ovirtsdk4/types.rb', line 42875 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42884 42885 42886 |
# File 'lib/ovirtsdk4/types.rb', line 42884 def id=(value) @id = value end |
#iscsi ⇒ IscsiDetails
Returns the value of the iscsi
attribute.
42893 42894 42895 |
# File 'lib/ovirtsdk4/types.rb', line 42893 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.
42906 42907 42908 42909 42910 42911 |
# File 'lib/ovirtsdk4/types.rb', line 42906 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.
42918 42919 42920 |
# File 'lib/ovirtsdk4/types.rb', line 42918 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
42927 42928 42929 42930 42931 42932 42933 42934 42935 42936 42937 |
# File 'lib/ovirtsdk4/types.rb', line 42927 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.
42944 42945 42946 |
# File 'lib/ovirtsdk4/types.rb', line 42944 def kdump_status @kdump_status end |
#kdump_status=(value) ⇒ Object
Sets the value of the kdump_status
attribute.
42953 42954 42955 |
# File 'lib/ovirtsdk4/types.rb', line 42953 def kdump_status=(value) @kdump_status = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
42962 42963 42964 |
# File 'lib/ovirtsdk4/types.rb', line 42962 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.
42975 42976 42977 42978 42979 42980 |
# File 'lib/ovirtsdk4/types.rb', line 42975 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.
42987 42988 42989 |
# File 'lib/ovirtsdk4/types.rb', line 42987 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.
43000 43001 43002 43003 43004 43005 |
# File 'lib/ovirtsdk4/types.rb', line 43000 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.
43012 43013 43014 |
# File 'lib/ovirtsdk4/types.rb', line 43012 def max_scheduling_memory @max_scheduling_memory end |
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the max_scheduling_memory
attribute.
43021 43022 43023 |
# File 'lib/ovirtsdk4/types.rb', line 43021 def max_scheduling_memory=(value) @max_scheduling_memory = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
43030 43031 43032 |
# File 'lib/ovirtsdk4/types.rb', line 43030 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
43039 43040 43041 |
# File 'lib/ovirtsdk4/types.rb', line 43039 def memory=(value) @memory = value end |
#name ⇒ String
Returns the value of the name
attribute.
43048 43049 43050 |
# File 'lib/ovirtsdk4/types.rb', line 43048 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
43057 43058 43059 |
# File 'lib/ovirtsdk4/types.rb', line 43057 def name=(value) @name = value end |
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the network_attachments
attribute.
43066 43067 43068 |
# File 'lib/ovirtsdk4/types.rb', line 43066 def @network_attachments end |
#network_attachments=(list) ⇒ Object
Sets the value of the network_attachments
attribute.
43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 |
# File 'lib/ovirtsdk4/types.rb', line 43075 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.
43092 43093 43094 |
# File 'lib/ovirtsdk4/types.rb', line 43092 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.
43101 43102 43103 |
# File 'lib/ovirtsdk4/types.rb', line 43101 def network_operation_in_progress=(value) @network_operation_in_progress = value end |
#nics ⇒ Array<HostNic>
Returns the value of the nics
attribute.
43110 43111 43112 |
# File 'lib/ovirtsdk4/types.rb', line 43110 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 |
# File 'lib/ovirtsdk4/types.rb', line 43119 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.
43136 43137 43138 |
# File 'lib/ovirtsdk4/types.rb', line 43136 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 |
# File 'lib/ovirtsdk4/types.rb', line 43145 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.
43162 43163 43164 |
# File 'lib/ovirtsdk4/types.rb', line 43162 def numa_supported @numa_supported end |
#numa_supported=(value) ⇒ Object
Sets the value of the numa_supported
attribute.
43171 43172 43173 |
# File 'lib/ovirtsdk4/types.rb', line 43171 def numa_supported=(value) @numa_supported = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
43180 43181 43182 |
# File 'lib/ovirtsdk4/types.rb', line 43180 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.
43193 43194 43195 43196 43197 43198 |
# File 'lib/ovirtsdk4/types.rb', line 43193 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.
43205 43206 43207 |
# File 'lib/ovirtsdk4/types.rb', line 43205 def override_iptables @override_iptables end |
#override_iptables=(value) ⇒ Object
Sets the value of the override_iptables
attribute.
43214 43215 43216 |
# File 'lib/ovirtsdk4/types.rb', line 43214 def override_iptables=(value) @override_iptables = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
43223 43224 43225 |
# File 'lib/ovirtsdk4/types.rb', line 43223 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
43232 43233 43234 43235 43236 43237 43238 43239 43240 43241 43242 |
# File 'lib/ovirtsdk4/types.rb', line 43232 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.
43249 43250 43251 |
# File 'lib/ovirtsdk4/types.rb', line 43249 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
43258 43259 43260 |
# File 'lib/ovirtsdk4/types.rb', line 43258 def port=(value) @port = value end |
#power_management ⇒ PowerManagement
Returns the value of the power_management
attribute.
43267 43268 43269 |
# File 'lib/ovirtsdk4/types.rb', line 43267 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.
43280 43281 43282 43283 43284 43285 |
# File 'lib/ovirtsdk4/types.rb', line 43280 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.
43292 43293 43294 |
# File 'lib/ovirtsdk4/types.rb', line 43292 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
43301 43302 43303 |
# File 'lib/ovirtsdk4/types.rb', line 43301 def protocol=(value) @protocol = value end |
#root_password ⇒ String
Returns the value of the root_password
attribute.
43310 43311 43312 |
# File 'lib/ovirtsdk4/types.rb', line 43310 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password
attribute.
43319 43320 43321 |
# File 'lib/ovirtsdk4/types.rb', line 43319 def root_password=(value) @root_password = value end |
#se_linux ⇒ SeLinux
Returns the value of the se_linux
attribute.
43328 43329 43330 |
# File 'lib/ovirtsdk4/types.rb', line 43328 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.
43341 43342 43343 43344 43345 43346 |
# File 'lib/ovirtsdk4/types.rb', line 43341 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.
43353 43354 43355 |
# File 'lib/ovirtsdk4/types.rb', line 43353 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.
43366 43367 43368 43369 43370 43371 |
# File 'lib/ovirtsdk4/types.rb', line 43366 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.
43378 43379 43380 |
# File 'lib/ovirtsdk4/types.rb', line 43378 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.
43391 43392 43393 43394 43395 43396 |
# File 'lib/ovirtsdk4/types.rb', line 43391 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.
43403 43404 43405 |
# File 'lib/ovirtsdk4/types.rb', line 43403 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
43412 43413 43414 43415 43416 43417 43418 43419 43420 43421 43422 |
# File 'lib/ovirtsdk4/types.rb', line 43412 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.
43429 43430 43431 |
# File 'lib/ovirtsdk4/types.rb', line 43429 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
43438 43439 43440 |
# File 'lib/ovirtsdk4/types.rb', line 43438 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
43447 43448 43449 |
# File 'lib/ovirtsdk4/types.rb', line 43447 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
43456 43457 43458 |
# File 'lib/ovirtsdk4/types.rb', line 43456 def status_detail=(value) @status_detail = value end |
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the storage_connection_extensions
attribute.
43465 43466 43467 |
# File 'lib/ovirtsdk4/types.rb', line 43465 def storage_connection_extensions @storage_connection_extensions end |
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the storage_connection_extensions
attribute.
43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 |
# File 'lib/ovirtsdk4/types.rb', line 43474 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.
43491 43492 43493 |
# File 'lib/ovirtsdk4/types.rb', line 43491 def storages @storages end |
#storages=(list) ⇒ Object
Sets the value of the storages
attribute.
43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 |
# File 'lib/ovirtsdk4/types.rb', line 43500 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.
43517 43518 43519 |
# File 'lib/ovirtsdk4/types.rb', line 43517 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.
43530 43531 43532 43533 43534 43535 |
# File 'lib/ovirtsdk4/types.rb', line 43530 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.
43542 43543 43544 |
# File 'lib/ovirtsdk4/types.rb', line 43542 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
43551 43552 43553 43554 43555 43556 43557 43558 43559 43560 43561 |
# File 'lib/ovirtsdk4/types.rb', line 43551 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.
43568 43569 43570 |
# File 'lib/ovirtsdk4/types.rb', line 43568 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.
43581 43582 43583 43584 43585 43586 |
# File 'lib/ovirtsdk4/types.rb', line 43581 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.
43593 43594 43595 |
# File 'lib/ovirtsdk4/types.rb', line 43593 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
43602 43603 43604 |
# File 'lib/ovirtsdk4/types.rb', line 43602 def type=(value) @type = value end |
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the unmanaged_networks
attribute.
43611 43612 43613 |
# File 'lib/ovirtsdk4/types.rb', line 43611 def unmanaged_networks @unmanaged_networks end |
#unmanaged_networks=(list) ⇒ Object
Sets the value of the unmanaged_networks
attribute.
43620 43621 43622 43623 43624 43625 43626 43627 43628 43629 43630 |
# File 'lib/ovirtsdk4/types.rb', line 43620 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.
43637 43638 43639 |
# File 'lib/ovirtsdk4/types.rb', line 43637 def update_available @update_available end |
#update_available=(value) ⇒ Object
Sets the value of the update_available
attribute.
43646 43647 43648 |
# File 'lib/ovirtsdk4/types.rb', line 43646 def update_available=(value) @update_available = value end |
#version ⇒ Version
Returns the value of the version
attribute.
43655 43656 43657 |
# File 'lib/ovirtsdk4/types.rb', line 43655 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.
43668 43669 43670 43671 43672 43673 |
# File 'lib/ovirtsdk4/types.rb', line 43668 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.
43680 43681 43682 |
# File 'lib/ovirtsdk4/types.rb', line 43680 def vgpu_placement @vgpu_placement end |
#vgpu_placement=(value) ⇒ Object
Sets the value of the vgpu_placement
attribute.
43689 43690 43691 |
# File 'lib/ovirtsdk4/types.rb', line 43689 def vgpu_placement=(value) @vgpu_placement = value end |