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

#href, #href=

Constructor Details

- (Host) initialize(opts = {})

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<Device>, 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_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.

  • :nics (Array<Nic>, 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.

  • :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.



33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
# File 'lib/ovirtsdk4/types.rb', line 33683

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.comment = opts[:comment]
  self.cpu = opts[:cpu]
  self.description = opts[:description]
  self.device_passthrough = opts[:device_passthrough]
  self.devices = opts[:devices]
  self.display = opts[:display]
  self.external_host_provider = opts[:external_host_provider]
  self.external_status = opts[:external_status]
  self.hardware_information = opts[:hardware_information]
  self.hooks = opts[:hooks]
  self.hosted_engine = opts[:hosted_engine]
  self.id = opts[:id]
  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.name = opts[:name]
  self.network_attachments = 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.permissions = 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.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]
end

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


32409
32410
32411
# File 'lib/ovirtsdk4/types.rb', line 32409

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


32418
32419
32420
# File 'lib/ovirtsdk4/types.rb', line 32418

def address=(value)
  @address = value
end

- (Array<AffinityLabel>) affinity_labels

Returns the value of the affinity_labels attribute.

Returns:



32427
32428
32429
# File 'lib/ovirtsdk4/types.rb', line 32427

def affinity_labels
  return @affinity_labels
end

- (Object) affinity_labels=(list)

Sets the value of the affinity_labels attribute.

Parameters:



32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
# File 'lib/ovirtsdk4/types.rb', line 32435

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

- (Array<Agent>) agents

Returns the value of the agents attribute.

Returns:



32452
32453
32454
# File 'lib/ovirtsdk4/types.rb', line 32452

def agents
  return @agents
end

- (Object) agents=(list)

Sets the value of the agents attribute.

Parameters:



32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
# File 'lib/ovirtsdk4/types.rb', line 32460

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

- (AutoNumaStatus) auto_numa_status

Returns the value of the auto_numa_status attribute.

Returns:



32477
32478
32479
# File 'lib/ovirtsdk4/types.rb', line 32477

def auto_numa_status
  return @auto_numa_status
end

- (Object) auto_numa_status=(value)

Sets the value of the auto_numa_status attribute.

Parameters:



32486
32487
32488
# File 'lib/ovirtsdk4/types.rb', line 32486

def auto_numa_status=(value)
  @auto_numa_status = value
end

- (Certificate) certificate

Returns the value of the certificate attribute.

Returns:



32495
32496
32497
# File 'lib/ovirtsdk4/types.rb', line 32495

def certificate
  return @certificate
end

- (Object) certificate=(value)

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:



32508
32509
32510
32511
32512
32513
# File 'lib/ovirtsdk4/types.rb', line 32508

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.

Returns:



32520
32521
32522
# File 'lib/ovirtsdk4/types.rb', line 32520

def cluster
  return @cluster
end

- (Object) cluster=(value)

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:



32533
32534
32535
32536
32537
32538
# File 'lib/ovirtsdk4/types.rb', line 32533

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

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


32545
32546
32547
# File 'lib/ovirtsdk4/types.rb', line 32545

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


32554
32555
32556
# File 'lib/ovirtsdk4/types.rb', line 32554

def comment=(value)
  @comment = value
end

- (Cpu) cpu

Returns the value of the cpu attribute.

Returns:



32563
32564
32565
# File 'lib/ovirtsdk4/types.rb', line 32563

def cpu
  return @cpu
end

- (Object) cpu=(value)

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)


32576
32577
32578
32579
32580
32581
# File 'lib/ovirtsdk4/types.rb', line 32576

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

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


32588
32589
32590
# File 'lib/ovirtsdk4/types.rb', line 32588

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


32597
32598
32599
# File 'lib/ovirtsdk4/types.rb', line 32597

def description=(value)
  @description = value
end

- (HostDevicePassthrough) device_passthrough

Returns the value of the device_passthrough attribute.



32606
32607
32608
# File 'lib/ovirtsdk4/types.rb', line 32606

def device_passthrough
  return @device_passthrough
end

- (Object) device_passthrough=(value)

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:



32619
32620
32621
32622
32623
32624
# File 'lib/ovirtsdk4/types.rb', line 32619

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

- (Array<Device>) devices

Returns the value of the devices attribute.

Returns:



32631
32632
32633
# File 'lib/ovirtsdk4/types.rb', line 32631

def devices
  return @devices
end

- (Object) devices=(list)

Sets the value of the devices attribute.

Parameters:



32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
# File 'lib/ovirtsdk4/types.rb', line 32639

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.

Returns:



32656
32657
32658
# File 'lib/ovirtsdk4/types.rb', line 32656

def display
  return @display
end

- (Object) display=(value)

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:



32669
32670
32671
32672
32673
32674
# File 'lib/ovirtsdk4/types.rb', line 32669

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

- (ExternalHostProvider) external_host_provider

Returns the value of the external_host_provider attribute.



32681
32682
32683
# File 'lib/ovirtsdk4/types.rb', line 32681

def external_host_provider
  return @external_host_provider
end

- (Object) external_host_provider=(value)

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:



32694
32695
32696
32697
32698
32699
# File 'lib/ovirtsdk4/types.rb', line 32694

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

- (ExternalStatus) external_status

Returns the value of the external_status attribute.

Returns:



32706
32707
32708
# File 'lib/ovirtsdk4/types.rb', line 32706

def external_status
  return @external_status
end

- (Object) external_status=(value)

Sets the value of the external_status attribute.

Parameters:



32715
32716
32717
# File 'lib/ovirtsdk4/types.rb', line 32715

def external_status=(value)
  @external_status = value
end

- (HardwareInformation) hardware_information

Returns the value of the hardware_information attribute.

Returns:



32724
32725
32726
# File 'lib/ovirtsdk4/types.rb', line 32724

def hardware_information
  return @hardware_information
end

- (Object) hardware_information=(value)

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:



32737
32738
32739
32740
32741
32742
# File 'lib/ovirtsdk4/types.rb', line 32737

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

- (Array<Hook>) hooks

Returns the value of the hooks attribute.

Returns:



32749
32750
32751
# File 'lib/ovirtsdk4/types.rb', line 32749

def hooks
  return @hooks
end

- (Object) hooks=(list)

Sets the value of the hooks attribute.

Parameters:

  • list (Array<Hook>)


32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
# File 'lib/ovirtsdk4/types.rb', line 32757

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

- (HostedEngine) hosted_engine

Returns the value of the hosted_engine attribute.

Returns:



32774
32775
32776
# File 'lib/ovirtsdk4/types.rb', line 32774

def hosted_engine
  return @hosted_engine
end

- (Object) hosted_engine=(value)

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:



32787
32788
32789
32790
32791
32792
# File 'lib/ovirtsdk4/types.rb', line 32787

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


32799
32800
32801
# File 'lib/ovirtsdk4/types.rb', line 32799

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


32808
32809
32810
# File 'lib/ovirtsdk4/types.rb', line 32808

def id=(value)
  @id = value
end

- (IscsiDetails) iscsi

Returns the value of the iscsi attribute.

Returns:



32817
32818
32819
# File 'lib/ovirtsdk4/types.rb', line 32817

def iscsi
  return @iscsi
end

- (Object) iscsi=(value)

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:



32830
32831
32832
32833
32834
32835
# File 'lib/ovirtsdk4/types.rb', line 32830

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

- (Array<KatelloErratum>) katello_errata

Returns the value of the katello_errata attribute.

Returns:



32842
32843
32844
# File 'lib/ovirtsdk4/types.rb', line 32842

def katello_errata
  return @katello_errata
end

- (Object) katello_errata=(list)

Sets the value of the katello_errata attribute.

Parameters:



32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
# File 'lib/ovirtsdk4/types.rb', line 32850

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

- (KdumpStatus) kdump_status

Returns the value of the kdump_status attribute.

Returns:



32867
32868
32869
# File 'lib/ovirtsdk4/types.rb', line 32867

def kdump_status
  return @kdump_status
end

- (Object) kdump_status=(value)

Sets the value of the kdump_status attribute.

Parameters:



32876
32877
32878
# File 'lib/ovirtsdk4/types.rb', line 32876

def kdump_status=(value)
  @kdump_status = value
end

- (Ksm) ksm

Returns the value of the ksm attribute.

Returns:



32885
32886
32887
# File 'lib/ovirtsdk4/types.rb', line 32885

def ksm
  return @ksm
end

- (Object) ksm=(value)

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)


32898
32899
32900
32901
32902
32903
# File 'lib/ovirtsdk4/types.rb', line 32898

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

- (Version) libvirt_version

Returns the value of the libvirt_version attribute.

Returns:



32910
32911
32912
# File 'lib/ovirtsdk4/types.rb', line 32910

def libvirt_version
  return @libvirt_version
end

- (Object) libvirt_version=(value)

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:



32923
32924
32925
32926
32927
32928
# File 'lib/ovirtsdk4/types.rb', line 32923

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

- (Integer) max_scheduling_memory

Returns the value of the max_scheduling_memory attribute.

Returns:

  • (Integer)


32935
32936
32937
# File 'lib/ovirtsdk4/types.rb', line 32935

def max_scheduling_memory
  return @max_scheduling_memory
end

- (Object) max_scheduling_memory=(value)

Sets the value of the max_scheduling_memory attribute.

Parameters:

  • value (Integer)


32944
32945
32946
# File 'lib/ovirtsdk4/types.rb', line 32944

def max_scheduling_memory=(value)
  @max_scheduling_memory = value
end

- (Integer) memory

Returns the value of the memory attribute.

Returns:

  • (Integer)


32953
32954
32955
# File 'lib/ovirtsdk4/types.rb', line 32953

def memory
  return @memory
end

- (Object) memory=(value)

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


32962
32963
32964
# File 'lib/ovirtsdk4/types.rb', line 32962

def memory=(value)
  @memory = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


32971
32972
32973
# File 'lib/ovirtsdk4/types.rb', line 32971

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


32980
32981
32982
# File 'lib/ovirtsdk4/types.rb', line 32980

def name=(value)
  @name = value
end

- (Array<NetworkAttachment>) network_attachments

Returns the value of the network_attachments attribute.

Returns:



32989
32990
32991
# File 'lib/ovirtsdk4/types.rb', line 32989

def network_attachments
  return @network_attachments
end

- (Object) network_attachments=(list)

Sets the value of the network_attachments attribute.

Parameters:



32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
# File 'lib/ovirtsdk4/types.rb', line 32997

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

- (Array<Nic>) nics

Returns the value of the nics attribute.

Returns:



33014
33015
33016
# File 'lib/ovirtsdk4/types.rb', line 33014

def nics
  return @nics
end

- (Object) nics=(list)

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
# File 'lib/ovirtsdk4/types.rb', line 33022

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] = Nic.new(value)
      end
    end
  end
  @nics = list
end

- (Array<NumaNode>) numa_nodes

Returns the value of the numa_nodes attribute.

Returns:



33039
33040
33041
# File 'lib/ovirtsdk4/types.rb', line 33039

def numa_nodes
  return @numa_nodes
end

- (Object) numa_nodes=(list)

Sets the value of the numa_nodes attribute.

Parameters:



33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
# File 'lib/ovirtsdk4/types.rb', line 33047

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

- (Boolean) numa_supported

Returns the value of the numa_supported attribute.

Returns:

  • (Boolean)


33064
33065
33066
# File 'lib/ovirtsdk4/types.rb', line 33064

def numa_supported
  return @numa_supported
end

- (Object) numa_supported=(value)

Sets the value of the numa_supported attribute.

Parameters:

  • value (Boolean)


33073
33074
33075
# File 'lib/ovirtsdk4/types.rb', line 33073

def numa_supported=(value)
  @numa_supported = value
end

- (OperatingSystem) os

Returns the value of the os attribute.

Returns:



33082
33083
33084
# File 'lib/ovirtsdk4/types.rb', line 33082

def os
  return @os
end

- (Object) os=(value)

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:



33095
33096
33097
33098
33099
33100
# File 'lib/ovirtsdk4/types.rb', line 33095

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

- (Boolean) override_iptables

Returns the value of the override_iptables attribute.

Returns:

  • (Boolean)


33107
33108
33109
# File 'lib/ovirtsdk4/types.rb', line 33107

def override_iptables
  return @override_iptables
end

- (Object) override_iptables=(value)

Sets the value of the override_iptables attribute.

Parameters:

  • value (Boolean)


33116
33117
33118
# File 'lib/ovirtsdk4/types.rb', line 33116

def override_iptables=(value)
  @override_iptables = value
end

- (Array<Permission>) permissions

Returns the value of the permissions attribute.

Returns:



33125
33126
33127
# File 'lib/ovirtsdk4/types.rb', line 33125

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
# File 'lib/ovirtsdk4/types.rb', line 33133

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

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


33150
33151
33152
# File 'lib/ovirtsdk4/types.rb', line 33150

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


33159
33160
33161
# File 'lib/ovirtsdk4/types.rb', line 33159

def port=(value)
  @port = value
end

- (PowerManagement) power_management

Returns the value of the power_management attribute.

Returns:



33168
33169
33170
# File 'lib/ovirtsdk4/types.rb', line 33168

def power_management
  return @power_management
end

- (Object) power_management=(value)

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:



33181
33182
33183
33184
33185
33186
# File 'lib/ovirtsdk4/types.rb', line 33181

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

- (HostProtocol) protocol

Returns the value of the protocol attribute.

Returns:



33193
33194
33195
# File 'lib/ovirtsdk4/types.rb', line 33193

def protocol
  return @protocol
end

- (Object) protocol=(value)

Sets the value of the protocol attribute.

Parameters:



33202
33203
33204
# File 'lib/ovirtsdk4/types.rb', line 33202

def protocol=(value)
  @protocol = value
end

- (String) root_password

Returns the value of the root_password attribute.

Returns:

  • (String)


33211
33212
33213
# File 'lib/ovirtsdk4/types.rb', line 33211

def root_password
  return @root_password
end

- (Object) root_password=(value)

Sets the value of the root_password attribute.

Parameters:

  • value (String)


33220
33221
33222
# File 'lib/ovirtsdk4/types.rb', line 33220

def root_password=(value)
  @root_password = value
end

- (SeLinux) se_linux

Returns the value of the se_linux attribute.

Returns:



33229
33230
33231
# File 'lib/ovirtsdk4/types.rb', line 33229

def se_linux
  return @se_linux
end

- (Object) se_linux=(value)

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:



33242
33243
33244
33245
33246
33247
# File 'lib/ovirtsdk4/types.rb', line 33242

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.

Returns:



33254
33255
33256
# File 'lib/ovirtsdk4/types.rb', line 33254

def spm
  return @spm
end

- (Object) spm=(value)

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)


33267
33268
33269
33270
33271
33272
# File 'lib/ovirtsdk4/types.rb', line 33267

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.

Returns:



33279
33280
33281
# File 'lib/ovirtsdk4/types.rb', line 33279

def ssh
  return @ssh
end

- (Object) ssh=(value)

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)


33292
33293
33294
33295
33296
33297
# File 'lib/ovirtsdk4/types.rb', line 33292

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

- (Array<Statistic>) statistics

Returns the value of the statistics attribute.

Returns:



33304
33305
33306
# File 'lib/ovirtsdk4/types.rb', line 33304

def statistics
  return @statistics
end

- (Object) statistics=(list)

Sets the value of the statistics attribute.

Parameters:



33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
# File 'lib/ovirtsdk4/types.rb', line 33312

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

- (HostStatus) status

Returns the value of the status attribute.

Returns:



33329
33330
33331
# File 'lib/ovirtsdk4/types.rb', line 33329

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



33338
33339
33340
# File 'lib/ovirtsdk4/types.rb', line 33338

def status=(value)
  @status = value
end

- (String) status_detail

Returns the value of the status_detail attribute.

Returns:

  • (String)


33347
33348
33349
# File 'lib/ovirtsdk4/types.rb', line 33347

def status_detail
  return @status_detail
end

- (Object) status_detail=(value)

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


33356
33357
33358
# File 'lib/ovirtsdk4/types.rb', line 33356

def status_detail=(value)
  @status_detail = value
end

- (Array<StorageConnectionExtension>) storage_connection_extensions

Returns the value of the storage_connection_extensions attribute.

Returns:



33365
33366
33367
# File 'lib/ovirtsdk4/types.rb', line 33365

def storage_connection_extensions
  return @storage_connection_extensions
end

- (Object) storage_connection_extensions=(list)

Sets the value of the storage_connection_extensions attribute.

Parameters:



33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
# File 'lib/ovirtsdk4/types.rb', line 33373

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

- (Array<HostStorage>) storages

Returns the value of the storages attribute.

Returns:



33390
33391
33392
# File 'lib/ovirtsdk4/types.rb', line 33390

def storages
  return @storages
end

- (Object) storages=(list)

Sets the value of the storages attribute.

Parameters:



33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
# File 'lib/ovirtsdk4/types.rb', line 33398

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

- (VmSummary) summary

Returns the value of the summary attribute.

Returns:



33415
33416
33417
# File 'lib/ovirtsdk4/types.rb', line 33415

def summary
  return @summary
end

- (Object) summary=(value)

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:



33428
33429
33430
33431
33432
33433
# File 'lib/ovirtsdk4/types.rb', line 33428

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

- (Array<Tag>) tags

Returns the value of the tags attribute.

Returns:



33440
33441
33442
# File 'lib/ovirtsdk4/types.rb', line 33440

def tags
  return @tags
end

- (Object) tags=(list)

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
# File 'lib/ovirtsdk4/types.rb', line 33448

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

- (TransparentHugePages) transparent_huge_pages

Returns the value of the transparent_huge_pages attribute.



33465
33466
33467
# File 'lib/ovirtsdk4/types.rb', line 33465

def transparent_huge_pages
  return @transparent_huge_pages
end

- (Object) transparent_huge_pages=(value)

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:



33478
33479
33480
33481
33482
33483
# File 'lib/ovirtsdk4/types.rb', line 33478

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

- (HostType) type

Returns the value of the type attribute.

Returns:



33490
33491
33492
# File 'lib/ovirtsdk4/types.rb', line 33490

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



33499
33500
33501
# File 'lib/ovirtsdk4/types.rb', line 33499

def type=(value)
  @type = value
end

- (Array<UnmanagedNetwork>) unmanaged_networks

Returns the value of the unmanaged_networks attribute.

Returns:



33508
33509
33510
# File 'lib/ovirtsdk4/types.rb', line 33508

def unmanaged_networks
  return @unmanaged_networks
end

- (Object) unmanaged_networks=(list)

Sets the value of the unmanaged_networks attribute.

Parameters:



33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
# File 'lib/ovirtsdk4/types.rb', line 33516

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

- (Boolean) update_available

Returns the value of the update_available attribute.

Returns:

  • (Boolean)


33533
33534
33535
# File 'lib/ovirtsdk4/types.rb', line 33533

def update_available
  return @update_available
end

- (Object) update_available=(value)

Sets the value of the update_available attribute.

Parameters:

  • value (Boolean)


33542
33543
33544
# File 'lib/ovirtsdk4/types.rb', line 33542

def update_available=(value)
  @update_available = value
end

- (Version) version

Returns the value of the version attribute.

Returns:



33551
33552
33553
# File 'lib/ovirtsdk4/types.rb', line 33551

def version
  return @version
end

- (Object) version=(value)

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:



33564
33565
33566
33567
33568
33569
# File 'lib/ovirtsdk4/types.rb', line 33564

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