class OvirtSDK4::Host

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Host} class.

@param opts [Hash] 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.

@option opts [String] :address The value of attribute `address`.

@option opts [Array<AffinityLabel>, Array<Hash>] :affinity_labels The values of attribute `affinity_labels`.

@option opts [Array<Agent>, Array<Hash>] :agents The values of attribute `agents`.

@option opts [AutoNumaStatus] :auto_numa_status The value of attribute `auto_numa_status`.

@option opts [Certificate, Hash] :certificate The value of attribute `certificate`.

@option opts [Cluster, Hash] :cluster The value of attribute `cluster`.

@option opts [String] :comment The value of attribute `comment`.

@option opts [Cpu, Hash] :cpu The value of attribute `cpu`.

@option opts [String] :description The value of attribute `description`.

@option opts [HostDevicePassthrough, Hash] :device_passthrough The value of attribute `device_passthrough`.

@option opts [Array<Device>, Array<Hash>] :devices The values of attribute `devices`.

@option opts [Display, Hash] :display The value of attribute `display`.

@option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.

@option opts [ExternalStatus] :external_status The value of attribute `external_status`.

@option opts [HardwareInformation, Hash] :hardware_information The value of attribute `hardware_information`.

@option opts [Array<Hook>, Array<Hash>] :hooks The values of attribute `hooks`.

@option opts [HostedEngine, Hash] :hosted_engine The value of attribute `hosted_engine`.

@option opts [String] :id The value of attribute `id`.

@option opts [IscsiDetails, Hash] :iscsi The value of attribute `iscsi`.

@option opts [Array<KatelloErratum>, Array<Hash>] :katello_errata The values of attribute `katello_errata`.

@option opts [KdumpStatus] :kdump_status The value of attribute `kdump_status`.

@option opts [Ksm, Hash] :ksm The value of attribute `ksm`.

@option opts [Version, Hash] :libvirt_version The value of attribute `libvirt_version`.

@option opts [Integer] :max_scheduling_memory The value of attribute `max_scheduling_memory`.

@option opts [Integer] :memory The value of attribute `memory`.

@option opts [String] :name The value of attribute `name`.

@option opts [Array<NetworkAttachment>, Array<Hash>] :network_attachments The values of attribute `network_attachments`.

@option opts [Array<Nic>, Array<Hash>] :nics The values of attribute `nics`.

@option opts [Array<NumaNode>, Array<Hash>] :numa_nodes The values of attribute `numa_nodes`.

@option opts [Boolean] :numa_supported The value of attribute `numa_supported`.

@option opts [OperatingSystem, Hash] :os The value of attribute `os`.

@option opts [Boolean] :override_iptables The value of attribute `override_iptables`.

@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.

@option opts [Integer] :port The value of attribute `port`.

@option opts [PowerManagement, Hash] :power_management The value of attribute `power_management`.

@option opts [HostProtocol] :protocol The value of attribute `protocol`.

@option opts [String] :root_password The value of attribute `root_password`.

@option opts [SeLinux, Hash] :se_linux The value of attribute `se_linux`.

@option opts [Spm, Hash] :spm The value of attribute `spm`.

@option opts [Ssh, Hash] :ssh The value of attribute `ssh`.

@option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute `statistics`.

@option opts [HostStatus] :status The value of attribute `status`.

@option opts [String] :status_detail The value of attribute `status_detail`.

@option opts [Array<StorageConnectionExtension>, Array<Hash>] :storage_connection_extensions The values of attribute `storage_connection_extensions`.

@option opts [Array<HostStorage>, Array<Hash>] :storages The values of attribute `storages`.

@option opts [VmSummary, Hash] :summary The value of attribute `summary`.

@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.

@option opts [TransparentHugePages, Hash] :transparent_huge_pages The value of attribute `transparent_huge_pages`.

@option opts [HostType] :type The value of attribute `type`.

@option opts [Array<UnmanagedNetwork>, Array<Hash>] :unmanaged_networks The values of attribute `unmanaged_networks`.

@option opts [Boolean] :update_available The value of attribute `update_available`.

@option opts [Version, Hash] :version The value of attribute `version`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 34171
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

Public Instance Methods

address() click to toggle source

Returns the value of the `address` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 32897
def address
  return @address
end
address=(value) click to toggle source

Sets the value of the `address` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 32906
def address=(value)
  @address = value
end
affinity_labels() click to toggle source

Returns the value of the `affinity_labels` attribute.

@return [Array<AffinityLabel>]

# File lib/ovirtsdk4/types.rb, line 32915
def affinity_labels
  return @affinity_labels
end
affinity_labels=(list) click to toggle source

Sets the value of the `affinity_labels` attribute.

@param list [Array<AffinityLabel>]

# File lib/ovirtsdk4/types.rb, line 32923
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() click to toggle source

Returns the value of the `agents` attribute.

@return [Array<Agent>]

# File lib/ovirtsdk4/types.rb, line 32940
def agents
  return @agents
end
agents=(list) click to toggle source

Sets the value of the `agents` attribute.

@param list [Array<Agent>]

# File lib/ovirtsdk4/types.rb, line 32948
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() click to toggle source

Returns the value of the `auto_numa_status` attribute.

@return [AutoNumaStatus]

# File lib/ovirtsdk4/types.rb, line 32965
def auto_numa_status
  return @auto_numa_status
end
auto_numa_status=(value) click to toggle source

Sets the value of the `auto_numa_status` attribute.

@param value [AutoNumaStatus]

# File lib/ovirtsdk4/types.rb, line 32974
def auto_numa_status=(value)
  @auto_numa_status = value
end
certificate() click to toggle source

Returns the value of the `certificate` attribute.

@return [Certificate]

# File lib/ovirtsdk4/types.rb, line 32983
def certificate
  return @certificate
end
certificate=(value) click to toggle source

Sets the value of the `certificate` attribute.

@param value [Certificate, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 32996
def certificate=(value)
  if value.is_a?(Hash)
    value = Certificate.new(value)
  end
  @certificate = value
end
cluster() click to toggle source

Returns the value of the `cluster` attribute.

@return [Cluster]

# File lib/ovirtsdk4/types.rb, line 33008
def cluster
  return @cluster
end
cluster=(value) click to toggle source

Sets the value of the `cluster` attribute.

@param value [Cluster, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33021
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33033
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33042
def comment=(value)
  @comment = value
end
cpu() click to toggle source

Returns the value of the `cpu` attribute.

@return [Cpu]

# File lib/ovirtsdk4/types.rb, line 33051
def cpu
  return @cpu
end
cpu=(value) click to toggle source

Sets the value of the `cpu` attribute.

@param value [Cpu, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33064
def cpu=(value)
  if value.is_a?(Hash)
    value = Cpu.new(value)
  end
  @cpu = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33076
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33085
def description=(value)
  @description = value
end
device_passthrough() click to toggle source

Returns the value of the `device_passthrough` attribute.

@return [HostDevicePassthrough]

# File lib/ovirtsdk4/types.rb, line 33094
def device_passthrough
  return @device_passthrough
end
device_passthrough=(value) click to toggle source

Sets the value of the `device_passthrough` attribute.

@param value [HostDevicePassthrough, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 33107
def device_passthrough=(value)
  if value.is_a?(Hash)
    value = HostDevicePassthrough.new(value)
  end
  @device_passthrough = value
end
devices() click to toggle source

Returns the value of the `devices` attribute.

@return [Array<Device>]

# File lib/ovirtsdk4/types.rb, line 33119
def devices
  return @devices
end
devices=(list) click to toggle source

Sets the value of the `devices` attribute.

@param list [Array<Device>]

# File lib/ovirtsdk4/types.rb, line 33127
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() click to toggle source

Returns the value of the `display` attribute.

@return [Display]

# File lib/ovirtsdk4/types.rb, line 33144
def display
  return @display
end
display=(value) click to toggle source

Sets the value of the `display` attribute.

@param value [Display, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33157
def display=(value)
  if value.is_a?(Hash)
    value = Display.new(value)
  end
  @display = value
end
external_host_provider() click to toggle source

Returns the value of the `external_host_provider` attribute.

@return [ExternalHostProvider]

# File lib/ovirtsdk4/types.rb, line 33169
def external_host_provider
  return @external_host_provider
end
external_host_provider=(value) click to toggle source

Sets the value of the `external_host_provider` attribute.

@param value [ExternalHostProvider, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33182
def external_host_provider=(value)
  if value.is_a?(Hash)
    value = ExternalHostProvider.new(value)
  end
  @external_host_provider = value
end
external_status() click to toggle source

Returns the value of the `external_status` attribute.

@return [ExternalStatus]

# File lib/ovirtsdk4/types.rb, line 33194
def external_status
  return @external_status
end
external_status=(value) click to toggle source

Sets the value of the `external_status` attribute.

@param value [ExternalStatus]

# File lib/ovirtsdk4/types.rb, line 33203
def external_status=(value)
  @external_status = value
end
hardware_information() click to toggle source

Returns the value of the `hardware_information` attribute.

@return [HardwareInformation]

# File lib/ovirtsdk4/types.rb, line 33212
def hardware_information
  return @hardware_information
end
hardware_information=(value) click to toggle source

Sets the value of the `hardware_information` attribute.

@param value [HardwareInformation, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 33225
def hardware_information=(value)
  if value.is_a?(Hash)
    value = HardwareInformation.new(value)
  end
  @hardware_information = value
end
hooks() click to toggle source

Returns the value of the `hooks` attribute.

@return [Array<Hook>]

# File lib/ovirtsdk4/types.rb, line 33237
def hooks
  return @hooks
end
hooks=(list) click to toggle source

Sets the value of the `hooks` attribute.

@param list [Array<Hook>]

# File lib/ovirtsdk4/types.rb, line 33245
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() click to toggle source

Returns the value of the `hosted_engine` attribute.

@return [HostedEngine]

# File lib/ovirtsdk4/types.rb, line 33262
def hosted_engine
  return @hosted_engine
end
hosted_engine=(value) click to toggle source

Sets the value of the `hosted_engine` attribute.

@param value [HostedEngine, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 33275
def hosted_engine=(value)
  if value.is_a?(Hash)
    value = HostedEngine.new(value)
  end
  @hosted_engine = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33287
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33296
def id=(value)
  @id = value
end
iscsi() click to toggle source

Returns the value of the `iscsi` attribute.

@return [IscsiDetails]

# File lib/ovirtsdk4/types.rb, line 33305
def iscsi
  return @iscsi
end
iscsi=(value) click to toggle source

Sets the value of the `iscsi` attribute.

@param value [IscsiDetails, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33318
def iscsi=(value)
  if value.is_a?(Hash)
    value = IscsiDetails.new(value)
  end
  @iscsi = value
end
katello_errata() click to toggle source

Returns the value of the `katello_errata` attribute.

@return [Array<KatelloErratum>]

# File lib/ovirtsdk4/types.rb, line 33330
def katello_errata
  return @katello_errata
end
katello_errata=(list) click to toggle source

Sets the value of the `katello_errata` attribute.

@param list [Array<KatelloErratum>]

# File lib/ovirtsdk4/types.rb, line 33338
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() click to toggle source

Returns the value of the `kdump_status` attribute.

@return [KdumpStatus]

# File lib/ovirtsdk4/types.rb, line 33355
def kdump_status
  return @kdump_status
end
kdump_status=(value) click to toggle source

Sets the value of the `kdump_status` attribute.

@param value [KdumpStatus]

# File lib/ovirtsdk4/types.rb, line 33364
def kdump_status=(value)
  @kdump_status = value
end
ksm() click to toggle source

Returns the value of the `ksm` attribute.

@return [Ksm]

# File lib/ovirtsdk4/types.rb, line 33373
def ksm
  return @ksm
end
ksm=(value) click to toggle source

Sets the value of the `ksm` attribute.

@param value [Ksm, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33386
def ksm=(value)
  if value.is_a?(Hash)
    value = Ksm.new(value)
  end
  @ksm = value
end
libvirt_version() click to toggle source

Returns the value of the `libvirt_version` attribute.

@return [Version]

# File lib/ovirtsdk4/types.rb, line 33398
def libvirt_version
  return @libvirt_version
end
libvirt_version=(value) click to toggle source

Sets the value of the `libvirt_version` attribute.

@param value [Version, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33411
def libvirt_version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @libvirt_version = value
end
max_scheduling_memory() click to toggle source

Returns the value of the `max_scheduling_memory` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 33423
def max_scheduling_memory
  return @max_scheduling_memory
end
max_scheduling_memory=(value) click to toggle source

Sets the value of the `max_scheduling_memory` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 33432
def max_scheduling_memory=(value)
  @max_scheduling_memory = value
end
memory() click to toggle source

Returns the value of the `memory` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 33441
def memory
  return @memory
end
memory=(value) click to toggle source

Sets the value of the `memory` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 33450
def memory=(value)
  @memory = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33459
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33468
def name=(value)
  @name = value
end
network_attachments() click to toggle source

Returns the value of the `network_attachments` attribute.

@return [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 33477
def network_attachments
  return @network_attachments
end
network_attachments=(list) click to toggle source

Sets the value of the `network_attachments` attribute.

@param list [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 33485
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
nics() click to toggle source

Returns the value of the `nics` attribute.

@return [Array<Nic>]

# File lib/ovirtsdk4/types.rb, line 33502
def nics
  return @nics
end
nics=(list) click to toggle source

Sets the value of the `nics` attribute.

@param list [Array<Nic>]

# File lib/ovirtsdk4/types.rb, line 33510
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
numa_nodes() click to toggle source

Returns the value of the `numa_nodes` attribute.

@return [Array<NumaNode>]

# File lib/ovirtsdk4/types.rb, line 33527
def numa_nodes
  return @numa_nodes
end
numa_nodes=(list) click to toggle source

Sets the value of the `numa_nodes` attribute.

@param list [Array<NumaNode>]

# File lib/ovirtsdk4/types.rb, line 33535
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() click to toggle source

Returns the value of the `numa_supported` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 33552
def numa_supported
  return @numa_supported
end
numa_supported=(value) click to toggle source

Sets the value of the `numa_supported` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 33561
def numa_supported=(value)
  @numa_supported = value
end
os() click to toggle source

Returns the value of the `os` attribute.

@return [OperatingSystem]

# File lib/ovirtsdk4/types.rb, line 33570
def os
  return @os
end
os=(value) click to toggle source

Sets the value of the `os` attribute.

@param value [OperatingSystem, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33583
def os=(value)
  if value.is_a?(Hash)
    value = OperatingSystem.new(value)
  end
  @os = value
end
override_iptables() click to toggle source

Returns the value of the `override_iptables` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 33595
def override_iptables
  return @override_iptables
end
override_iptables=(value) click to toggle source

Sets the value of the `override_iptables` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 33604
def override_iptables=(value)
  @override_iptables = value
end
permissions() click to toggle source

Returns the value of the `permissions` attribute.

@return [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 33613
def permissions
  return @permissions
end
permissions=(list) click to toggle source

Sets the value of the `permissions` attribute.

@param list [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 33621
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
port() click to toggle source

Returns the value of the `port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 33638
def port
  return @port
end
port=(value) click to toggle source

Sets the value of the `port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 33647
def port=(value)
  @port = value
end
power_management() click to toggle source

Returns the value of the `power_management` attribute.

@return [PowerManagement]

# File lib/ovirtsdk4/types.rb, line 33656
def power_management
  return @power_management
end
power_management=(value) click to toggle source

Sets the value of the `power_management` attribute.

@param value [PowerManagement, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33669
def power_management=(value)
  if value.is_a?(Hash)
    value = PowerManagement.new(value)
  end
  @power_management = value
end
protocol() click to toggle source

Returns the value of the `protocol` attribute.

@return [HostProtocol]

# File lib/ovirtsdk4/types.rb, line 33681
def protocol
  return @protocol
end
protocol=(value) click to toggle source

Sets the value of the `protocol` attribute.

@param value [HostProtocol]

# File lib/ovirtsdk4/types.rb, line 33690
def protocol=(value)
  @protocol = value
end
root_password() click to toggle source

Returns the value of the `root_password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33699
def root_password
  return @root_password
end
root_password=(value) click to toggle source

Sets the value of the `root_password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33708
def root_password=(value)
  @root_password = value
end
se_linux() click to toggle source

Returns the value of the `se_linux` attribute.

@return [SeLinux]

# File lib/ovirtsdk4/types.rb, line 33717
def se_linux
  return @se_linux
end
se_linux=(value) click to toggle source

Sets the value of the `se_linux` attribute.

@param value [SeLinux, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33730
def se_linux=(value)
  if value.is_a?(Hash)
    value = SeLinux.new(value)
  end
  @se_linux = value
end
spm() click to toggle source

Returns the value of the `spm` attribute.

@return [Spm]

# File lib/ovirtsdk4/types.rb, line 33742
def spm
  return @spm
end
spm=(value) click to toggle source

Sets the value of the `spm` attribute.

@param value [Spm, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33755
def spm=(value)
  if value.is_a?(Hash)
    value = Spm.new(value)
  end
  @spm = value
end
ssh() click to toggle source

Returns the value of the `ssh` attribute.

@return [Ssh]

# File lib/ovirtsdk4/types.rb, line 33767
def ssh
  return @ssh
end
ssh=(value) click to toggle source

Sets the value of the `ssh` attribute.

@param value [Ssh, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33780
def ssh=(value)
  if value.is_a?(Hash)
    value = Ssh.new(value)
  end
  @ssh = value
end
statistics() click to toggle source

Returns the value of the `statistics` attribute.

@return [Array<Statistic>]

# File lib/ovirtsdk4/types.rb, line 33792
def statistics
  return @statistics
end
statistics=(list) click to toggle source

Sets the value of the `statistics` attribute.

@param list [Array<Statistic>]

# File lib/ovirtsdk4/types.rb, line 33800
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() click to toggle source

Returns the value of the `status` attribute.

@return [HostStatus]

# File lib/ovirtsdk4/types.rb, line 33817
def status
  return @status
end
status=(value) click to toggle source

Sets the value of the `status` attribute.

@param value [HostStatus]

# File lib/ovirtsdk4/types.rb, line 33826
def status=(value)
  @status = value
end
status_detail() click to toggle source

Returns the value of the `status_detail` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 33835
def status_detail
  return @status_detail
end
status_detail=(value) click to toggle source

Sets the value of the `status_detail` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 33844
def status_detail=(value)
  @status_detail = value
end
storage_connection_extensions() click to toggle source

Returns the value of the `storage_connection_extensions` attribute.

@return [Array<StorageConnectionExtension>]

# File lib/ovirtsdk4/types.rb, line 33853
def storage_connection_extensions
  return @storage_connection_extensions
end
storage_connection_extensions=(list) click to toggle source

Sets the value of the `storage_connection_extensions` attribute.

@param list [Array<StorageConnectionExtension>]

# File lib/ovirtsdk4/types.rb, line 33861
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() click to toggle source

Returns the value of the `storages` attribute.

@return [Array<HostStorage>]

# File lib/ovirtsdk4/types.rb, line 33878
def storages
  return @storages
end
storages=(list) click to toggle source

Sets the value of the `storages` attribute.

@param list [Array<HostStorage>]

# File lib/ovirtsdk4/types.rb, line 33886
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() click to toggle source

Returns the value of the `summary` attribute.

@return [VmSummary]

# File lib/ovirtsdk4/types.rb, line 33903
def summary
  return @summary
end
summary=(value) click to toggle source

Sets the value of the `summary` attribute.

@param value [VmSummary, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33916
def summary=(value)
  if value.is_a?(Hash)
    value = VmSummary.new(value)
  end
  @summary = value
end
tags() click to toggle source

Returns the value of the `tags` attribute.

@return [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 33928
def tags
  return @tags
end
tags=(list) click to toggle source

Sets the value of the `tags` attribute.

@param list [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 33936
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_pages() click to toggle source

Returns the value of the `transparent_huge_pages` attribute.

@return [TransparentHugePages]

# File lib/ovirtsdk4/types.rb, line 33953
def transparent_huge_pages
  return @transparent_huge_pages
end
transparent_huge_pages=(value) click to toggle source

Sets the value of the `transparent_huge_pages` attribute.

@param value [TransparentHugePages, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33966
def transparent_huge_pages=(value)
  if value.is_a?(Hash)
    value = TransparentHugePages.new(value)
  end
  @transparent_huge_pages = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [HostType]

# File lib/ovirtsdk4/types.rb, line 33978
def type
  return @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [HostType]

# File lib/ovirtsdk4/types.rb, line 33987
def type=(value)
  @type = value
end
unmanaged_networks() click to toggle source

Returns the value of the `unmanaged_networks` attribute.

@return [Array<UnmanagedNetwork>]

# File lib/ovirtsdk4/types.rb, line 33996
def unmanaged_networks
  return @unmanaged_networks
end
unmanaged_networks=(list) click to toggle source

Sets the value of the `unmanaged_networks` attribute.

@param list [Array<UnmanagedNetwork>]

# File lib/ovirtsdk4/types.rb, line 34004
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() click to toggle source

Returns the value of the `update_available` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 34021
def update_available
  return @update_available
end
update_available=(value) click to toggle source

Sets the value of the `update_available` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34030
def update_available=(value)
  @update_available = value
end
version() click to toggle source

Returns the value of the `version` attribute.

@return [Version]

# File lib/ovirtsdk4/types.rb, line 34039
def version
  return @version
end
version=(value) click to toggle source

Sets the value of the `version` attribute.

@param value [Version, Hash]

The `value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 34052
def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end