Class: OvirtSDK4::Vm

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

Direct Known Subclasses

Snapshot

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Vm

Creates a new instance of the OvirtSDK4::Vm 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):

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

    The values of attribute affinity_labels.

  • :applications (Array<Application>, Array<Hash>)

    The values of attribute applications.

  • :auto_pinning_policy (AutoPinningPolicy)

    The value of attribute auto_pinning_policy.

  • :bios (Bios, Hash)

    The value of attribute bios.

  • :cdroms (Array<Cdrom>, Array<Hash>)

    The values of attribute cdroms.

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :console (Console, Hash)

    The value of attribute console.

  • :cpu (Cpu, Hash)

    The value of attribute cpu.

  • :cpu_pinning_policy (CpuPinningPolicy)

    The value of attribute cpu_pinning_policy.

  • :cpu_profile (CpuProfile, Hash)

    The value of attribute cpu_profile.

  • :cpu_shares (Integer)

    The value of attribute cpu_shares.

  • :creation_time (DateTime)

    The value of attribute creation_time.

  • :custom_compatibility_version (Version, Hash)

    The value of attribute custom_compatibility_version.

  • :custom_cpu_model (String)

    The value of attribute custom_cpu_model.

  • :custom_emulated_machine (String)

    The value of attribute custom_emulated_machine.

  • :custom_properties (Array<CustomProperty>, Array<Hash>)

    The values of attribute custom_properties.

  • :delete_protected (Boolean)

    The value of attribute delete_protected.

  • :description (String)

    The value of attribute description.

  • :disk_attachments (Array<DiskAttachment>, Array<Hash>)

    The values of attribute disk_attachments.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :dynamic_cpu (DynamicCpu, Hash)

    The value of attribute dynamic_cpu.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :floppies (Array<Floppy>, Array<Hash>)

    The values of attribute floppies.

  • :fqdn (String)

    The value of attribute fqdn.

  • :graphics_consoles (Array<GraphicsConsole>, Array<Hash>)

    The values of attribute graphics_consoles.

  • :guest_operating_system (GuestOperatingSystem, Hash)

    The value of attribute guest_operating_system.

  • :guest_time_zone (TimeZone, Hash)

    The value of attribute guest_time_zone.

  • :has_illegal_images (Boolean)

    The value of attribute has_illegal_images.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :host (Host, Hash)

    The value of attribute host.

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

    The values of attribute host_devices.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :io (Io, Hash)

    The value of attribute io.

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

    The values of attribute katello_errata.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

  • :mediated_devices (Array<VmMediatedDevice>, Array<Hash>)

    The values of attribute mediated_devices.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :multi_queues_enabled (Boolean)

    The value of attribute multi_queues_enabled.

  • :name (String)

    The value of attribute name.

  • :next_run_configuration_exists (Boolean)

    The value of attribute next_run_configuration_exists.

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

    The values of attribute nics.

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

    The values of attribute numa_nodes.

  • :numa_tune_mode (NumaTuneMode)

    The value of attribute numa_tune_mode.

  • :origin (String)

    The value of attribute origin.

  • :original_template (Template, Hash)

    The value of attribute original_template.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

  • :payloads (Array<Payload>, Array<Hash>)

    The values of attribute payloads.

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

    The values of attribute permissions.

  • :placement_policy (VmPlacementPolicy, Hash)

    The value of attribute placement_policy.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :reported_devices (Array<ReportedDevice>, Array<Hash>)

    The values of attribute reported_devices.

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :run_once (Boolean)

    The value of attribute run_once.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :sessions (Array<Session>, Array<Hash>)

    The values of attribute sessions.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

  • :snapshots (Array<Snapshot>, Array<Hash>)

    The values of attribute snapshots.

  • :soundcard_enabled (Boolean)

    The value of attribute soundcard_enabled.

  • :sso (Sso, Hash)

    The value of attribute sso.

  • :start_paused (Boolean)

    The value of attribute start_paused.

  • :start_time (DateTime)

    The value of attribute start_time.

  • :stateless (Boolean)

    The value of attribute stateless.

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

    The values of attribute statistics.

  • :status (VmStatus)

    The value of attribute status.

  • :status_detail (String)

    The value of attribute status_detail.

  • :stop_reason (String)

    The value of attribute stop_reason.

  • :stop_time (DateTime)

    The value of attribute stop_time.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_error_resume_behaviour (VmStorageErrorResumeBehaviour)

    The value of attribute storage_error_resume_behaviour.

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

    The values of attribute tags.

  • :template (Template, Hash)

    The value of attribute template.

  • :time_zone (TimeZone, Hash)

    The value of attribute time_zone.

  • :tpm_enabled (Boolean)

    The value of attribute tpm_enabled.

  • :tunnel_migration (Boolean)

    The value of attribute tunnel_migration.

  • :type (VmType)

    The value of attribute type.

  • :usb (Usb, Hash)

    The value of attribute usb.

  • :use_latest_template_version (Boolean)

    The value of attribute use_latest_template_version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :virtio_scsi_multi_queues (Integer)

    The value of attribute virtio_scsi_multi_queues.

  • :virtio_scsi_multi_queues_enabled (Boolean)

    The value of attribute virtio_scsi_multi_queues_enabled.

  • :vm_pool (VmPool, Hash)

    The value of attribute vm_pool.

  • :watchdogs (Array<Watchdog>, Array<Hash>)

    The values of attribute watchdogs.



53350
53351
53352
53353
53354
53355
53356
53357
53358
53359
53360
53361
53362
53363
53364
53365
53366
53367
53368
53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
53380
53381
53382
53383
53384
53385
53386
53387
53388
53389
53390
53391
# File 'lib/ovirtsdk4/types.rb', line 53350

def initialize(opts = {})
  super(opts)
  self.affinity_labels = opts[:affinity_labels]
  self.applications = opts[:applications]
  self.cdroms = opts[:cdroms]
  self.disk_attachments = opts[:disk_attachments]
  self.dynamic_cpu = opts[:dynamic_cpu]
  self.external_host_provider = opts[:external_host_provider]
  self.floppies = opts[:floppies]
  self.fqdn = opts[:fqdn]
  self.graphics_consoles = opts[:graphics_consoles]
  self.guest_operating_system = opts[:guest_operating_system]
  self.guest_time_zone = opts[:guest_time_zone]
  self.has_illegal_images = opts[:has_illegal_images]
  self.host = opts[:host]
  self.host_devices = opts[:host_devices]
  self.instance_type = opts[:instance_type]
  self.katello_errata = opts[:katello_errata]
  self.mediated_devices = opts[:mediated_devices]
  self.next_run_configuration_exists = opts[:next_run_configuration_exists]
  self.nics = opts[:nics]
  self.numa_nodes = opts[:numa_nodes]
  self.numa_tune_mode = opts[:numa_tune_mode]
  self.original_template = opts[:original_template]
  self.payloads = opts[:payloads]
  self.permissions = opts[:permissions]
  self.reported_devices = opts[:reported_devices]
  self.run_once = opts[:run_once]
  self.sessions = opts[:sessions]
  self.snapshots = opts[:snapshots]
  self.start_time = opts[:start_time]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.status_detail = opts[:status_detail]
  self.stop_reason = opts[:stop_reason]
  self.stop_time = opts[:stop_time]
  self.tags = opts[:tags]
  self.template = opts[:template]
  self.use_latest_template_version = opts[:use_latest_template_version]
  self.vm_pool = opts[:vm_pool]
  self.watchdogs = opts[:watchdogs]
end

Instance Method Details

#==(other) ⇒ Object

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



53396
53397
53398
53399
53400
53401
53402
53403
53404
53405
53406
53407
53408
53409
53410
53411
53412
53413
53414
53415
53416
53417
53418
53419
53420
53421
53422
53423
53424
53425
53426
53427
53428
53429
53430
53431
53432
53433
53434
53435
53436
53437
# File 'lib/ovirtsdk4/types.rb', line 53396

def ==(other)
  super &&
  @affinity_labels == other.affinity_labels &&
  @applications == other.applications &&
  @cdroms == other.cdroms &&
  @disk_attachments == other.disk_attachments &&
  @dynamic_cpu == other.dynamic_cpu &&
  @external_host_provider == other.external_host_provider &&
  @floppies == other.floppies &&
  @fqdn == other.fqdn &&
  @graphics_consoles == other.graphics_consoles &&
  @guest_operating_system == other.guest_operating_system &&
  @guest_time_zone == other.guest_time_zone &&
  @has_illegal_images == other.has_illegal_images &&
  @host == other.host &&
  @host_devices == other.host_devices &&
  @instance_type == other.instance_type &&
  @katello_errata == other.katello_errata &&
  @mediated_devices == other.mediated_devices &&
  @next_run_configuration_exists == other.next_run_configuration_exists &&
  @nics == other.nics &&
  @numa_nodes == other.numa_nodes &&
  @numa_tune_mode == other.numa_tune_mode &&
  @original_template == other.original_template &&
  @payloads == other.payloads &&
  @permissions == other.permissions &&
  @reported_devices == other.reported_devices &&
  @run_once == other.run_once &&
  @sessions == other.sessions &&
  @snapshots == other.snapshots &&
  @start_time == other.start_time &&
  @statistics == other.statistics &&
  @status == other.status &&
  @status_detail == other.status_detail &&
  @stop_reason == other.stop_reason &&
  @stop_time == other.stop_time &&
  @tags == other.tags &&
  @template == other.template &&
  @use_latest_template_version == other.use_latest_template_version &&
  @vm_pool == other.vm_pool &&
  @watchdogs == other.watchdogs
end

#affinity_labelsArray<AffinityLabel>

Returns the value of the affinity_labels attribute.

Returns:



51142
51143
51144
# File 'lib/ovirtsdk4/types.rb', line 51142

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



51151
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
# File 'lib/ovirtsdk4/types.rb', line 51151

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

#applicationsArray<Application>

Returns the value of the applications attribute.

Returns:



51168
51169
51170
# File 'lib/ovirtsdk4/types.rb', line 51168

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:



51177
51178
51179
51180
51181
51182
51183
51184
51185
51186
51187
# File 'lib/ovirtsdk4/types.rb', line 51177

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

#auto_pinning_policyAutoPinningPolicy

Returns the value of the auto_pinning_policy attribute.

Returns:



51194
51195
51196
# File 'lib/ovirtsdk4/types.rb', line 51194

def auto_pinning_policy
  @auto_pinning_policy
end

#auto_pinning_policy=(value) ⇒ Object

Sets the value of the auto_pinning_policy attribute.

Parameters:



51203
51204
51205
# File 'lib/ovirtsdk4/types.rb', line 51203

def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end

#biosBios

Returns the value of the bios attribute.

Returns:



51212
51213
51214
# File 'lib/ovirtsdk4/types.rb', line 51212

def bios
  @bios
end

#bios=(value) ⇒ Object

Sets the value of the bios attribute.

The value parameter can be an instance of Bios 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 (Bios, Hash)


51225
51226
51227
51228
51229
51230
# File 'lib/ovirtsdk4/types.rb', line 51225

def bios=(value)
  if value.is_a?(Hash)
    value = Bios.new(value)
  end
  @bios = value
end

#cdromsArray<Cdrom>

Returns the value of the cdroms attribute.

Returns:



51237
51238
51239
# File 'lib/ovirtsdk4/types.rb', line 51237

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



51246
51247
51248
51249
51250
51251
51252
51253
51254
51255
51256
# File 'lib/ovirtsdk4/types.rb', line 51246

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

#clusterCluster

Returns the value of the cluster attribute.

Returns:



51263
51264
51265
# File 'lib/ovirtsdk4/types.rb', line 51263

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:



51276
51277
51278
51279
51280
51281
# File 'lib/ovirtsdk4/types.rb', line 51276

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)


51288
51289
51290
# File 'lib/ovirtsdk4/types.rb', line 51288

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


51297
51298
51299
# File 'lib/ovirtsdk4/types.rb', line 51297

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



51306
51307
51308
# File 'lib/ovirtsdk4/types.rb', line 51306

def console
  @console
end

#console=(value) ⇒ Object

Sets the value of the console attribute.

The value parameter can be an instance of Console 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:



51319
51320
51321
51322
51323
51324
# File 'lib/ovirtsdk4/types.rb', line 51319

def console=(value)
  if value.is_a?(Hash)
    value = Console.new(value)
  end
  @console = value
end

#cpuCpu

Returns the value of the cpu attribute.

Returns:



51331
51332
51333
# File 'lib/ovirtsdk4/types.rb', line 51331

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)


51344
51345
51346
51347
51348
51349
# File 'lib/ovirtsdk4/types.rb', line 51344

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

#cpu_pinning_policyCpuPinningPolicy

Returns the value of the cpu_pinning_policy attribute.

Returns:



51356
51357
51358
# File 'lib/ovirtsdk4/types.rb', line 51356

def cpu_pinning_policy
  @cpu_pinning_policy
end

#cpu_pinning_policy=(value) ⇒ Object

Sets the value of the cpu_pinning_policy attribute.

Parameters:



51365
51366
51367
# File 'lib/ovirtsdk4/types.rb', line 51365

def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.

Returns:



51374
51375
51376
# File 'lib/ovirtsdk4/types.rb', line 51374

def cpu_profile
  @cpu_profile
end

#cpu_profile=(value) ⇒ Object

Sets the value of the cpu_profile attribute.

The value parameter can be an instance of CpuProfile 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:



51387
51388
51389
51390
51391
51392
# File 'lib/ovirtsdk4/types.rb', line 51387

def cpu_profile=(value)
  if value.is_a?(Hash)
    value = CpuProfile.new(value)
  end
  @cpu_profile = value
end

#cpu_sharesInteger

Returns the value of the cpu_shares attribute.

Returns:

  • (Integer)


51399
51400
51401
# File 'lib/ovirtsdk4/types.rb', line 51399

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


51408
51409
51410
# File 'lib/ovirtsdk4/types.rb', line 51408

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


51417
51418
51419
# File 'lib/ovirtsdk4/types.rb', line 51417

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


51426
51427
51428
# File 'lib/ovirtsdk4/types.rb', line 51426

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



51435
51436
51437
# File 'lib/ovirtsdk4/types.rb', line 51435

def custom_compatibility_version
  @custom_compatibility_version
end

#custom_compatibility_version=(value) ⇒ Object

Sets the value of the custom_compatibility_version attribute.

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.

Parameters:



51448
51449
51450
51451
51452
51453
# File 'lib/ovirtsdk4/types.rb', line 51448

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

#custom_cpu_modelString

Returns the value of the custom_cpu_model attribute.

Returns:

  • (String)


51460
51461
51462
# File 'lib/ovirtsdk4/types.rb', line 51460

def custom_cpu_model
  @custom_cpu_model
end

#custom_cpu_model=(value) ⇒ Object

Sets the value of the custom_cpu_model attribute.

Parameters:

  • value (String)


51469
51470
51471
# File 'lib/ovirtsdk4/types.rb', line 51469

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


51478
51479
51480
# File 'lib/ovirtsdk4/types.rb', line 51478

def custom_emulated_machine
  @custom_emulated_machine
end

#custom_emulated_machine=(value) ⇒ Object

Sets the value of the custom_emulated_machine attribute.

Parameters:

  • value (String)


51487
51488
51489
# File 'lib/ovirtsdk4/types.rb', line 51487

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



51496
51497
51498
# File 'lib/ovirtsdk4/types.rb', line 51496

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



51505
51506
51507
51508
51509
51510
51511
51512
51513
51514
51515
# File 'lib/ovirtsdk4/types.rb', line 51505

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

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


51522
51523
51524
# File 'lib/ovirtsdk4/types.rb', line 51522

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


51531
51532
51533
# File 'lib/ovirtsdk4/types.rb', line 51531

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


51540
51541
51542
# File 'lib/ovirtsdk4/types.rb', line 51540

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


51549
51550
51551
# File 'lib/ovirtsdk4/types.rb', line 51549

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



51558
51559
51560
# File 'lib/ovirtsdk4/types.rb', line 51558

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



51567
51568
51569
51570
51571
51572
51573
51574
51575
51576
51577
# File 'lib/ovirtsdk4/types.rb', line 51567

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

#displayDisplay

Returns the value of the display attribute.

Returns:



51584
51585
51586
# File 'lib/ovirtsdk4/types.rb', line 51584

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:



51597
51598
51599
51600
51601
51602
# File 'lib/ovirtsdk4/types.rb', line 51597

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

#domainDomain

Returns the value of the domain attribute.

Returns:



51609
51610
51611
# File 'lib/ovirtsdk4/types.rb', line 51609

def domain
  @domain
end

#domain=(value) ⇒ Object

Sets the value of the domain attribute.

The value parameter can be an instance of Domain 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:



51622
51623
51624
51625
51626
51627
# File 'lib/ovirtsdk4/types.rb', line 51622

def domain=(value)
  if value.is_a?(Hash)
    value = Domain.new(value)
  end
  @domain = value
end

#dynamic_cpuDynamicCpu

Returns the value of the dynamic_cpu attribute.

Returns:



51634
51635
51636
# File 'lib/ovirtsdk4/types.rb', line 51634

def dynamic_cpu
  @dynamic_cpu
end

#dynamic_cpu=(value) ⇒ Object

Sets the value of the dynamic_cpu attribute.

The value parameter can be an instance of DynamicCpu 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:



51647
51648
51649
51650
51651
51652
# File 'lib/ovirtsdk4/types.rb', line 51647

def dynamic_cpu=(value)
  if value.is_a?(Hash)
    value = DynamicCpu.new(value)
  end
  @dynamic_cpu = value
end

#external_host_providerExternalHostProvider

Returns the value of the external_host_provider attribute.



51659
51660
51661
# File 'lib/ovirtsdk4/types.rb', line 51659

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:



51672
51673
51674
51675
51676
51677
# File 'lib/ovirtsdk4/types.rb', line 51672

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

#floppiesArray<Floppy>

Returns the value of the floppies attribute.

Returns:



51684
51685
51686
# File 'lib/ovirtsdk4/types.rb', line 51684

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:



51693
51694
51695
51696
51697
51698
51699
51700
51701
51702
51703
# File 'lib/ovirtsdk4/types.rb', line 51693

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

#fqdnString

Returns the value of the fqdn attribute.

Returns:

  • (String)


51710
51711
51712
# File 'lib/ovirtsdk4/types.rb', line 51710

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)


51719
51720
51721
# File 'lib/ovirtsdk4/types.rb', line 51719

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



51728
51729
51730
# File 'lib/ovirtsdk4/types.rb', line 51728

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
# File 'lib/ovirtsdk4/types.rb', line 51737

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

#guest_operating_systemGuestOperatingSystem

Returns the value of the guest_operating_system attribute.



51754
51755
51756
# File 'lib/ovirtsdk4/types.rb', line 51754

def guest_operating_system
  @guest_operating_system
end

#guest_operating_system=(value) ⇒ Object

Sets the value of the guest_operating_system attribute.

The value parameter can be an instance of GuestOperatingSystem 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:



51767
51768
51769
51770
51771
51772
# File 'lib/ovirtsdk4/types.rb', line 51767

def guest_operating_system=(value)
  if value.is_a?(Hash)
    value = GuestOperatingSystem.new(value)
  end
  @guest_operating_system = value
end

#guest_time_zoneTimeZone

Returns the value of the guest_time_zone attribute.

Returns:



51779
51780
51781
# File 'lib/ovirtsdk4/types.rb', line 51779

def guest_time_zone
  @guest_time_zone
end

#guest_time_zone=(value) ⇒ Object

Sets the value of the guest_time_zone attribute.

The value parameter can be an instance of TimeZone 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:



51792
51793
51794
51795
51796
51797
# File 'lib/ovirtsdk4/types.rb', line 51792

def guest_time_zone=(value)
  if value.is_a?(Hash)
    value = TimeZone.new(value)
  end
  @guest_time_zone = value
end

#has_illegal_imagesBoolean

Returns the value of the has_illegal_images attribute.

Returns:

  • (Boolean)


51804
51805
51806
# File 'lib/ovirtsdk4/types.rb', line 51804

def has_illegal_images
  @has_illegal_images
end

#has_illegal_images=(value) ⇒ Object

Sets the value of the has_illegal_images attribute.

Parameters:

  • value (Boolean)


51813
51814
51815
# File 'lib/ovirtsdk4/types.rb', line 51813

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.



53442
53443
53444
53445
53446
53447
53448
53449
53450
53451
53452
53453
53454
53455
53456
53457
53458
53459
53460
53461
53462
53463
53464
53465
53466
53467
53468
53469
53470
53471
53472
53473
53474
53475
53476
53477
53478
53479
53480
53481
53482
53483
# File 'lib/ovirtsdk4/types.rb', line 53442

def hash
  super +
  @affinity_labels.hash +
  @applications.hash +
  @cdroms.hash +
  @disk_attachments.hash +
  @dynamic_cpu.hash +
  @external_host_provider.hash +
  @floppies.hash +
  @fqdn.hash +
  @graphics_consoles.hash +
  @guest_operating_system.hash +
  @guest_time_zone.hash +
  @has_illegal_images.hash +
  @host.hash +
  @host_devices.hash +
  @instance_type.hash +
  @katello_errata.hash +
  @mediated_devices.hash +
  @next_run_configuration_exists.hash +
  @nics.hash +
  @numa_nodes.hash +
  @numa_tune_mode.hash +
  @original_template.hash +
  @payloads.hash +
  @permissions.hash +
  @reported_devices.hash +
  @run_once.hash +
  @sessions.hash +
  @snapshots.hash +
  @start_time.hash +
  @statistics.hash +
  @status.hash +
  @status_detail.hash +
  @stop_reason.hash +
  @stop_time.hash +
  @tags.hash +
  @template.hash +
  @use_latest_template_version.hash +
  @vm_pool.hash +
  @watchdogs.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



51822
51823
51824
# File 'lib/ovirtsdk4/types.rb', line 51822

def high_availability
  @high_availability
end

#high_availability=(value) ⇒ Object

Sets the value of the high_availability attribute.

The value parameter can be an instance of HighAvailability 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:



51835
51836
51837
51838
51839
51840
# File 'lib/ovirtsdk4/types.rb', line 51835

def high_availability=(value)
  if value.is_a?(Hash)
    value = HighAvailability.new(value)
  end
  @high_availability = value
end

#hostHost

Returns the value of the host attribute.

Returns:



51847
51848
51849
# File 'lib/ovirtsdk4/types.rb', line 51847

def host
  @host
end

#host=(value) ⇒ Object

Sets the value of the host attribute.

The value parameter can be an instance of Host 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 (Host, Hash)


51860
51861
51862
51863
51864
51865
# File 'lib/ovirtsdk4/types.rb', line 51860

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

#host_devicesArray<HostDevice>

Returns the value of the host_devices attribute.

Returns:



51872
51873
51874
# File 'lib/ovirtsdk4/types.rb', line 51872

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:



51881
51882
51883
51884
51885
51886
51887
51888
51889
51890
51891
# File 'lib/ovirtsdk4/types.rb', line 51881

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


51898
51899
51900
# File 'lib/ovirtsdk4/types.rb', line 51898

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


51907
51908
51909
# File 'lib/ovirtsdk4/types.rb', line 51907

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



51916
51917
51918
# File 'lib/ovirtsdk4/types.rb', line 51916

def initialization
  @initialization
end

#initialization=(value) ⇒ Object

Sets the value of the initialization attribute.

The value parameter can be an instance of Initialization 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:



51929
51930
51931
51932
51933
51934
# File 'lib/ovirtsdk4/types.rb', line 51929

def initialization=(value)
  if value.is_a?(Hash)
    value = Initialization.new(value)
  end
  @initialization = value
end

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



51941
51942
51943
# File 'lib/ovirtsdk4/types.rb', line 51941

def instance_type
  @instance_type
end

#instance_type=(value) ⇒ Object

Sets the value of the instance_type attribute.

The value parameter can be an instance of InstanceType 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:



51954
51955
51956
51957
51958
51959
# File 'lib/ovirtsdk4/types.rb', line 51954

def instance_type=(value)
  if value.is_a?(Hash)
    value = InstanceType.new(value)
  end
  @instance_type = value
end

#ioIo

Returns the value of the io attribute.

Returns:



51966
51967
51968
# File 'lib/ovirtsdk4/types.rb', line 51966

def io
  @io
end

#io=(value) ⇒ Object

Sets the value of the io attribute.

The value parameter can be an instance of Io 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 (Io, Hash)


51979
51980
51981
51982
51983
51984
# File 'lib/ovirtsdk4/types.rb', line 51979

def io=(value)
  if value.is_a?(Hash)
    value = Io.new(value)
  end
  @io = value
end

#katello_errataArray<KatelloErratum>

Returns the value of the katello_errata attribute.

Returns:



51991
51992
51993
# File 'lib/ovirtsdk4/types.rb', line 51991

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



52000
52001
52002
52003
52004
52005
52006
52007
52008
52009
52010
# File 'lib/ovirtsdk4/types.rb', line 52000

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

#large_iconIcon

Returns the value of the large_icon attribute.

Returns:



52017
52018
52019
# File 'lib/ovirtsdk4/types.rb', line 52017

def large_icon
  @large_icon
end

#large_icon=(value) ⇒ Object

Sets the value of the large_icon attribute.

The value parameter can be an instance of Icon 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 (Icon, Hash)


52030
52031
52032
52033
52034
52035
# File 'lib/ovirtsdk4/types.rb', line 52030

def large_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @large_icon = value
end

#leaseStorageDomainLease

Returns the value of the lease attribute.

Returns:



52042
52043
52044
# File 'lib/ovirtsdk4/types.rb', line 52042

def lease
  @lease
end

#lease=(value) ⇒ Object

Sets the value of the lease attribute.

The value parameter can be an instance of StorageDomainLease 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:



52055
52056
52057
52058
52059
52060
# File 'lib/ovirtsdk4/types.rb', line 52055

def lease=(value)
  if value.is_a?(Hash)
    value = StorageDomainLease.new(value)
  end
  @lease = value
end

#mediated_devicesArray<VmMediatedDevice>

Returns the value of the mediated_devices attribute.

Returns:



52067
52068
52069
# File 'lib/ovirtsdk4/types.rb', line 52067

def mediated_devices
  @mediated_devices
end

#mediated_devices=(list) ⇒ Object

Sets the value of the mediated_devices attribute.

Parameters:



52076
52077
52078
52079
52080
52081
52082
52083
52084
52085
52086
# File 'lib/ovirtsdk4/types.rb', line 52076

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

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)


52093
52094
52095
# File 'lib/ovirtsdk4/types.rb', line 52093

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


52102
52103
52104
# File 'lib/ovirtsdk4/types.rb', line 52102

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



52111
52112
52113
# File 'lib/ovirtsdk4/types.rb', line 52111

def memory_policy
  @memory_policy
end

#memory_policy=(value) ⇒ Object

Sets the value of the memory_policy attribute.

The value parameter can be an instance of MemoryPolicy 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:



52124
52125
52126
52127
52128
52129
# File 'lib/ovirtsdk4/types.rb', line 52124

def memory_policy=(value)
  if value.is_a?(Hash)
    value = MemoryPolicy.new(value)
  end
  @memory_policy = value
end

#migrationMigrationOptions

Returns the value of the migration attribute.

Returns:



52136
52137
52138
# File 'lib/ovirtsdk4/types.rb', line 52136

def migration
  @migration
end

#migration=(value) ⇒ Object

Sets the value of the migration attribute.

The value parameter can be an instance of MigrationOptions 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:



52149
52150
52151
52152
52153
52154
# File 'lib/ovirtsdk4/types.rb', line 52149

def migration=(value)
  if value.is_a?(Hash)
    value = MigrationOptions.new(value)
  end
  @migration = value
end

#migration_downtimeInteger

Returns the value of the migration_downtime attribute.

Returns:

  • (Integer)


52161
52162
52163
# File 'lib/ovirtsdk4/types.rb', line 52161

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


52170
52171
52172
# File 'lib/ovirtsdk4/types.rb', line 52170

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


52179
52180
52181
# File 'lib/ovirtsdk4/types.rb', line 52179

def multi_queues_enabled
  @multi_queues_enabled
end

#multi_queues_enabled=(value) ⇒ Object

Sets the value of the multi_queues_enabled attribute.

Parameters:

  • value (Boolean)


52188
52189
52190
# File 'lib/ovirtsdk4/types.rb', line 52188

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


52197
52198
52199
# File 'lib/ovirtsdk4/types.rb', line 52197

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


52206
52207
52208
# File 'lib/ovirtsdk4/types.rb', line 52206

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)


52215
52216
52217
# File 'lib/ovirtsdk4/types.rb', line 52215

def next_run_configuration_exists
  @next_run_configuration_exists
end

#next_run_configuration_exists=(value) ⇒ Object

Sets the value of the next_run_configuration_exists attribute.

Parameters:

  • value (Boolean)


52224
52225
52226
# File 'lib/ovirtsdk4/types.rb', line 52224

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



52233
52234
52235
# File 'lib/ovirtsdk4/types.rb', line 52233

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


52242
52243
52244
52245
52246
52247
52248
52249
52250
52251
52252
# File 'lib/ovirtsdk4/types.rb', line 52242

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

Returns the value of the numa_nodes attribute.

Returns:



52259
52260
52261
# File 'lib/ovirtsdk4/types.rb', line 52259

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



52268
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
# File 'lib/ovirtsdk4/types.rb', line 52268

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_tune_modeNumaTuneMode

Returns the value of the numa_tune_mode attribute.

Returns:



52285
52286
52287
# File 'lib/ovirtsdk4/types.rb', line 52285

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:



52294
52295
52296
# File 'lib/ovirtsdk4/types.rb', line 52294

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


52303
52304
52305
# File 'lib/ovirtsdk4/types.rb', line 52303

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


52312
52313
52314
# File 'lib/ovirtsdk4/types.rb', line 52312

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:



52321
52322
52323
# File 'lib/ovirtsdk4/types.rb', line 52321

def original_template
  @original_template
end

#original_template=(value) ⇒ Object

Sets the value of the original_template attribute.

The value parameter can be an instance of Template 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:



52334
52335
52336
52337
52338
52339
# File 'lib/ovirtsdk4/types.rb', line 52334

def original_template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @original_template = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



52346
52347
52348
# File 'lib/ovirtsdk4/types.rb', line 52346

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:



52359
52360
52361
52362
52363
52364
# File 'lib/ovirtsdk4/types.rb', line 52359

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

#payloadsArray<Payload>

Returns the value of the payloads attribute.

Returns:



52371
52372
52373
# File 'lib/ovirtsdk4/types.rb', line 52371

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:



52380
52381
52382
52383
52384
52385
52386
52387
52388
52389
52390
# File 'lib/ovirtsdk4/types.rb', line 52380

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

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



52397
52398
52399
# File 'lib/ovirtsdk4/types.rb', line 52397

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



52406
52407
52408
52409
52410
52411
52412
52413
52414
52415
52416
# File 'lib/ovirtsdk4/types.rb', line 52406

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

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:



52423
52424
52425
# File 'lib/ovirtsdk4/types.rb', line 52423

def placement_policy
  @placement_policy
end

#placement_policy=(value) ⇒ Object

Sets the value of the placement_policy attribute.

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



52436
52437
52438
52439
52440
52441
# File 'lib/ovirtsdk4/types.rb', line 52436

def placement_policy=(value)
  if value.is_a?(Hash)
    value = VmPlacementPolicy.new(value)
  end
  @placement_policy = value
end

#quotaQuota

Returns the value of the quota attribute.

Returns:



52448
52449
52450
# File 'lib/ovirtsdk4/types.rb', line 52448

def quota
  @quota
end

#quota=(value) ⇒ Object

Sets the value of the quota attribute.

The value parameter can be an instance of Quota 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:



52461
52462
52463
52464
52465
52466
# File 'lib/ovirtsdk4/types.rb', line 52461

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

#reported_devicesArray<ReportedDevice>

Returns the value of the reported_devices attribute.

Returns:



52473
52474
52475
# File 'lib/ovirtsdk4/types.rb', line 52473

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:



52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
# File 'lib/ovirtsdk4/types.rb', line 52482

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

#rng_deviceRngDevice

Returns the value of the rng_device attribute.

Returns:



52499
52500
52501
# File 'lib/ovirtsdk4/types.rb', line 52499

def rng_device
  @rng_device
end

#rng_device=(value) ⇒ Object

Sets the value of the rng_device attribute.

The value parameter can be an instance of RngDevice 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:



52512
52513
52514
52515
52516
52517
# File 'lib/ovirtsdk4/types.rb', line 52512

def rng_device=(value)
  if value.is_a?(Hash)
    value = RngDevice.new(value)
  end
  @rng_device = value
end

#run_onceBoolean

Returns the value of the run_once attribute.

Returns:

  • (Boolean)


52524
52525
52526
# File 'lib/ovirtsdk4/types.rb', line 52524

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)


52533
52534
52535
# File 'lib/ovirtsdk4/types.rb', line 52533

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



52542
52543
52544
# File 'lib/ovirtsdk4/types.rb', line 52542

def serial_number
  @serial_number
end

#serial_number=(value) ⇒ Object

Sets the value of the serial_number attribute.

The value parameter can be an instance of SerialNumber 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:



52555
52556
52557
52558
52559
52560
# File 'lib/ovirtsdk4/types.rb', line 52555

def serial_number=(value)
  if value.is_a?(Hash)
    value = SerialNumber.new(value)
  end
  @serial_number = value
end

#sessionsArray<Session>

Returns the value of the sessions attribute.

Returns:



52567
52568
52569
# File 'lib/ovirtsdk4/types.rb', line 52567

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:



52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
# File 'lib/ovirtsdk4/types.rb', line 52576

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

#small_iconIcon

Returns the value of the small_icon attribute.

Returns:



52593
52594
52595
# File 'lib/ovirtsdk4/types.rb', line 52593

def small_icon
  @small_icon
end

#small_icon=(value) ⇒ Object

Sets the value of the small_icon attribute.

The value parameter can be an instance of Icon 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 (Icon, Hash)


52606
52607
52608
52609
52610
52611
# File 'lib/ovirtsdk4/types.rb', line 52606

def small_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @small_icon = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:



52618
52619
52620
# File 'lib/ovirtsdk4/types.rb', line 52618

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:



52627
52628
52629
52630
52631
52632
52633
52634
52635
52636
52637
# File 'lib/ovirtsdk4/types.rb', line 52627

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

#soundcard_enabledBoolean

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


52644
52645
52646
# File 'lib/ovirtsdk4/types.rb', line 52644

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


52653
52654
52655
# File 'lib/ovirtsdk4/types.rb', line 52653

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



52662
52663
52664
# File 'lib/ovirtsdk4/types.rb', line 52662

def sso
  @sso
end

#sso=(value) ⇒ Object

Sets the value of the sso attribute.

The value parameter can be an instance of Sso 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 (Sso, Hash)


52675
52676
52677
52678
52679
52680
# File 'lib/ovirtsdk4/types.rb', line 52675

def sso=(value)
  if value.is_a?(Hash)
    value = Sso.new(value)
  end
  @sso = value
end

#start_pausedBoolean

Returns the value of the start_paused attribute.

Returns:

  • (Boolean)


52687
52688
52689
# File 'lib/ovirtsdk4/types.rb', line 52687

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


52696
52697
52698
# File 'lib/ovirtsdk4/types.rb', line 52696

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)


52705
52706
52707
# File 'lib/ovirtsdk4/types.rb', line 52705

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)


52714
52715
52716
# File 'lib/ovirtsdk4/types.rb', line 52714

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


52723
52724
52725
# File 'lib/ovirtsdk4/types.rb', line 52723

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


52732
52733
52734
# File 'lib/ovirtsdk4/types.rb', line 52732

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



52741
52742
52743
# File 'lib/ovirtsdk4/types.rb', line 52741

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
# File 'lib/ovirtsdk4/types.rb', line 52750

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

#statusVmStatus

Returns the value of the status attribute.

Returns:



52767
52768
52769
# File 'lib/ovirtsdk4/types.rb', line 52767

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



52776
52777
52778
# File 'lib/ovirtsdk4/types.rb', line 52776

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


52785
52786
52787
# File 'lib/ovirtsdk4/types.rb', line 52785

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


52794
52795
52796
# File 'lib/ovirtsdk4/types.rb', line 52794

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)


52803
52804
52805
# File 'lib/ovirtsdk4/types.rb', line 52803

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)


52812
52813
52814
# File 'lib/ovirtsdk4/types.rb', line 52812

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)


52821
52822
52823
# File 'lib/ovirtsdk4/types.rb', line 52821

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)


52830
52831
52832
# File 'lib/ovirtsdk4/types.rb', line 52830

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



52839
52840
52841
# File 'lib/ovirtsdk4/types.rb', line 52839

def storage_domain
  @storage_domain
end

#storage_domain=(value) ⇒ Object

Sets the value of the storage_domain attribute.

The value parameter can be an instance of StorageDomain 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:



52852
52853
52854
52855
52856
52857
# File 'lib/ovirtsdk4/types.rb', line 52852

def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end

#storage_error_resume_behaviourVmStorageErrorResumeBehaviour

Returns the value of the storage_error_resume_behaviour attribute.



52864
52865
52866
# File 'lib/ovirtsdk4/types.rb', line 52864

def storage_error_resume_behaviour
  @storage_error_resume_behaviour
end

#storage_error_resume_behaviour=(value) ⇒ Object

Sets the value of the storage_error_resume_behaviour attribute.

Parameters:



52873
52874
52875
# File 'lib/ovirtsdk4/types.rb', line 52873

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



52882
52883
52884
# File 'lib/ovirtsdk4/types.rb', line 52882

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


52891
52892
52893
52894
52895
52896
52897
52898
52899
52900
52901
# File 'lib/ovirtsdk4/types.rb', line 52891

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

#templateTemplate

Returns the value of the template attribute.

Returns:



52908
52909
52910
# File 'lib/ovirtsdk4/types.rb', line 52908

def template
  @template
end

#template=(value) ⇒ Object

Sets the value of the template attribute.

The value parameter can be an instance of Template 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:



52921
52922
52923
52924
52925
52926
# File 'lib/ovirtsdk4/types.rb', line 52921

def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

#time_zoneTimeZone

Returns the value of the time_zone attribute.

Returns:



52933
52934
52935
# File 'lib/ovirtsdk4/types.rb', line 52933

def time_zone
  @time_zone
end

#time_zone=(value) ⇒ Object

Sets the value of the time_zone attribute.

The value parameter can be an instance of TimeZone 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:



52946
52947
52948
52949
52950
52951
# File 'lib/ovirtsdk4/types.rb', line 52946

def time_zone=(value)
  if value.is_a?(Hash)
    value = TimeZone.new(value)
  end
  @time_zone = value
end

#tpm_enabledBoolean

Returns the value of the tpm_enabled attribute.

Returns:

  • (Boolean)


52958
52959
52960
# File 'lib/ovirtsdk4/types.rb', line 52958

def tpm_enabled
  @tpm_enabled
end

#tpm_enabled=(value) ⇒ Object

Sets the value of the tpm_enabled attribute.

Parameters:

  • value (Boolean)


52967
52968
52969
# File 'lib/ovirtsdk4/types.rb', line 52967

def tpm_enabled=(value)
  @tpm_enabled = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


52976
52977
52978
# File 'lib/ovirtsdk4/types.rb', line 52976

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


52985
52986
52987
# File 'lib/ovirtsdk4/types.rb', line 52985

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



52994
52995
52996
# File 'lib/ovirtsdk4/types.rb', line 52994

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



53003
53004
53005
# File 'lib/ovirtsdk4/types.rb', line 53003

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



53012
53013
53014
# File 'lib/ovirtsdk4/types.rb', line 53012

def usb
  @usb
end

#usb=(value) ⇒ Object

Sets the value of the usb attribute.

The value parameter can be an instance of Usb 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 (Usb, Hash)


53025
53026
53027
53028
53029
53030
# File 'lib/ovirtsdk4/types.rb', line 53025

def usb=(value)
  if value.is_a?(Hash)
    value = Usb.new(value)
  end
  @usb = value
end

#use_latest_template_versionBoolean

Returns the value of the use_latest_template_version attribute.

Returns:

  • (Boolean)


53037
53038
53039
# File 'lib/ovirtsdk4/types.rb', line 53037

def use_latest_template_version
  @use_latest_template_version
end

#use_latest_template_version=(value) ⇒ Object

Sets the value of the use_latest_template_version attribute.

Parameters:

  • value (Boolean)


53046
53047
53048
# File 'lib/ovirtsdk4/types.rb', line 53046

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



53055
53056
53057
# File 'lib/ovirtsdk4/types.rb', line 53055

def virtio_scsi
  @virtio_scsi
end

#virtio_scsi=(value) ⇒ Object

Sets the value of the virtio_scsi attribute.

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



53068
53069
53070
53071
53072
53073
# File 'lib/ovirtsdk4/types.rb', line 53068

def virtio_scsi=(value)
  if value.is_a?(Hash)
    value = VirtioScsi.new(value)
  end
  @virtio_scsi = value
end

#virtio_scsi_multi_queuesInteger

Returns the value of the virtio_scsi_multi_queues attribute.

Returns:

  • (Integer)


53080
53081
53082
# File 'lib/ovirtsdk4/types.rb', line 53080

def virtio_scsi_multi_queues
  @virtio_scsi_multi_queues
end

#virtio_scsi_multi_queues=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues attribute.

Parameters:

  • value (Integer)


53089
53090
53091
# File 'lib/ovirtsdk4/types.rb', line 53089

def virtio_scsi_multi_queues=(value)
  @virtio_scsi_multi_queues = value
end

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.

Returns:

  • (Boolean)


53098
53099
53100
# File 'lib/ovirtsdk4/types.rb', line 53098

def virtio_scsi_multi_queues_enabled
  @virtio_scsi_multi_queues_enabled
end

#virtio_scsi_multi_queues_enabled=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues_enabled attribute.

Parameters:

  • value (Boolean)


53107
53108
53109
# File 'lib/ovirtsdk4/types.rb', line 53107

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vm_poolVmPool

Returns the value of the vm_pool attribute.

Returns:



53116
53117
53118
# File 'lib/ovirtsdk4/types.rb', line 53116

def vm_pool
  @vm_pool
end

#vm_pool=(value) ⇒ Object

Sets the value of the vm_pool attribute.

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



53129
53130
53131
53132
53133
53134
# File 'lib/ovirtsdk4/types.rb', line 53129

def vm_pool=(value)
  if value.is_a?(Hash)
    value = VmPool.new(value)
  end
  @vm_pool = value
end

#watchdogsArray<Watchdog>

Returns the value of the watchdogs attribute.

Returns:



53141
53142
53143
# File 'lib/ovirtsdk4/types.rb', line 53141

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



53150
53151
53152
53153
53154
53155
53156
53157
53158
53159
53160
# File 'lib/ovirtsdk4/types.rb', line 53150

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