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

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

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



42482
42483
42484
42485
42486
42487
42488
42489
42490
42491
42492
42493
42494
42495
42496
42497
42498
42499
42500
42501
42502
42503
42504
42505
42506
42507
42508
42509
42510
42511
42512
42513
42514
42515
42516
42517
42518
42519
42520
42521
42522
42523
42524
42525
42526
42527
42528
42529
42530
42531
42532
42533
# File 'lib/ovirtsdk4/types.rb', line 42482

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

#==(other) ⇒ Object

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



42538
42539
42540
42541
42542
42543
42544
42545
42546
42547
42548
42549
42550
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575
42576
42577
42578
42579
42580
42581
42582
42583
42584
42585
42586
42587
42588
42589
# File 'lib/ovirtsdk4/types.rb', line 42538

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 &&
  @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 &&
  @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
end

#addressString

Returns the value of the address attribute.

Returns:

  • (String)


41166
41167
41168
# File 'lib/ovirtsdk4/types.rb', line 41166

def address
  @address
end

#address=(value) ⇒ Object

Sets the value of the address attribute.

Parameters:

  • value (String)


41175
41176
41177
# File 'lib/ovirtsdk4/types.rb', line 41175

def address=(value)
  @address = value
end

#affinity_labelsArray<AffinityLabel>

Returns the value of the affinity_labels attribute.

Returns:



41184
41185
41186
# File 'lib/ovirtsdk4/types.rb', line 41184

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
# File 'lib/ovirtsdk4/types.rb', line 41193

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:



41210
41211
41212
# File 'lib/ovirtsdk4/types.rb', line 41210

def agents
  @agents
end

#agents=(list) ⇒ Object

Sets the value of the agents attribute.

Parameters:



41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
# File 'lib/ovirtsdk4/types.rb', line 41219

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:



41236
41237
41238
# File 'lib/ovirtsdk4/types.rb', line 41236

def auto_numa_status
  @auto_numa_status
end

#auto_numa_status=(value) ⇒ Object

Sets the value of the auto_numa_status attribute.

Parameters:



41245
41246
41247
# File 'lib/ovirtsdk4/types.rb', line 41245

def auto_numa_status=(value)
  @auto_numa_status = value
end

#certificateCertificate

Returns the value of the certificate attribute.

Returns:



41254
41255
41256
# File 'lib/ovirtsdk4/types.rb', line 41254

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:



41267
41268
41269
41270
41271
41272
# File 'lib/ovirtsdk4/types.rb', line 41267

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:



41279
41280
41281
# File 'lib/ovirtsdk4/types.rb', line 41279

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:



41292
41293
41294
41295
41296
41297
# File 'lib/ovirtsdk4/types.rb', line 41292

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)


41304
41305
41306
# File 'lib/ovirtsdk4/types.rb', line 41304

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


41313
41314
41315
# File 'lib/ovirtsdk4/types.rb', line 41313

def comment=(value)
  @comment = value
end

#cpuCpu

Returns the value of the cpu attribute.

Returns:



41322
41323
41324
# File 'lib/ovirtsdk4/types.rb', line 41322

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)


41335
41336
41337
41338
41339
41340
# File 'lib/ovirtsdk4/types.rb', line 41335

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)


41347
41348
41349
# File 'lib/ovirtsdk4/types.rb', line 41347

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


41356
41357
41358
# File 'lib/ovirtsdk4/types.rb', line 41356

def description=(value)
  @description = value
end

#device_passthroughHostDevicePassthrough

Returns the value of the device_passthrough attribute.



41365
41366
41367
# File 'lib/ovirtsdk4/types.rb', line 41365

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:



41378
41379
41380
41381
41382
41383
# File 'lib/ovirtsdk4/types.rb', line 41378

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

#devicesArray<Device>

Returns the value of the devices attribute.

Returns:



41390
41391
41392
# File 'lib/ovirtsdk4/types.rb', line 41390

def devices
  @devices
end

#devices=(list) ⇒ Object

Sets the value of the devices attribute.

Parameters:



41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
# File 'lib/ovirtsdk4/types.rb', line 41399

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

#displayDisplay

Returns the value of the display attribute.

Returns:



41416
41417
41418
# File 'lib/ovirtsdk4/types.rb', line 41416

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:



41429
41430
41431
41432
41433
41434
# File 'lib/ovirtsdk4/types.rb', line 41429

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.



41441
41442
41443
# File 'lib/ovirtsdk4/types.rb', line 41441

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:



41454
41455
41456
41457
41458
41459
# File 'lib/ovirtsdk4/types.rb', line 41454

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.



41466
41467
41468
# File 'lib/ovirtsdk4/types.rb', line 41466

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:



41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
# File 'lib/ovirtsdk4/types.rb', line 41475

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:



41492
41493
41494
# File 'lib/ovirtsdk4/types.rb', line 41492

def external_status
  @external_status
end

#external_status=(value) ⇒ Object

Sets the value of the external_status attribute.

Parameters:



41501
41502
41503
# File 'lib/ovirtsdk4/types.rb', line 41501

def external_status=(value)
  @external_status = value
end

#hardware_informationHardwareInformation

Returns the value of the hardware_information attribute.

Returns:



41510
41511
41512
# File 'lib/ovirtsdk4/types.rb', line 41510

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:



41523
41524
41525
41526
41527
41528
# File 'lib/ovirtsdk4/types.rb', line 41523

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.



42594
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609
42610
42611
42612
42613
42614
42615
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626
42627
42628
42629
42630
42631
42632
42633
42634
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
# File 'lib/ovirtsdk4/types.rb', line 42594

def hash
  super +
  @address.hash +
  @affinity_labels.hash +
  @agents.hash +
  @auto_numa_status.hash +
  @certificate.hash +
  @cluster.hash +
  @cpu.hash +
  @device_passthrough.hash +
  @devices.hash +
  @display.hash +
  @external_host_provider.hash +
  @external_network_provider_configurations.hash +
  @external_status.hash +
  @hardware_information.hash +
  @hooks.hash +
  @hosted_engine.hash +
  @iscsi.hash +
  @katello_errata.hash +
  @kdump_status.hash +
  @ksm.hash +
  @libvirt_version.hash +
  @max_scheduling_memory.hash +
  @memory.hash +
  @network_attachments.hash +
  @nics.hash +
  @numa_nodes.hash +
  @numa_supported.hash +
  @os.hash +
  @override_iptables.hash +
  @permissions.hash +
  @port.hash +
  @power_management.hash +
  @protocol.hash +
  @root_password.hash +
  @se_linux.hash +
  @spm.hash +
  @ssh.hash +
  @statistics.hash +
  @status.hash +
  @status_detail.hash +
  @storage_connection_extensions.hash +
  @storages.hash +
  @summary.hash +
  @tags.hash +
  @transparent_huge_pages.hash +
  @type.hash +
  @unmanaged_networks.hash +
  @update_available.hash +
  @version.hash
end

#hooksArray<Hook>

Returns the value of the hooks attribute.

Returns:



41535
41536
41537
# File 'lib/ovirtsdk4/types.rb', line 41535

def hooks
  @hooks
end

#hooks=(list) ⇒ Object

Sets the value of the hooks attribute.

Parameters:

  • list (Array<Hook>)


41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
# File 'lib/ovirtsdk4/types.rb', line 41544

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:



41561
41562
41563
# File 'lib/ovirtsdk4/types.rb', line 41561

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:



41574
41575
41576
41577
41578
41579
# File 'lib/ovirtsdk4/types.rb', line 41574

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)


41586
41587
41588
# File 'lib/ovirtsdk4/types.rb', line 41586

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


41595
41596
41597
# File 'lib/ovirtsdk4/types.rb', line 41595

def id=(value)
  @id = value
end

#iscsiIscsiDetails

Returns the value of the iscsi attribute.

Returns:



41604
41605
41606
# File 'lib/ovirtsdk4/types.rb', line 41604

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:



41617
41618
41619
41620
41621
41622
# File 'lib/ovirtsdk4/types.rb', line 41617

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:



41629
41630
41631
# File 'lib/ovirtsdk4/types.rb', line 41629

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
# File 'lib/ovirtsdk4/types.rb', line 41638

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:



41655
41656
41657
# File 'lib/ovirtsdk4/types.rb', line 41655

def kdump_status
  @kdump_status
end

#kdump_status=(value) ⇒ Object

Sets the value of the kdump_status attribute.

Parameters:



41664
41665
41666
# File 'lib/ovirtsdk4/types.rb', line 41664

def kdump_status=(value)
  @kdump_status = value
end

#ksmKsm

Returns the value of the ksm attribute.

Returns:



41673
41674
41675
# File 'lib/ovirtsdk4/types.rb', line 41673

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)


41686
41687
41688
41689
41690
41691
# File 'lib/ovirtsdk4/types.rb', line 41686

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:



41698
41699
41700
# File 'lib/ovirtsdk4/types.rb', line 41698

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:



41711
41712
41713
41714
41715
41716
# File 'lib/ovirtsdk4/types.rb', line 41711

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)


41723
41724
41725
# File 'lib/ovirtsdk4/types.rb', line 41723

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)


41732
41733
41734
# File 'lib/ovirtsdk4/types.rb', line 41732

def max_scheduling_memory=(value)
  @max_scheduling_memory = value
end

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)


41741
41742
41743
# File 'lib/ovirtsdk4/types.rb', line 41741

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


41750
41751
41752
# File 'lib/ovirtsdk4/types.rb', line 41750

def memory=(value)
  @memory = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


41759
41760
41761
# File 'lib/ovirtsdk4/types.rb', line 41759

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


41768
41769
41770
# File 'lib/ovirtsdk4/types.rb', line 41768

def name=(value)
  @name = value
end

#network_attachmentsArray<NetworkAttachment>

Returns the value of the network_attachments attribute.

Returns:



41777
41778
41779
# File 'lib/ovirtsdk4/types.rb', line 41777

def network_attachments
  @network_attachments
end

#network_attachments=(list) ⇒ Object

Sets the value of the network_attachments attribute.

Parameters:



41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
# File 'lib/ovirtsdk4/types.rb', line 41786

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

#nicsArray<HostNic>

Returns the value of the nics attribute.

Returns:



41803
41804
41805
# File 'lib/ovirtsdk4/types.rb', line 41803

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:



41812
41813
41814
41815
41816
41817
41818
41819
41820
41821
41822
# File 'lib/ovirtsdk4/types.rb', line 41812

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:



41829
41830
41831
# File 'lib/ovirtsdk4/types.rb', line 41829

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
# File 'lib/ovirtsdk4/types.rb', line 41838

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)


41855
41856
41857
# File 'lib/ovirtsdk4/types.rb', line 41855

def numa_supported
  @numa_supported
end

#numa_supported=(value) ⇒ Object

Sets the value of the numa_supported attribute.

Parameters:

  • value (Boolean)


41864
41865
41866
# File 'lib/ovirtsdk4/types.rb', line 41864

def numa_supported=(value)
  @numa_supported = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



41873
41874
41875
# File 'lib/ovirtsdk4/types.rb', line 41873

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:



41886
41887
41888
41889
41890
41891
# File 'lib/ovirtsdk4/types.rb', line 41886

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)


41898
41899
41900
# File 'lib/ovirtsdk4/types.rb', line 41898

def override_iptables
  @override_iptables
end

#override_iptables=(value) ⇒ Object

Sets the value of the override_iptables attribute.

Parameters:

  • value (Boolean)


41907
41908
41909
# File 'lib/ovirtsdk4/types.rb', line 41907

def override_iptables=(value)
  @override_iptables = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



41916
41917
41918
# File 'lib/ovirtsdk4/types.rb', line 41916

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
# File 'lib/ovirtsdk4/types.rb', line 41925

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)


41942
41943
41944
# File 'lib/ovirtsdk4/types.rb', line 41942

def port
  @port
end

#port=(value) ⇒ Object

Sets the value of the port attribute.

Parameters:

  • value (Integer)


41951
41952
41953
# File 'lib/ovirtsdk4/types.rb', line 41951

def port=(value)
  @port = value
end

#power_managementPowerManagement

Returns the value of the power_management attribute.

Returns:



41960
41961
41962
# File 'lib/ovirtsdk4/types.rb', line 41960

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:



41973
41974
41975
41976
41977
41978
# File 'lib/ovirtsdk4/types.rb', line 41973

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:



41985
41986
41987
# File 'lib/ovirtsdk4/types.rb', line 41985

def protocol
  @protocol
end

#protocol=(value) ⇒ Object

Sets the value of the protocol attribute.

Parameters:



41994
41995
41996
# File 'lib/ovirtsdk4/types.rb', line 41994

def protocol=(value)
  @protocol = value
end

#root_passwordString

Returns the value of the root_password attribute.

Returns:

  • (String)


42003
42004
42005
# File 'lib/ovirtsdk4/types.rb', line 42003

def root_password
  @root_password
end

#root_password=(value) ⇒ Object

Sets the value of the root_password attribute.

Parameters:

  • value (String)


42012
42013
42014
# File 'lib/ovirtsdk4/types.rb', line 42012

def root_password=(value)
  @root_password = value
end

#se_linuxSeLinux

Returns the value of the se_linux attribute.

Returns:



42021
42022
42023
# File 'lib/ovirtsdk4/types.rb', line 42021

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:



42034
42035
42036
42037
42038
42039
# File 'lib/ovirtsdk4/types.rb', line 42034

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:



42046
42047
42048
# File 'lib/ovirtsdk4/types.rb', line 42046

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)


42059
42060
42061
42062
42063
42064
# File 'lib/ovirtsdk4/types.rb', line 42059

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:



42071
42072
42073
# File 'lib/ovirtsdk4/types.rb', line 42071

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)


42084
42085
42086
42087
42088
42089
# File 'lib/ovirtsdk4/types.rb', line 42084

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:



42096
42097
42098
# File 'lib/ovirtsdk4/types.rb', line 42096

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
# File 'lib/ovirtsdk4/types.rb', line 42105

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:



42122
42123
42124
# File 'lib/ovirtsdk4/types.rb', line 42122

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



42131
42132
42133
# File 'lib/ovirtsdk4/types.rb', line 42131

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


42140
42141
42142
# File 'lib/ovirtsdk4/types.rb', line 42140

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


42149
42150
42151
# File 'lib/ovirtsdk4/types.rb', line 42149

def status_detail=(value)
  @status_detail = value
end

#storage_connection_extensionsArray<StorageConnectionExtension>

Returns the value of the storage_connection_extensions attribute.

Returns:



42158
42159
42160
# File 'lib/ovirtsdk4/types.rb', line 42158

def storage_connection_extensions
  @storage_connection_extensions
end

#storage_connection_extensions=(list) ⇒ Object

Sets the value of the storage_connection_extensions attribute.

Parameters:



42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
# File 'lib/ovirtsdk4/types.rb', line 42167

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:



42184
42185
42186
# File 'lib/ovirtsdk4/types.rb', line 42184

def storages
  @storages
end

#storages=(list) ⇒ Object

Sets the value of the storages attribute.

Parameters:



42193
42194
42195
42196
42197
42198
42199
42200
42201
42202
42203
# File 'lib/ovirtsdk4/types.rb', line 42193

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:



42210
42211
42212
# File 'lib/ovirtsdk4/types.rb', line 42210

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:



42223
42224
42225
42226
42227
42228
# File 'lib/ovirtsdk4/types.rb', line 42223

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:



42235
42236
42237
# File 'lib/ovirtsdk4/types.rb', line 42235

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


42244
42245
42246
42247
42248
42249
42250
42251
42252
42253
42254
# File 'lib/ovirtsdk4/types.rb', line 42244

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.



42261
42262
42263
# File 'lib/ovirtsdk4/types.rb', line 42261

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:



42274
42275
42276
42277
42278
42279
# File 'lib/ovirtsdk4/types.rb', line 42274

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:



42286
42287
42288
# File 'lib/ovirtsdk4/types.rb', line 42286

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



42295
42296
42297
# File 'lib/ovirtsdk4/types.rb', line 42295

def type=(value)
  @type = value
end

#unmanaged_networksArray<UnmanagedNetwork>

Returns the value of the unmanaged_networks attribute.

Returns:



42304
42305
42306
# File 'lib/ovirtsdk4/types.rb', line 42304

def unmanaged_networks
  @unmanaged_networks
end

#unmanaged_networks=(list) ⇒ Object

Sets the value of the unmanaged_networks attribute.

Parameters:



42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
# File 'lib/ovirtsdk4/types.rb', line 42313

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)


42330
42331
42332
# File 'lib/ovirtsdk4/types.rb', line 42330

def update_available
  @update_available
end

#update_available=(value) ⇒ Object

Sets the value of the update_available attribute.

Parameters:

  • value (Boolean)


42339
42340
42341
# File 'lib/ovirtsdk4/types.rb', line 42339

def update_available=(value)
  @update_available = value
end

#versionVersion

Returns the value of the version attribute.

Returns:



42348
42349
42350
# File 'lib/ovirtsdk4/types.rb', line 42348

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:



42361
42362
42363
42364
42365
42366
# File 'lib/ovirtsdk4/types.rb', line 42361

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