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<Device>
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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Host
Creates a new instance of the OvirtSDK4::Host class.
42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 42571 42572 42573 42574 42575 42576 42577 42578 42579 42580 42581 42582 42583 42584 42585 42586 42587 42588 42589 42590 42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 42601 42602 42603 42604 42605 42606 42607 |
# File 'lib/ovirtsdk4/types.rb', line 42555 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] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
42612 42613 42614 42615 42616 42617 42618 42619 42620 42621 42622 42623 42624 42625 42626 42627 42628 42629 42630 42631 42632 42633 42634 42635 42636 42637 42638 42639 42640 42641 42642 42643 42644 42645 42646 42647 42648 42649 42650 42651 42652 42653 42654 42655 42656 42657 42658 42659 42660 42661 42662 42663 42664 |
# File 'lib/ovirtsdk4/types.rb', line 42612 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 end |
#address ⇒ String
Returns the value of the address
attribute.
41219 41220 41221 |
# File 'lib/ovirtsdk4/types.rb', line 41219 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
41228 41229 41230 |
# File 'lib/ovirtsdk4/types.rb', line 41228 def address=(value) @address = value end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
41237 41238 41239 |
# File 'lib/ovirtsdk4/types.rb', line 41237 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
41246 41247 41248 41249 41250 41251 41252 41253 41254 41255 41256 |
# File 'lib/ovirtsdk4/types.rb', line 41246 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.
41263 41264 41265 |
# File 'lib/ovirtsdk4/types.rb', line 41263 def agents @agents end |
#agents=(list) ⇒ Object
Sets the value of the agents
attribute.
41272 41273 41274 41275 41276 41277 41278 41279 41280 41281 41282 |
# File 'lib/ovirtsdk4/types.rb', line 41272 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.
41289 41290 41291 |
# File 'lib/ovirtsdk4/types.rb', line 41289 def auto_numa_status @auto_numa_status end |
#auto_numa_status=(value) ⇒ Object
Sets the value of the auto_numa_status
attribute.
41298 41299 41300 |
# File 'lib/ovirtsdk4/types.rb', line 41298 def auto_numa_status=(value) @auto_numa_status = value end |
#certificate ⇒ Certificate
Returns the value of the certificate
attribute.
41307 41308 41309 |
# File 'lib/ovirtsdk4/types.rb', line 41307 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.
41320 41321 41322 41323 41324 41325 |
# File 'lib/ovirtsdk4/types.rb', line 41320 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.
41332 41333 41334 |
# File 'lib/ovirtsdk4/types.rb', line 41332 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.
41345 41346 41347 41348 41349 41350 |
# File 'lib/ovirtsdk4/types.rb', line 41345 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.
41357 41358 41359 |
# File 'lib/ovirtsdk4/types.rb', line 41357 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
41366 41367 41368 |
# File 'lib/ovirtsdk4/types.rb', line 41366 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
41375 41376 41377 |
# File 'lib/ovirtsdk4/types.rb', line 41375 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.
41388 41389 41390 41391 41392 41393 |
# File 'lib/ovirtsdk4/types.rb', line 41388 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.
41400 41401 41402 |
# File 'lib/ovirtsdk4/types.rb', line 41400 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
41409 41410 41411 |
# File 'lib/ovirtsdk4/types.rb', line 41409 def description=(value) @description = value end |
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the device_passthrough
attribute.
41418 41419 41420 |
# File 'lib/ovirtsdk4/types.rb', line 41418 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.
41431 41432 41433 41434 41435 41436 |
# File 'lib/ovirtsdk4/types.rb', line 41431 def device_passthrough=(value) if value.is_a?(Hash) value = HostDevicePassthrough.new(value) end @device_passthrough = value end |
#devices ⇒ Array<Device>
Returns the value of the devices
attribute.
41443 41444 41445 |
# File 'lib/ovirtsdk4/types.rb', line 41443 def devices @devices end |
#devices=(list) ⇒ Object
Sets the value of the devices
attribute.
41452 41453 41454 41455 41456 41457 41458 41459 41460 41461 41462 |
# File 'lib/ovirtsdk4/types.rb', line 41452 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] = Device.new(value) end end end @devices = list end |
#display ⇒ Display
Returns the value of the display
attribute.
41469 41470 41471 |
# File 'lib/ovirtsdk4/types.rb', line 41469 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.
41482 41483 41484 41485 41486 41487 |
# File 'lib/ovirtsdk4/types.rb', line 41482 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.
41494 41495 41496 |
# File 'lib/ovirtsdk4/types.rb', line 41494 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.
41507 41508 41509 41510 41511 41512 |
# File 'lib/ovirtsdk4/types.rb', line 41507 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.
41519 41520 41521 |
# File 'lib/ovirtsdk4/types.rb', line 41519 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.
41528 41529 41530 41531 41532 41533 41534 41535 41536 41537 41538 |
# File 'lib/ovirtsdk4/types.rb', line 41528 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.
41545 41546 41547 |
# File 'lib/ovirtsdk4/types.rb', line 41545 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status
attribute.
41554 41555 41556 |
# File 'lib/ovirtsdk4/types.rb', line 41554 def external_status=(value) @external_status = value end |
#hardware_information ⇒ HardwareInformation
Returns the value of the hardware_information
attribute.
41563 41564 41565 |
# File 'lib/ovirtsdk4/types.rb', line 41563 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.
41576 41577 41578 41579 41580 41581 |
# File 'lib/ovirtsdk4/types.rb', line 41576 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.
42669 42670 42671 42672 42673 42674 42675 42676 42677 42678 42679 42680 42681 42682 42683 42684 42685 42686 42687 42688 42689 42690 42691 42692 42693 42694 42695 42696 42697 42698 42699 42700 42701 42702 42703 42704 42705 42706 42707 42708 42709 42710 42711 42712 42713 42714 42715 42716 42717 42718 42719 42720 42721 |
# File 'lib/ovirtsdk4/types.rb', line 42669 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 end |
#hooks ⇒ Array<Hook>
Returns the value of the hooks
attribute.
41588 41589 41590 |
# File 'lib/ovirtsdk4/types.rb', line 41588 def hooks @hooks end |
#hooks=(list) ⇒ Object
Sets the value of the hooks
attribute.
41597 41598 41599 41600 41601 41602 41603 41604 41605 41606 41607 |
# File 'lib/ovirtsdk4/types.rb', line 41597 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.
41614 41615 41616 |
# File 'lib/ovirtsdk4/types.rb', line 41614 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.
41627 41628 41629 41630 41631 41632 |
# File 'lib/ovirtsdk4/types.rb', line 41627 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.
41639 41640 41641 |
# File 'lib/ovirtsdk4/types.rb', line 41639 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
41648 41649 41650 |
# File 'lib/ovirtsdk4/types.rb', line 41648 def id=(value) @id = value end |
#iscsi ⇒ IscsiDetails
Returns the value of the iscsi
attribute.
41657 41658 41659 |
# File 'lib/ovirtsdk4/types.rb', line 41657 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.
41670 41671 41672 41673 41674 41675 |
# File 'lib/ovirtsdk4/types.rb', line 41670 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.
41682 41683 41684 |
# File 'lib/ovirtsdk4/types.rb', line 41682 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
41691 41692 41693 41694 41695 41696 41697 41698 41699 41700 41701 |
# File 'lib/ovirtsdk4/types.rb', line 41691 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.
41708 41709 41710 |
# File 'lib/ovirtsdk4/types.rb', line 41708 def kdump_status @kdump_status end |
#kdump_status=(value) ⇒ Object
Sets the value of the kdump_status
attribute.
41717 41718 41719 |
# File 'lib/ovirtsdk4/types.rb', line 41717 def kdump_status=(value) @kdump_status = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
41726 41727 41728 |
# File 'lib/ovirtsdk4/types.rb', line 41726 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.
41739 41740 41741 41742 41743 41744 |
# File 'lib/ovirtsdk4/types.rb', line 41739 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.
41751 41752 41753 |
# File 'lib/ovirtsdk4/types.rb', line 41751 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.
41764 41765 41766 41767 41768 41769 |
# File 'lib/ovirtsdk4/types.rb', line 41764 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.
41776 41777 41778 |
# File 'lib/ovirtsdk4/types.rb', line 41776 def max_scheduling_memory @max_scheduling_memory end |
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the max_scheduling_memory
attribute.
41785 41786 41787 |
# File 'lib/ovirtsdk4/types.rb', line 41785 def max_scheduling_memory=(value) @max_scheduling_memory = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
41794 41795 41796 |
# File 'lib/ovirtsdk4/types.rb', line 41794 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
41803 41804 41805 |
# File 'lib/ovirtsdk4/types.rb', line 41803 def memory=(value) @memory = value end |
#name ⇒ String
Returns the value of the name
attribute.
41812 41813 41814 |
# File 'lib/ovirtsdk4/types.rb', line 41812 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
41821 41822 41823 |
# File 'lib/ovirtsdk4/types.rb', line 41821 def name=(value) @name = value end |
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the network_attachments
attribute.
41830 41831 41832 |
# File 'lib/ovirtsdk4/types.rb', line 41830 def @network_attachments end |
#network_attachments=(list) ⇒ Object
Sets the value of the network_attachments
attribute.
41839 41840 41841 41842 41843 41844 41845 41846 41847 41848 41849 |
# File 'lib/ovirtsdk4/types.rb', line 41839 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.
41856 41857 41858 |
# File 'lib/ovirtsdk4/types.rb', line 41856 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.
41865 41866 41867 |
# File 'lib/ovirtsdk4/types.rb', line 41865 def network_operation_in_progress=(value) @network_operation_in_progress = value end |
#nics ⇒ Array<HostNic>
Returns the value of the nics
attribute.
41874 41875 41876 |
# File 'lib/ovirtsdk4/types.rb', line 41874 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
41883 41884 41885 41886 41887 41888 41889 41890 41891 41892 41893 |
# File 'lib/ovirtsdk4/types.rb', line 41883 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.
41900 41901 41902 |
# File 'lib/ovirtsdk4/types.rb', line 41900 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
41909 41910 41911 41912 41913 41914 41915 41916 41917 41918 41919 |
# File 'lib/ovirtsdk4/types.rb', line 41909 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.
41926 41927 41928 |
# File 'lib/ovirtsdk4/types.rb', line 41926 def numa_supported @numa_supported end |
#numa_supported=(value) ⇒ Object
Sets the value of the numa_supported
attribute.
41935 41936 41937 |
# File 'lib/ovirtsdk4/types.rb', line 41935 def numa_supported=(value) @numa_supported = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
41944 41945 41946 |
# File 'lib/ovirtsdk4/types.rb', line 41944 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.
41957 41958 41959 41960 41961 41962 |
# File 'lib/ovirtsdk4/types.rb', line 41957 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.
41969 41970 41971 |
# File 'lib/ovirtsdk4/types.rb', line 41969 def override_iptables @override_iptables end |
#override_iptables=(value) ⇒ Object
Sets the value of the override_iptables
attribute.
41978 41979 41980 |
# File 'lib/ovirtsdk4/types.rb', line 41978 def override_iptables=(value) @override_iptables = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
41987 41988 41989 |
# File 'lib/ovirtsdk4/types.rb', line 41987 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
41996 41997 41998 41999 42000 42001 42002 42003 42004 42005 42006 |
# File 'lib/ovirtsdk4/types.rb', line 41996 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.
42013 42014 42015 |
# File 'lib/ovirtsdk4/types.rb', line 42013 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
42022 42023 42024 |
# File 'lib/ovirtsdk4/types.rb', line 42022 def port=(value) @port = value end |
#power_management ⇒ PowerManagement
Returns the value of the power_management
attribute.
42031 42032 42033 |
# File 'lib/ovirtsdk4/types.rb', line 42031 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.
42044 42045 42046 42047 42048 42049 |
# File 'lib/ovirtsdk4/types.rb', line 42044 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.
42056 42057 42058 |
# File 'lib/ovirtsdk4/types.rb', line 42056 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol
attribute.
42065 42066 42067 |
# File 'lib/ovirtsdk4/types.rb', line 42065 def protocol=(value) @protocol = value end |
#root_password ⇒ String
Returns the value of the root_password
attribute.
42074 42075 42076 |
# File 'lib/ovirtsdk4/types.rb', line 42074 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password
attribute.
42083 42084 42085 |
# File 'lib/ovirtsdk4/types.rb', line 42083 def root_password=(value) @root_password = value end |
#se_linux ⇒ SeLinux
Returns the value of the se_linux
attribute.
42092 42093 42094 |
# File 'lib/ovirtsdk4/types.rb', line 42092 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.
42105 42106 42107 42108 42109 42110 |
# File 'lib/ovirtsdk4/types.rb', line 42105 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.
42117 42118 42119 |
# File 'lib/ovirtsdk4/types.rb', line 42117 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.
42130 42131 42132 42133 42134 42135 |
# File 'lib/ovirtsdk4/types.rb', line 42130 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.
42142 42143 42144 |
# File 'lib/ovirtsdk4/types.rb', line 42142 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.
42155 42156 42157 42158 42159 42160 |
# File 'lib/ovirtsdk4/types.rb', line 42155 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.
42167 42168 42169 |
# File 'lib/ovirtsdk4/types.rb', line 42167 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
42176 42177 42178 42179 42180 42181 42182 42183 42184 42185 42186 |
# File 'lib/ovirtsdk4/types.rb', line 42176 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.
42193 42194 42195 |
# File 'lib/ovirtsdk4/types.rb', line 42193 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
42202 42203 42204 |
# File 'lib/ovirtsdk4/types.rb', line 42202 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
42211 42212 42213 |
# File 'lib/ovirtsdk4/types.rb', line 42211 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
42220 42221 42222 |
# File 'lib/ovirtsdk4/types.rb', line 42220 def status_detail=(value) @status_detail = value end |
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the storage_connection_extensions
attribute.
42229 42230 42231 |
# File 'lib/ovirtsdk4/types.rb', line 42229 def storage_connection_extensions @storage_connection_extensions end |
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the storage_connection_extensions
attribute.
42238 42239 42240 42241 42242 42243 42244 42245 42246 42247 42248 |
# File 'lib/ovirtsdk4/types.rb', line 42238 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.
42255 42256 42257 |
# File 'lib/ovirtsdk4/types.rb', line 42255 def storages @storages end |
#storages=(list) ⇒ Object
Sets the value of the storages
attribute.
42264 42265 42266 42267 42268 42269 42270 42271 42272 42273 42274 |
# File 'lib/ovirtsdk4/types.rb', line 42264 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.
42281 42282 42283 |
# File 'lib/ovirtsdk4/types.rb', line 42281 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.
42294 42295 42296 42297 42298 42299 |
# File 'lib/ovirtsdk4/types.rb', line 42294 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.
42306 42307 42308 |
# File 'lib/ovirtsdk4/types.rb', line 42306 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
42315 42316 42317 42318 42319 42320 42321 42322 42323 42324 42325 |
# File 'lib/ovirtsdk4/types.rb', line 42315 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.
42332 42333 42334 |
# File 'lib/ovirtsdk4/types.rb', line 42332 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.
42345 42346 42347 42348 42349 42350 |
# File 'lib/ovirtsdk4/types.rb', line 42345 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.
42357 42358 42359 |
# File 'lib/ovirtsdk4/types.rb', line 42357 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
42366 42367 42368 |
# File 'lib/ovirtsdk4/types.rb', line 42366 def type=(value) @type = value end |
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the unmanaged_networks
attribute.
42375 42376 42377 |
# File 'lib/ovirtsdk4/types.rb', line 42375 def unmanaged_networks @unmanaged_networks end |
#unmanaged_networks=(list) ⇒ Object
Sets the value of the unmanaged_networks
attribute.
42384 42385 42386 42387 42388 42389 42390 42391 42392 42393 42394 |
# File 'lib/ovirtsdk4/types.rb', line 42384 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.
42401 42402 42403 |
# File 'lib/ovirtsdk4/types.rb', line 42401 def update_available @update_available end |
#update_available=(value) ⇒ Object
Sets the value of the update_available
attribute.
42410 42411 42412 |
# File 'lib/ovirtsdk4/types.rb', line 42410 def update_available=(value) @update_available = value end |
#version ⇒ Version
Returns the value of the version
attribute.
42419 42420 42421 |
# File 'lib/ovirtsdk4/types.rb', line 42419 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.
42432 42433 42434 42435 42436 42437 |
# File 'lib/ovirtsdk4/types.rb', line 42432 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |