Class: OvirtSDK4::Host
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Host
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labelsattribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labelsattribute. -
#agents ⇒ Array<Agent>
Returns the value of the
agentsattribute. -
#agents=(list) ⇒ Object
Sets the value of the
agentsattribute. -
#auto_numa_status ⇒ AutoNumaStatus
Returns the value of the
auto_numa_statusattribute. -
#auto_numa_status=(value) ⇒ Object
Sets the value of the
auto_numa_statusattribute. -
#certificate ⇒ Certificate
Returns the value of the
certificateattribute. -
#certificate=(value) ⇒ Object
Sets the value of the
certificateattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the
device_passthroughattribute. -
#device_passthrough=(value) ⇒ Object
Sets the value of the
device_passthroughattribute. -
#devices ⇒ Array<Device>
Returns the value of the
devicesattribute. -
#devices=(list) ⇒ Object
Sets the value of the
devicesattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#external_network_provider_configurations ⇒ Array<ExternalNetworkProviderConfiguration>
Returns the value of the
external_network_provider_configurationsattribute. -
#external_network_provider_configurations=(list) ⇒ Object
Sets the value of the
external_network_provider_configurationsattribute. -
#external_status ⇒ ExternalStatus
Returns the value of the
external_statusattribute. -
#external_status=(value) ⇒ Object
Sets the value of the
external_statusattribute. -
#hardware_information ⇒ HardwareInformation
Returns the value of the
hardware_informationattribute. -
#hardware_information=(value) ⇒ Object
Sets the value of the
hardware_informationattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#hooks ⇒ Array<Hook>
Returns the value of the
hooksattribute. -
#hooks=(list) ⇒ Object
Sets the value of the
hooksattribute. -
#hosted_engine ⇒ HostedEngine
Returns the value of the
hosted_engineattribute. -
#hosted_engine=(value) ⇒ Object
Sets the value of the
hosted_engineattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Host
constructor
Creates a new instance of the Host class.
-
#iscsi ⇒ IscsiDetails
Returns the value of the
iscsiattribute. -
#iscsi=(value) ⇒ Object
Sets the value of the
iscsiattribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errataattribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errataattribute. -
#kdump_status ⇒ KdumpStatus
Returns the value of the
kdump_statusattribute. -
#kdump_status=(value) ⇒ Object
Sets the value of the
kdump_statusattribute. -
#ksm ⇒ Ksm
Returns the value of the
ksmattribute. -
#ksm=(value) ⇒ Object
Sets the value of the
ksmattribute. -
#libvirt_version ⇒ Version
Returns the value of the
libvirt_versionattribute. -
#libvirt_version=(value) ⇒ Object
Sets the value of the
libvirt_versionattribute. -
#max_scheduling_memory ⇒ Integer
Returns the value of the
max_scheduling_memoryattribute. -
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the
max_scheduling_memoryattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the
network_attachmentsattribute. -
#network_attachments=(list) ⇒ Object
Sets the value of the
network_attachmentsattribute. -
#nics ⇒ Array<HostNic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodesattribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodesattribute. -
#numa_supported ⇒ Boolean
Returns the value of the
numa_supportedattribute. -
#numa_supported=(value) ⇒ Object
Sets the value of the
numa_supportedattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#override_iptables ⇒ Boolean
Returns the value of the
override_iptablesattribute. -
#override_iptables=(value) ⇒ Object
Sets the value of the
override_iptablesattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#power_management ⇒ PowerManagement
Returns the value of the
power_managementattribute. -
#power_management=(value) ⇒ Object
Sets the value of the
power_managementattribute. -
#protocol ⇒ HostProtocol
Returns the value of the
protocolattribute. -
#protocol=(value) ⇒ Object
Sets the value of the
protocolattribute. -
#root_password ⇒ String
Returns the value of the
root_passwordattribute. -
#root_password=(value) ⇒ Object
Sets the value of the
root_passwordattribute. -
#se_linux ⇒ SeLinux
Returns the value of the
se_linuxattribute. -
#se_linux=(value) ⇒ Object
Sets the value of the
se_linuxattribute. -
#spm ⇒ Spm
Returns the value of the
spmattribute. -
#spm=(value) ⇒ Object
Sets the value of the
spmattribute. -
#ssh ⇒ Ssh
Returns the value of the
sshattribute. -
#ssh=(value) ⇒ Object
Sets the value of the
sshattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ HostStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#status_detail ⇒ String
Returns the value of the
status_detailattribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detailattribute. -
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the
storage_connection_extensionsattribute. -
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the
storage_connection_extensionsattribute. -
#storages ⇒ Array<HostStorage>
Returns the value of the
storagesattribute. -
#storages=(list) ⇒ Object
Sets the value of the
storagesattribute. -
#summary ⇒ VmSummary
Returns the value of the
summaryattribute. -
#summary=(value) ⇒ Object
Sets the value of the
summaryattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#transparent_huge_pages ⇒ TransparentHugePages
Returns the value of the
transparent_huge_pagesattribute. -
#transparent_huge_pages=(value) ⇒ Object
Sets the value of the
transparent_huge_pagesattribute. -
#type ⇒ HostType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the
unmanaged_networksattribute. -
#unmanaged_networks=(list) ⇒ Object
Sets the value of the
unmanaged_networksattribute. -
#update_available ⇒ Boolean
Returns the value of the
update_availableattribute. -
#update_available=(value) ⇒ Object
Sets the value of the
update_availableattribute. -
#version ⇒ Version
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Host
Creates a new instance of the OvirtSDK4::Host class.
42413 42414 42415 42416 42417 42418 42419 42420 42421 42422 42423 42424 42425 42426 42427 42428 42429 42430 42431 42432 42433 42434 42435 42436 42437 42438 42439 42440 42441 42442 42443 42444 42445 42446 42447 42448 42449 42450 42451 42452 42453 42454 42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 |
# File 'lib/ovirtsdk4/types.rb', line 42413 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.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.
42469 42470 42471 42472 42473 42474 42475 42476 42477 42478 42479 42480 42481 42482 42483 42484 42485 42486 42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 42505 42506 42507 42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 42519 42520 |
# File 'lib/ovirtsdk4/types.rb', line 42469 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. && @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.
41097 41098 41099 |
# File 'lib/ovirtsdk4/types.rb', line 41097 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
41106 41107 41108 |
# File 'lib/ovirtsdk4/types.rb', line 41106 def address=(value) @address = value end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels attribute.
41115 41116 41117 |
# File 'lib/ovirtsdk4/types.rb', line 41115 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels attribute.
41124 41125 41126 41127 41128 41129 41130 41131 41132 41133 41134 |
# File 'lib/ovirtsdk4/types.rb', line 41124 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.
41141 41142 41143 |
# File 'lib/ovirtsdk4/types.rb', line 41141 def agents @agents end |
#agents=(list) ⇒ Object
Sets the value of the agents attribute.
41150 41151 41152 41153 41154 41155 41156 41157 41158 41159 41160 |
# File 'lib/ovirtsdk4/types.rb', line 41150 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.
41167 41168 41169 |
# File 'lib/ovirtsdk4/types.rb', line 41167 def auto_numa_status @auto_numa_status end |
#auto_numa_status=(value) ⇒ Object
Sets the value of the auto_numa_status attribute.
41176 41177 41178 |
# File 'lib/ovirtsdk4/types.rb', line 41176 def auto_numa_status=(value) @auto_numa_status = value end |
#certificate ⇒ Certificate
Returns the value of the certificate attribute.
41185 41186 41187 |
# File 'lib/ovirtsdk4/types.rb', line 41185 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.
41198 41199 41200 41201 41202 41203 |
# File 'lib/ovirtsdk4/types.rb', line 41198 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.
41210 41211 41212 |
# File 'lib/ovirtsdk4/types.rb', line 41210 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.
41223 41224 41225 41226 41227 41228 |
# File 'lib/ovirtsdk4/types.rb', line 41223 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.
41235 41236 41237 |
# File 'lib/ovirtsdk4/types.rb', line 41235 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
41244 41245 41246 |
# File 'lib/ovirtsdk4/types.rb', line 41244 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu attribute.
41253 41254 41255 |
# File 'lib/ovirtsdk4/types.rb', line 41253 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.
41266 41267 41268 41269 41270 41271 |
# File 'lib/ovirtsdk4/types.rb', line 41266 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.
41278 41279 41280 |
# File 'lib/ovirtsdk4/types.rb', line 41278 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
41287 41288 41289 |
# File 'lib/ovirtsdk4/types.rb', line 41287 def description=(value) @description = value end |
#device_passthrough ⇒ HostDevicePassthrough
Returns the value of the device_passthrough attribute.
41296 41297 41298 |
# File 'lib/ovirtsdk4/types.rb', line 41296 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.
41309 41310 41311 41312 41313 41314 |
# File 'lib/ovirtsdk4/types.rb', line 41309 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.
41321 41322 41323 |
# File 'lib/ovirtsdk4/types.rb', line 41321 def devices @devices end |
#devices=(list) ⇒ Object
Sets the value of the devices attribute.
41330 41331 41332 41333 41334 41335 41336 41337 41338 41339 41340 |
# File 'lib/ovirtsdk4/types.rb', line 41330 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.
41347 41348 41349 |
# File 'lib/ovirtsdk4/types.rb', line 41347 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.
41360 41361 41362 41363 41364 41365 |
# File 'lib/ovirtsdk4/types.rb', line 41360 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.
41372 41373 41374 |
# File 'lib/ovirtsdk4/types.rb', line 41372 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.
41385 41386 41387 41388 41389 41390 |
# File 'lib/ovirtsdk4/types.rb', line 41385 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.
41397 41398 41399 |
# File 'lib/ovirtsdk4/types.rb', line 41397 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.
41406 41407 41408 41409 41410 41411 41412 41413 41414 41415 41416 |
# File 'lib/ovirtsdk4/types.rb', line 41406 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.
41423 41424 41425 |
# File 'lib/ovirtsdk4/types.rb', line 41423 def external_status @external_status end |
#external_status=(value) ⇒ Object
Sets the value of the external_status attribute.
41432 41433 41434 |
# File 'lib/ovirtsdk4/types.rb', line 41432 def external_status=(value) @external_status = value end |
#hardware_information ⇒ HardwareInformation
Returns the value of the hardware_information attribute.
41441 41442 41443 |
# File 'lib/ovirtsdk4/types.rb', line 41441 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.
41454 41455 41456 41457 41458 41459 |
# File 'lib/ovirtsdk4/types.rb', line 41454 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.
42525 42526 42527 42528 42529 42530 42531 42532 42533 42534 42535 42536 42537 42538 42539 42540 42541 42542 42543 42544 42545 42546 42547 42548 42549 42550 42551 42552 42553 42554 42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 42571 42572 42573 42574 42575 42576 |
# File 'lib/ovirtsdk4/types.rb', line 42525 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 + @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.
41466 41467 41468 |
# File 'lib/ovirtsdk4/types.rb', line 41466 def hooks @hooks end |
#hooks=(list) ⇒ Object
Sets the value of the hooks attribute.
41475 41476 41477 41478 41479 41480 41481 41482 41483 41484 41485 |
# File 'lib/ovirtsdk4/types.rb', line 41475 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.
41492 41493 41494 |
# File 'lib/ovirtsdk4/types.rb', line 41492 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.
41505 41506 41507 41508 41509 41510 |
# File 'lib/ovirtsdk4/types.rb', line 41505 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.
41517 41518 41519 |
# File 'lib/ovirtsdk4/types.rb', line 41517 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
41526 41527 41528 |
# File 'lib/ovirtsdk4/types.rb', line 41526 def id=(value) @id = value end |
#iscsi ⇒ IscsiDetails
Returns the value of the iscsi attribute.
41535 41536 41537 |
# File 'lib/ovirtsdk4/types.rb', line 41535 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.
41548 41549 41550 41551 41552 41553 |
# File 'lib/ovirtsdk4/types.rb', line 41548 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.
41560 41561 41562 |
# File 'lib/ovirtsdk4/types.rb', line 41560 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata attribute.
41569 41570 41571 41572 41573 41574 41575 41576 41577 41578 41579 |
# File 'lib/ovirtsdk4/types.rb', line 41569 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.
41586 41587 41588 |
# File 'lib/ovirtsdk4/types.rb', line 41586 def kdump_status @kdump_status end |
#kdump_status=(value) ⇒ Object
Sets the value of the kdump_status attribute.
41595 41596 41597 |
# File 'lib/ovirtsdk4/types.rb', line 41595 def kdump_status=(value) @kdump_status = value end |
#ksm ⇒ Ksm
Returns the value of the ksm attribute.
41604 41605 41606 |
# File 'lib/ovirtsdk4/types.rb', line 41604 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.
41617 41618 41619 41620 41621 41622 |
# File 'lib/ovirtsdk4/types.rb', line 41617 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.
41629 41630 41631 |
# File 'lib/ovirtsdk4/types.rb', line 41629 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.
41642 41643 41644 41645 41646 41647 |
# File 'lib/ovirtsdk4/types.rb', line 41642 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.
41654 41655 41656 |
# File 'lib/ovirtsdk4/types.rb', line 41654 def max_scheduling_memory @max_scheduling_memory end |
#max_scheduling_memory=(value) ⇒ Object
Sets the value of the max_scheduling_memory attribute.
41663 41664 41665 |
# File 'lib/ovirtsdk4/types.rb', line 41663 def max_scheduling_memory=(value) @max_scheduling_memory = value end |
#memory ⇒ Integer
Returns the value of the memory attribute.
41672 41673 41674 |
# File 'lib/ovirtsdk4/types.rb', line 41672 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
41681 41682 41683 |
# File 'lib/ovirtsdk4/types.rb', line 41681 def memory=(value) @memory = value end |
#name ⇒ String
Returns the value of the name attribute.
41690 41691 41692 |
# File 'lib/ovirtsdk4/types.rb', line 41690 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
41699 41700 41701 |
# File 'lib/ovirtsdk4/types.rb', line 41699 def name=(value) @name = value end |
#network_attachments ⇒ Array<NetworkAttachment>
Returns the value of the network_attachments attribute.
41708 41709 41710 |
# File 'lib/ovirtsdk4/types.rb', line 41708 def @network_attachments end |
#network_attachments=(list) ⇒ Object
Sets the value of the network_attachments attribute.
41717 41718 41719 41720 41721 41722 41723 41724 41725 41726 41727 |
# File 'lib/ovirtsdk4/types.rb', line 41717 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 |
#nics ⇒ Array<HostNic>
Returns the value of the nics attribute.
41734 41735 41736 |
# File 'lib/ovirtsdk4/types.rb', line 41734 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
41743 41744 41745 41746 41747 41748 41749 41750 41751 41752 41753 |
# File 'lib/ovirtsdk4/types.rb', line 41743 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.
41760 41761 41762 |
# File 'lib/ovirtsdk4/types.rb', line 41760 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes attribute.
41769 41770 41771 41772 41773 41774 41775 41776 41777 41778 41779 |
# File 'lib/ovirtsdk4/types.rb', line 41769 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.
41786 41787 41788 |
# File 'lib/ovirtsdk4/types.rb', line 41786 def numa_supported @numa_supported end |
#numa_supported=(value) ⇒ Object
Sets the value of the numa_supported attribute.
41795 41796 41797 |
# File 'lib/ovirtsdk4/types.rb', line 41795 def numa_supported=(value) @numa_supported = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
41804 41805 41806 |
# File 'lib/ovirtsdk4/types.rb', line 41804 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.
41817 41818 41819 41820 41821 41822 |
# File 'lib/ovirtsdk4/types.rb', line 41817 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.
41829 41830 41831 |
# File 'lib/ovirtsdk4/types.rb', line 41829 def override_iptables @override_iptables end |
#override_iptables=(value) ⇒ Object
Sets the value of the override_iptables attribute.
41838 41839 41840 |
# File 'lib/ovirtsdk4/types.rb', line 41838 def override_iptables=(value) @override_iptables = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
41847 41848 41849 |
# File 'lib/ovirtsdk4/types.rb', line 41847 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
41856 41857 41858 41859 41860 41861 41862 41863 41864 41865 41866 |
# File 'lib/ovirtsdk4/types.rb', line 41856 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.
41873 41874 41875 |
# File 'lib/ovirtsdk4/types.rb', line 41873 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
41882 41883 41884 |
# File 'lib/ovirtsdk4/types.rb', line 41882 def port=(value) @port = value end |
#power_management ⇒ PowerManagement
Returns the value of the power_management attribute.
41891 41892 41893 |
# File 'lib/ovirtsdk4/types.rb', line 41891 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.
41904 41905 41906 41907 41908 41909 |
# File 'lib/ovirtsdk4/types.rb', line 41904 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.
41916 41917 41918 |
# File 'lib/ovirtsdk4/types.rb', line 41916 def protocol @protocol end |
#protocol=(value) ⇒ Object
Sets the value of the protocol attribute.
41925 41926 41927 |
# File 'lib/ovirtsdk4/types.rb', line 41925 def protocol=(value) @protocol = value end |
#root_password ⇒ String
Returns the value of the root_password attribute.
41934 41935 41936 |
# File 'lib/ovirtsdk4/types.rb', line 41934 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password attribute.
41943 41944 41945 |
# File 'lib/ovirtsdk4/types.rb', line 41943 def root_password=(value) @root_password = value end |
#se_linux ⇒ SeLinux
Returns the value of the se_linux attribute.
41952 41953 41954 |
# File 'lib/ovirtsdk4/types.rb', line 41952 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.
41965 41966 41967 41968 41969 41970 |
# File 'lib/ovirtsdk4/types.rb', line 41965 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.
41977 41978 41979 |
# File 'lib/ovirtsdk4/types.rb', line 41977 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.
41990 41991 41992 41993 41994 41995 |
# File 'lib/ovirtsdk4/types.rb', line 41990 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.
42002 42003 42004 |
# File 'lib/ovirtsdk4/types.rb', line 42002 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.
42015 42016 42017 42018 42019 42020 |
# File 'lib/ovirtsdk4/types.rb', line 42015 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.
42027 42028 42029 |
# File 'lib/ovirtsdk4/types.rb', line 42027 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
42036 42037 42038 42039 42040 42041 42042 42043 42044 42045 42046 |
# File 'lib/ovirtsdk4/types.rb', line 42036 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.
42053 42054 42055 |
# File 'lib/ovirtsdk4/types.rb', line 42053 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
42062 42063 42064 |
# File 'lib/ovirtsdk4/types.rb', line 42062 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail attribute.
42071 42072 42073 |
# File 'lib/ovirtsdk4/types.rb', line 42071 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail attribute.
42080 42081 42082 |
# File 'lib/ovirtsdk4/types.rb', line 42080 def status_detail=(value) @status_detail = value end |
#storage_connection_extensions ⇒ Array<StorageConnectionExtension>
Returns the value of the storage_connection_extensions attribute.
42089 42090 42091 |
# File 'lib/ovirtsdk4/types.rb', line 42089 def storage_connection_extensions @storage_connection_extensions end |
#storage_connection_extensions=(list) ⇒ Object
Sets the value of the storage_connection_extensions attribute.
42098 42099 42100 42101 42102 42103 42104 42105 42106 42107 42108 |
# File 'lib/ovirtsdk4/types.rb', line 42098 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.
42115 42116 42117 |
# File 'lib/ovirtsdk4/types.rb', line 42115 def storages @storages end |
#storages=(list) ⇒ Object
Sets the value of the storages attribute.
42124 42125 42126 42127 42128 42129 42130 42131 42132 42133 42134 |
# File 'lib/ovirtsdk4/types.rb', line 42124 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.
42141 42142 42143 |
# File 'lib/ovirtsdk4/types.rb', line 42141 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.
42154 42155 42156 42157 42158 42159 |
# File 'lib/ovirtsdk4/types.rb', line 42154 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.
42166 42167 42168 |
# File 'lib/ovirtsdk4/types.rb', line 42166 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
42175 42176 42177 42178 42179 42180 42181 42182 42183 42184 42185 |
# File 'lib/ovirtsdk4/types.rb', line 42175 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.
42192 42193 42194 |
# File 'lib/ovirtsdk4/types.rb', line 42192 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.
42205 42206 42207 42208 42209 42210 |
# File 'lib/ovirtsdk4/types.rb', line 42205 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.
42217 42218 42219 |
# File 'lib/ovirtsdk4/types.rb', line 42217 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
42226 42227 42228 |
# File 'lib/ovirtsdk4/types.rb', line 42226 def type=(value) @type = value end |
#unmanaged_networks ⇒ Array<UnmanagedNetwork>
Returns the value of the unmanaged_networks attribute.
42235 42236 42237 |
# File 'lib/ovirtsdk4/types.rb', line 42235 def unmanaged_networks @unmanaged_networks end |
#unmanaged_networks=(list) ⇒ Object
Sets the value of the unmanaged_networks attribute.
42244 42245 42246 42247 42248 42249 42250 42251 42252 42253 42254 |
# File 'lib/ovirtsdk4/types.rb', line 42244 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.
42261 42262 42263 |
# File 'lib/ovirtsdk4/types.rb', line 42261 def update_available @update_available end |
#update_available=(value) ⇒ Object
Sets the value of the update_available attribute.
42270 42271 42272 |
# File 'lib/ovirtsdk4/types.rb', line 42270 def update_available=(value) @update_available = value end |
#version ⇒ Version
Returns the value of the version attribute.
42279 42280 42281 |
# File 'lib/ovirtsdk4/types.rb', line 42279 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.
42292 42293 42294 42295 42296 42297 |
# File 'lib/ovirtsdk4/types.rb', line 42292 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |