Class: OvirtSDK4::Host

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Host

Creates a new instance of the OvirtSDK4::Host class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :address (String)

    The value of attribute address.

  • :affinity_labels (Array<AffinityLabel>, Array<Hash>)

    The values of attribute affinity_labels.

  • :agents (Array<Agent>, Array<Hash>)

    The values of attribute agents.

  • :auto_numa_status (AutoNumaStatus)

    The value of attribute auto_numa_status.

  • :certificate (Certificate, Hash)

    The value of attribute certificate.

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :cpu (Cpu, Hash)

    The value of attribute cpu.

  • :description (String)

    The value of attribute description.

  • :device_passthrough (HostDevicePassthrough, Hash)

    The value of attribute device_passthrough.

  • :devices (Array<HostDevice>, Array<Hash>)

    The values of attribute devices.

  • :display (Display, Hash)

    The value of attribute display.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :external_network_provider_configurations (Array<ExternalNetworkProviderConfiguration>, Array<Hash>)

    The values of attribute external_network_provider_configurations.

  • :external_status (ExternalStatus)

    The value of attribute external_status.

  • :hardware_information (HardwareInformation, Hash)

    The value of attribute hardware_information.

  • :hooks (Array<Hook>, Array<Hash>)

    The values of attribute hooks.

  • :hosted_engine (HostedEngine, Hash)

    The value of attribute hosted_engine.

  • :id (String)

    The value of attribute id.

  • :iscsi (IscsiDetails, Hash)

    The value of attribute iscsi.

  • :katello_errata (Array<KatelloErratum>, Array<Hash>)

    The values of attribute katello_errata.

  • :kdump_status (KdumpStatus)

    The value of attribute kdump_status.

  • :ksm (Ksm, Hash)

    The value of attribute ksm.

  • :libvirt_version (Version, Hash)

    The value of attribute libvirt_version.

  • :max_scheduling_memory (Integer)

    The value of attribute max_scheduling_memory.

  • :memory (Integer)

    The value of attribute memory.

  • :name (String)

    The value of attribute name.

  • :network_attachments (Array<NetworkAttachment>, Array<Hash>)

    The values of attribute network_attachments.

  • :network_operation_in_progress (Boolean)

    The value of attribute network_operation_in_progress.

  • :nics (Array<HostNic>, Array<Hash>)

    The values of attribute nics.

  • :numa_nodes (Array<NumaNode>, Array<Hash>)

    The values of attribute numa_nodes.

  • :numa_supported (Boolean)

    The value of attribute numa_supported.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

  • :override_iptables (Boolean)

    The value of attribute override_iptables.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :port (Integer)

    The value of attribute port.

  • :power_management (PowerManagement, Hash)

    The value of attribute power_management.

  • :protocol (HostProtocol)

    The value of attribute protocol.

  • :reinstallation_required (Boolean)

    The value of attribute reinstallation_required.

  • :root_password (String)

    The value of attribute root_password.

  • :se_linux (SeLinux, Hash)

    The value of attribute se_linux.

  • :spm (Spm, Hash)

    The value of attribute spm.

  • :ssh (Ssh, Hash)

    The value of attribute ssh.

  • :statistics (Array<Statistic>, Array<Hash>)

    The values of attribute statistics.

  • :status (HostStatus)

    The value of attribute status.

  • :status_detail (String)

    The value of attribute status_detail.

  • :storage_connection_extensions (Array<StorageConnectionExtension>, Array<Hash>)

    The values of attribute storage_connection_extensions.

  • :storages (Array<HostStorage>, Array<Hash>)

    The values of attribute storages.

  • :summary (VmSummary, Hash)

    The value of attribute summary.

  • :tags (Array<Tag>, Array<Hash>)

    The values of attribute tags.

  • :transparent_huge_pages (TransparentHugePages, Hash)

    The value of attribute transparent_huge_pages.

  • :type (HostType)

    The value of attribute type.

  • :unmanaged_networks (Array<UnmanagedNetwork>, Array<Hash>)

    The values of attribute unmanaged_networks.

  • :update_available (Boolean)

    The value of attribute update_available.

  • :version (Version, Hash)

    The value of attribute version.

  • :vgpu_placement (VgpuPlacement)

    The value of attribute vgpu_placement.



44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765
44766
44767
44768
# File 'lib/ovirtsdk4/types.rb', line 44714

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.network_attachments = opts[:network_attachments]
  self.network_operation_in_progress = opts[:network_operation_in_progress]
  self.nics = opts[:nics]
  self.numa_nodes = opts[:numa_nodes]
  self.numa_supported = opts[:numa_supported]
  self.os = opts[:os]
  self.override_iptables = opts[:override_iptables]
  self.permissions = opts[:permissions]
  self.port = opts[:port]
  self.power_management = opts[:power_management]
  self.protocol = opts[:protocol]
  self.reinstallation_required = opts[:reinstallation_required]
  self.root_password = opts[:root_password]
  self.se_linux = opts[:se_linux]
  self.spm = opts[:spm]
  self.ssh = opts[:ssh]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.status_detail = opts[:status_detail]
  self.storage_connection_extensions = opts[:storage_connection_extensions]
  self.storages = opts[:storages]
  self.summary = opts[:summary]
  self.tags = opts[:tags]
  self.transparent_huge_pages = opts[:transparent_huge_pages]
  self.type = opts[:type]
  self.unmanaged_networks = opts[:unmanaged_networks]
  self.update_available = opts[:update_available]
  self.version = opts[:version]
  self.vgpu_placement = opts[:vgpu_placement]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



44773
44774
44775
44776
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
# File 'lib/ovirtsdk4/types.rb', line 44773

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_attachments &&
  @network_operation_in_progress == other.network_operation_in_progress &&
  @nics == other.nics &&
  @numa_nodes == other.numa_nodes &&
  @numa_supported == other.numa_supported &&
  @os == other.os &&
  @override_iptables == other.override_iptables &&
  @permissions == other.permissions &&
  @port == other.port &&
  @power_management == other.power_management &&
  @protocol == other.protocol &&
  @reinstallation_required == other.reinstallation_required &&
  @root_password == other.root_password &&
  @se_linux == other.se_linux &&
  @spm == other.spm &&
  @ssh == other.ssh &&
  @statistics == other.statistics &&
  @status == other.status &&
  @status_detail == other.status_detail &&
  @storage_connection_extensions == other.storage_connection_extensions &&
  @storages == other.storages &&
  @summary == other.summary &&
  @tags == other.tags &&
  @transparent_huge_pages == other.transparent_huge_pages &&
  @type == other.type &&
  @unmanaged_networks == other.unmanaged_networks &&
  @update_available == other.update_available &&
  @version == other.version &&
  @vgpu_placement == other.vgpu_placement
end

#addressString

Returns the value of the address attribute.

Returns:

  • (String)


43338
43339
43340
# File 'lib/ovirtsdk4/types.rb', line 43338

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)


43347
43348
43349
# File 'lib/ovirtsdk4/types.rb', line 43347

def address=(value)
  @address = value
end

#affinity_labelsArray<AffinityLabel>

Returns the value of the affinity_labels attribute.

Returns:



43356
43357
43358
# File 'lib/ovirtsdk4/types.rb', line 43356

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
# File 'lib/ovirtsdk4/types.rb', line 43365

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

#agentsArray<Agent>

Returns the value of the agents attribute.

Returns:



43382
43383
43384
# File 'lib/ovirtsdk4/types.rb', line 43382

def agents
  @agents
end

#agents=(list) ⇒ Object

Sets the value of the agents attribute.

Parameters:



43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
# File 'lib/ovirtsdk4/types.rb', line 43391

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_statusAutoNumaStatus

Returns the value of the auto_numa_status attribute.

Returns:



43408
43409
43410
# File 'lib/ovirtsdk4/types.rb', line 43408

def auto_numa_status
  @auto_numa_status
end

#auto_numa_status=(value) ⇒ Object

Sets the value of the auto_numa_status attribute.

Parameters:



43417
43418
43419
# File 'lib/ovirtsdk4/types.rb', line 43417

def auto_numa_status=(value)
  @auto_numa_status = value
end

#certificateCertificate

Returns the value of the certificate attribute.

Returns:



43426
43427
43428
# File 'lib/ovirtsdk4/types.rb', line 43426

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.

Parameters:



43439
43440
43441
43442
43443
43444
# File 'lib/ovirtsdk4/types.rb', line 43439

def certificate=(value)
  if value.is_a?(Hash)
    value = Certificate.new(value)
  end
  @certificate = value
end

#clusterCluster

Returns the value of the cluster attribute.

Returns:



43451
43452
43453
# File 'lib/ovirtsdk4/types.rb', line 43451

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.

Parameters:



43464
43465
43466
43467
43468
43469
# File 'lib/ovirtsdk4/types.rb', line 43464

def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


43476
43477
43478
# File 'lib/ovirtsdk4/types.rb', line 43476

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


43485
43486
43487
# File 'lib/ovirtsdk4/types.rb', line 43485

def comment=(value)
  @comment = value
end

#cpuCpu

Returns the value of the cpu attribute.

Returns:



43494
43495
43496
# File 'lib/ovirtsdk4/types.rb', line 43494

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.

Parameters:

  • value (Cpu, Hash)


43507
43508
43509
43510
43511
43512
# File 'lib/ovirtsdk4/types.rb', line 43507

def cpu=(value)
  if value.is_a?(Hash)
    value = Cpu.new(value)
  end
  @cpu = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


43519
43520
43521
# File 'lib/ovirtsdk4/types.rb', line 43519

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


43528
43529
43530
# File 'lib/ovirtsdk4/types.rb', line 43528

def description=(value)
  @description = value
end

#device_passthroughHostDevicePassthrough

Returns the value of the device_passthrough attribute.



43537
43538
43539
# File 'lib/ovirtsdk4/types.rb', line 43537

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.

Parameters:



43550
43551
43552
43553
43554
43555
# File 'lib/ovirtsdk4/types.rb', line 43550

def device_passthrough=(value)
  if value.is_a?(Hash)
    value = HostDevicePassthrough.new(value)
  end
  @device_passthrough = value
end

#devicesArray<HostDevice>

Returns the value of the devices attribute.

Returns:



43562
43563
43564
# File 'lib/ovirtsdk4/types.rb', line 43562

def devices
  @devices
end

#devices=(list) ⇒ Object

Sets the value of the devices attribute.

Parameters:



43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
# File 'lib/ovirtsdk4/types.rb', line 43571

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

#displayDisplay

Returns the value of the display attribute.

Returns:



43588
43589
43590
# File 'lib/ovirtsdk4/types.rb', line 43588

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.

Parameters:



43601
43602
43603
43604
43605
43606
# File 'lib/ovirtsdk4/types.rb', line 43601

def display=(value)
  if value.is_a?(Hash)
    value = Display.new(value)
  end
  @display = value
end

#external_host_providerExternalHostProvider

Returns the value of the external_host_provider attribute.



43613
43614
43615
# File 'lib/ovirtsdk4/types.rb', line 43613

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.

Parameters:



43626
43627
43628
43629
43630
43631
# File 'lib/ovirtsdk4/types.rb', line 43626

def external_host_provider=(value)
  if value.is_a?(Hash)
    value = ExternalHostProvider.new(value)
  end
  @external_host_provider = value
end

#external_network_provider_configurationsArray<ExternalNetworkProviderConfiguration>

Returns the value of the external_network_provider_configurations attribute.



43638
43639
43640
# File 'lib/ovirtsdk4/types.rb', line 43638

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.

Parameters:



43647
43648
43649
43650
43651
43652
43653
43654
43655
43656
43657
# File 'lib/ovirtsdk4/types.rb', line 43647

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_statusExternalStatus

Returns the value of the external_status attribute.

Returns:



43664
43665
43666
# File 'lib/ovirtsdk4/types.rb', line 43664

def external_status
  @external_status
end

#external_status=(value) ⇒ Object

Sets the value of the external_status attribute.

Parameters:



43673
43674
43675
# File 'lib/ovirtsdk4/types.rb', line 43673

def external_status=(value)
  @external_status = value
end

#hardware_informationHardwareInformation

Returns the value of the hardware_information attribute.

Returns:



43682
43683
43684
# File 'lib/ovirtsdk4/types.rb', line 43682

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.

Parameters:



43695
43696
43697
43698
43699
43700
# File 'lib/ovirtsdk4/types.rb', line 43695

def hardware_information=(value)
  if value.is_a?(Hash)
    value = HardwareInformation.new(value)
  end
  @hardware_information = value
end

#hashObject

Generates a hash value for this object.



44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
44859
44860
44861
44862
44863
44864
44865
44866
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
44877
44878
44879
44880
44881
44882
44883
44884
44885
44886
# File 'lib/ovirtsdk4/types.rb', line 44832

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 +
  @reinstallation_required.hash +
  @root_password.hash +
  @se_linux.hash +
  @spm.hash +
  @ssh.hash +
  @statistics.hash +
  @status.hash +
  @status_detail.hash +
  @storage_connection_extensions.hash +
  @storages.hash +
  @summary.hash +
  @tags.hash +
  @transparent_huge_pages.hash +
  @type.hash +
  @unmanaged_networks.hash +
  @update_available.hash +
  @version.hash +
  @vgpu_placement.hash
end

#hooksArray<Hook>

Returns the value of the hooks attribute.

Returns:



43707
43708
43709
# File 'lib/ovirtsdk4/types.rb', line 43707

def hooks
  @hooks
end

#hooks=(list) ⇒ Object

Sets the value of the hooks attribute.

Parameters:

  • list (Array<Hook>)


43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
# File 'lib/ovirtsdk4/types.rb', line 43716

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_engineHostedEngine

Returns the value of the hosted_engine attribute.

Returns:



43733
43734
43735
# File 'lib/ovirtsdk4/types.rb', line 43733

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.

Parameters:



43746
43747
43748
43749
43750
43751
# File 'lib/ovirtsdk4/types.rb', line 43746

def hosted_engine=(value)
  if value.is_a?(Hash)
    value = HostedEngine.new(value)
  end
  @hosted_engine = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


43758
43759
43760
# File 'lib/ovirtsdk4/types.rb', line 43758

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


43767
43768
43769
# File 'lib/ovirtsdk4/types.rb', line 43767

def id=(value)
  @id = value
end

#iscsiIscsiDetails

Returns the value of the iscsi attribute.

Returns:



43776
43777
43778
# File 'lib/ovirtsdk4/types.rb', line 43776

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.

Parameters:



43789
43790
43791
43792
43793
43794
# File 'lib/ovirtsdk4/types.rb', line 43789

def iscsi=(value)
  if value.is_a?(Hash)
    value = IscsiDetails.new(value)
  end
  @iscsi = value
end

#katello_errataArray<KatelloErratum>

Returns the value of the katello_errata attribute.

Returns:



43801
43802
43803
# File 'lib/ovirtsdk4/types.rb', line 43801

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
# File 'lib/ovirtsdk4/types.rb', line 43810

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_statusKdumpStatus

Returns the value of the kdump_status attribute.

Returns:



43827
43828
43829
# File 'lib/ovirtsdk4/types.rb', line 43827

def kdump_status
  @kdump_status
end

#kdump_status=(value) ⇒ Object

Sets the value of the kdump_status attribute.

Parameters:



43836
43837
43838
# File 'lib/ovirtsdk4/types.rb', line 43836

def kdump_status=(value)
  @kdump_status = value
end

#ksmKsm

Returns the value of the ksm attribute.

Returns:



43845
43846
43847
# File 'lib/ovirtsdk4/types.rb', line 43845

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.

Parameters:

  • value (Ksm, Hash)


43858
43859
43860
43861
43862
43863
# File 'lib/ovirtsdk4/types.rb', line 43858

def ksm=(value)
  if value.is_a?(Hash)
    value = Ksm.new(value)
  end
  @ksm = value
end

#libvirt_versionVersion

Returns the value of the libvirt_version attribute.

Returns:



43870
43871
43872
# File 'lib/ovirtsdk4/types.rb', line 43870

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.

Parameters:



43883
43884
43885
43886
43887
43888
# File 'lib/ovirtsdk4/types.rb', line 43883

def libvirt_version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @libvirt_version = value
end

#max_scheduling_memoryInteger

Returns the value of the max_scheduling_memory attribute.

Returns:

  • (Integer)


43895
43896
43897
# File 'lib/ovirtsdk4/types.rb', line 43895

def max_scheduling_memory
  @max_scheduling_memory
end

#max_scheduling_memory=(value) ⇒ Object

Sets the value of the max_scheduling_memory attribute.

Parameters:

  • value (Integer)


43904
43905
43906
# File 'lib/ovirtsdk4/types.rb', line 43904

def max_scheduling_memory=(value)
  @max_scheduling_memory = value
end

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)


43913
43914
43915
# File 'lib/ovirtsdk4/types.rb', line 43913

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


43922
43923
43924
# File 'lib/ovirtsdk4/types.rb', line 43922

def memory=(value)
  @memory = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


43931
43932
43933
# File 'lib/ovirtsdk4/types.rb', line 43931

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


43940
43941
43942
# File 'lib/ovirtsdk4/types.rb', line 43940

def name=(value)
  @name = value
end

#network_attachmentsArray<NetworkAttachment>

Returns the value of the network_attachments attribute.

Returns:



43949
43950
43951
# File 'lib/ovirtsdk4/types.rb', line 43949

def network_attachments
  @network_attachments
end

#network_attachments=(list) ⇒ Object

Sets the value of the network_attachments attribute.

Parameters:



43958
43959
43960
43961
43962
43963
43964
43965
43966
43967
43968
# File 'lib/ovirtsdk4/types.rb', line 43958

def network_attachments=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = NetworkAttachment.new(value)
      end
    end
  end
  @network_attachments = list
end

#network_operation_in_progressBoolean

Returns the value of the network_operation_in_progress attribute.

Returns:

  • (Boolean)


43975
43976
43977
# File 'lib/ovirtsdk4/types.rb', line 43975

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.

Parameters:

  • value (Boolean)


43984
43985
43986
# File 'lib/ovirtsdk4/types.rb', line 43984

def network_operation_in_progress=(value)
  @network_operation_in_progress = value
end

#nicsArray<HostNic>

Returns the value of the nics attribute.

Returns:



43993
43994
43995
# File 'lib/ovirtsdk4/types.rb', line 43993

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:



44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
# File 'lib/ovirtsdk4/types.rb', line 44002

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_nodesArray<NumaNode>

Returns the value of the numa_nodes attribute.

Returns:



44019
44020
44021
# File 'lib/ovirtsdk4/types.rb', line 44019

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
# File 'lib/ovirtsdk4/types.rb', line 44028

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_supportedBoolean

Returns the value of the numa_supported attribute.

Returns:

  • (Boolean)


44045
44046
44047
# File 'lib/ovirtsdk4/types.rb', line 44045

def numa_supported
  @numa_supported
end

#numa_supported=(value) ⇒ Object

Sets the value of the numa_supported attribute.

Parameters:

  • value (Boolean)


44054
44055
44056
# File 'lib/ovirtsdk4/types.rb', line 44054

def numa_supported=(value)
  @numa_supported = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



44063
44064
44065
# File 'lib/ovirtsdk4/types.rb', line 44063

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.

Parameters:



44076
44077
44078
44079
44080
44081
# File 'lib/ovirtsdk4/types.rb', line 44076

def os=(value)
  if value.is_a?(Hash)
    value = OperatingSystem.new(value)
  end
  @os = value
end

#override_iptablesBoolean

Returns the value of the override_iptables attribute.

Returns:

  • (Boolean)


44088
44089
44090
# File 'lib/ovirtsdk4/types.rb', line 44088

def override_iptables
  @override_iptables
end

#override_iptables=(value) ⇒ Object

Sets the value of the override_iptables attribute.

Parameters:

  • value (Boolean)


44097
44098
44099
# File 'lib/ovirtsdk4/types.rb', line 44097

def override_iptables=(value)
  @override_iptables = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



44106
44107
44108
# File 'lib/ovirtsdk4/types.rb', line 44106

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



44115
44116
44117
44118
44119
44120
44121
44122
44123
44124
44125
# File 'lib/ovirtsdk4/types.rb', line 44115

def permissions=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Permission.new(value)
      end
    end
  end
  @permissions = list
end

#portInteger

Returns the value of the port attribute.

Returns:

  • (Integer)


44132
44133
44134
# File 'lib/ovirtsdk4/types.rb', line 44132

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)


44141
44142
44143
# File 'lib/ovirtsdk4/types.rb', line 44141

def port=(value)
  @port = value
end

#power_managementPowerManagement

Returns the value of the power_management attribute.

Returns:



44150
44151
44152
# File 'lib/ovirtsdk4/types.rb', line 44150

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.

Parameters:



44163
44164
44165
44166
44167
44168
# File 'lib/ovirtsdk4/types.rb', line 44163

def power_management=(value)
  if value.is_a?(Hash)
    value = PowerManagement.new(value)
  end
  @power_management = value
end

#protocolHostProtocol

Returns the value of the protocol attribute.

Returns:



44175
44176
44177
# File 'lib/ovirtsdk4/types.rb', line 44175

def protocol
  @protocol
end

#protocol=(value) ⇒ Object

Sets the value of the protocol attribute.

Parameters:



44184
44185
44186
# File 'lib/ovirtsdk4/types.rb', line 44184

def protocol=(value)
  @protocol = value
end

#reinstallation_requiredBoolean

Returns the value of the reinstallation_required attribute.

Returns:

  • (Boolean)


44193
44194
44195
# File 'lib/ovirtsdk4/types.rb', line 44193

def reinstallation_required
  @reinstallation_required
end

#reinstallation_required=(value) ⇒ Object

Sets the value of the reinstallation_required attribute.

Parameters:

  • value (Boolean)


44202
44203
44204
# File 'lib/ovirtsdk4/types.rb', line 44202

def reinstallation_required=(value)
  @reinstallation_required = value
end

#root_passwordString

Returns the value of the root_password attribute.

Returns:

  • (String)


44211
44212
44213
# File 'lib/ovirtsdk4/types.rb', line 44211

def root_password
  @root_password
end

#root_password=(value) ⇒ Object

Sets the value of the root_password attribute.

Parameters:

  • value (String)


44220
44221
44222
# File 'lib/ovirtsdk4/types.rb', line 44220

def root_password=(value)
  @root_password = value
end

#se_linuxSeLinux

Returns the value of the se_linux attribute.

Returns:



44229
44230
44231
# File 'lib/ovirtsdk4/types.rb', line 44229

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.

Parameters:



44242
44243
44244
44245
44246
44247
# File 'lib/ovirtsdk4/types.rb', line 44242

def se_linux=(value)
  if value.is_a?(Hash)
    value = SeLinux.new(value)
  end
  @se_linux = value
end

#spmSpm

Returns the value of the spm attribute.

Returns:



44254
44255
44256
# File 'lib/ovirtsdk4/types.rb', line 44254

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.

Parameters:

  • value (Spm, Hash)


44267
44268
44269
44270
44271
44272
# File 'lib/ovirtsdk4/types.rb', line 44267

def spm=(value)
  if value.is_a?(Hash)
    value = Spm.new(value)
  end
  @spm = value
end

#sshSsh

Returns the value of the ssh attribute.

Returns:



44279
44280
44281
# File 'lib/ovirtsdk4/types.rb', line 44279

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.

Parameters:

  • value (Ssh, Hash)


44292
44293
44294
44295
44296
44297
# File 'lib/ovirtsdk4/types.rb', line 44292

def ssh=(value)
  if value.is_a?(Hash)
    value = Ssh.new(value)
  end
  @ssh = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



44304
44305
44306
# File 'lib/ovirtsdk4/types.rb', line 44304

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



44313
44314
44315
44316
44317
44318
44319
44320
44321
44322
44323
# File 'lib/ovirtsdk4/types.rb', line 44313

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

#statusHostStatus

Returns the value of the status attribute.

Returns:



44330
44331
44332
# File 'lib/ovirtsdk4/types.rb', line 44330

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



44339
44340
44341
# File 'lib/ovirtsdk4/types.rb', line 44339

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


44348
44349
44350
# File 'lib/ovirtsdk4/types.rb', line 44348

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


44357
44358
44359
# File 'lib/ovirtsdk4/types.rb', line 44357

def status_detail=(value)
  @status_detail = value
end

#storage_connection_extensionsArray<StorageConnectionExtension>

Returns the value of the storage_connection_extensions attribute.

Returns:



44366
44367
44368
# File 'lib/ovirtsdk4/types.rb', line 44366

def storage_connection_extensions
  @storage_connection_extensions
end

#storage_connection_extensions=(list) ⇒ Object

Sets the value of the storage_connection_extensions attribute.

Parameters:



44375
44376
44377
44378
44379
44380
44381
44382
44383
44384
44385
# File 'lib/ovirtsdk4/types.rb', line 44375

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

#storagesArray<HostStorage>

Returns the value of the storages attribute.

Returns:



44392
44393
44394
# File 'lib/ovirtsdk4/types.rb', line 44392

def storages
  @storages
end

#storages=(list) ⇒ Object

Sets the value of the storages attribute.

Parameters:



44401
44402
44403
44404
44405
44406
44407
44408
44409
44410
44411
# File 'lib/ovirtsdk4/types.rb', line 44401

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

#summaryVmSummary

Returns the value of the summary attribute.

Returns:



44418
44419
44420
# File 'lib/ovirtsdk4/types.rb', line 44418

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.

Parameters:



44431
44432
44433
44434
44435
44436
# File 'lib/ovirtsdk4/types.rb', line 44431

def summary=(value)
  if value.is_a?(Hash)
    value = VmSummary.new(value)
  end
  @summary = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



44443
44444
44445
# File 'lib/ovirtsdk4/types.rb', line 44443

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


44452
44453
44454
44455
44456
44457
44458
44459
44460
44461
44462
# File 'lib/ovirtsdk4/types.rb', line 44452

def tags=(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_pagesTransparentHugePages

Returns the value of the transparent_huge_pages attribute.



44469
44470
44471
# File 'lib/ovirtsdk4/types.rb', line 44469

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.

Parameters:



44482
44483
44484
44485
44486
44487
# File 'lib/ovirtsdk4/types.rb', line 44482

def transparent_huge_pages=(value)
  if value.is_a?(Hash)
    value = TransparentHugePages.new(value)
  end
  @transparent_huge_pages = value
end

#typeHostType

Returns the value of the type attribute.

Returns:



44494
44495
44496
# File 'lib/ovirtsdk4/types.rb', line 44494

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



44503
44504
44505
# File 'lib/ovirtsdk4/types.rb', line 44503

def type=(value)
  @type = value
end

#unmanaged_networksArray<UnmanagedNetwork>

Returns the value of the unmanaged_networks attribute.

Returns:



44512
44513
44514
# File 'lib/ovirtsdk4/types.rb', line 44512

def unmanaged_networks
  @unmanaged_networks
end

#unmanaged_networks=(list) ⇒ Object

Sets the value of the unmanaged_networks attribute.

Parameters:



44521
44522
44523
44524
44525
44526
44527
44528
44529
44530
44531
# File 'lib/ovirtsdk4/types.rb', line 44521

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_availableBoolean

Returns the value of the update_available attribute.

Returns:

  • (Boolean)


44538
44539
44540
# File 'lib/ovirtsdk4/types.rb', line 44538

def update_available
  @update_available
end

#update_available=(value) ⇒ Object

Sets the value of the update_available attribute.

Parameters:

  • value (Boolean)


44547
44548
44549
# File 'lib/ovirtsdk4/types.rb', line 44547

def update_available=(value)
  @update_available = value
end

#versionVersion

Returns the value of the version attribute.

Returns:



44556
44557
44558
# File 'lib/ovirtsdk4/types.rb', line 44556

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.

Parameters:



44569
44570
44571
44572
44573
44574
# File 'lib/ovirtsdk4/types.rb', line 44569

def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end

#vgpu_placementVgpuPlacement

Returns the value of the vgpu_placement attribute.

Returns:



44581
44582
44583
# File 'lib/ovirtsdk4/types.rb', line 44581

def vgpu_placement
  @vgpu_placement
end

#vgpu_placement=(value) ⇒ Object

Sets the value of the vgpu_placement attribute.

Parameters:



44590
44591
44592
# File 'lib/ovirtsdk4/types.rb', line 44590

def vgpu_placement=(value)
  @vgpu_placement = value
end