Class: OvirtSDK4::InstanceType

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

Instance Method Summary collapse

Methods inherited from Template

#==, #hash

Methods inherited from VmBase

#==, #hash

Methods inherited from Identified

#==, #hash

Methods inherited from Struct

#==, #hash

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ InstanceType

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

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

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

    The values of attribute graphics_consoles.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :io (Io, Hash)

    The value of attribute io.

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

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

    The values of attribute nics.

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

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

  • :stateless (Boolean)

    The value of attribute stateless.

  • :status (TemplateStatus)

    The value of attribute status.

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

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

  • :version (TemplateVersion, Hash)

    The value of attribute 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 (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.



56667
56668
56669
# File 'lib/ovirtsdk4/types.rb', line 56667

def initialize(opts = {})
  super(opts)
end

Instance Method Details

#auto_pinning_policyAutoPinningPolicy

Returns the value of the auto_pinning_policy attribute.

Returns:



55156
55157
55158
# File 'lib/ovirtsdk4/types.rb', line 55156

def auto_pinning_policy
  @auto_pinning_policy
end

#auto_pinning_policy=(value) ⇒ Object

Sets the value of the auto_pinning_policy attribute.

Parameters:



55165
55166
55167
# File 'lib/ovirtsdk4/types.rb', line 55165

def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end

#biosBios

Returns the value of the bios attribute.

Returns:



55174
55175
55176
# File 'lib/ovirtsdk4/types.rb', line 55174

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)


55187
55188
55189
55190
55191
55192
# File 'lib/ovirtsdk4/types.rb', line 55187

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:



55199
55200
55201
# File 'lib/ovirtsdk4/types.rb', line 55199

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



55208
55209
55210
55211
55212
55213
55214
55215
55216
55217
55218
# File 'lib/ovirtsdk4/types.rb', line 55208

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:



55225
55226
55227
# File 'lib/ovirtsdk4/types.rb', line 55225

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:



55238
55239
55240
55241
55242
55243
# File 'lib/ovirtsdk4/types.rb', line 55238

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)


55250
55251
55252
# File 'lib/ovirtsdk4/types.rb', line 55250

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


55259
55260
55261
# File 'lib/ovirtsdk4/types.rb', line 55259

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



55268
55269
55270
# File 'lib/ovirtsdk4/types.rb', line 55268

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:



55281
55282
55283
55284
55285
55286
# File 'lib/ovirtsdk4/types.rb', line 55281

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:



55293
55294
55295
# File 'lib/ovirtsdk4/types.rb', line 55293

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)


55306
55307
55308
55309
55310
55311
# File 'lib/ovirtsdk4/types.rb', line 55306

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:



55318
55319
55320
# File 'lib/ovirtsdk4/types.rb', line 55318

def cpu_pinning_policy
  @cpu_pinning_policy
end

#cpu_pinning_policy=(value) ⇒ Object

Sets the value of the cpu_pinning_policy attribute.

Parameters:



55327
55328
55329
# File 'lib/ovirtsdk4/types.rb', line 55327

def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.

Returns:



55336
55337
55338
# File 'lib/ovirtsdk4/types.rb', line 55336

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:



55349
55350
55351
55352
55353
55354
# File 'lib/ovirtsdk4/types.rb', line 55349

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)


55361
55362
55363
# File 'lib/ovirtsdk4/types.rb', line 55361

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


55370
55371
55372
# File 'lib/ovirtsdk4/types.rb', line 55370

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


55379
55380
55381
# File 'lib/ovirtsdk4/types.rb', line 55379

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


55388
55389
55390
# File 'lib/ovirtsdk4/types.rb', line 55388

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



55397
55398
55399
# File 'lib/ovirtsdk4/types.rb', line 55397

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



55410
55411
55412
55413
55414
55415
# File 'lib/ovirtsdk4/types.rb', line 55410

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)


55422
55423
55424
# File 'lib/ovirtsdk4/types.rb', line 55422

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)


55431
55432
55433
# File 'lib/ovirtsdk4/types.rb', line 55431

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


55440
55441
55442
# File 'lib/ovirtsdk4/types.rb', line 55440

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)


55449
55450
55451
# File 'lib/ovirtsdk4/types.rb', line 55449

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



55458
55459
55460
# File 'lib/ovirtsdk4/types.rb', line 55458

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



55467
55468
55469
55470
55471
55472
55473
55474
55475
55476
55477
# File 'lib/ovirtsdk4/types.rb', line 55467

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)


55484
55485
55486
# File 'lib/ovirtsdk4/types.rb', line 55484

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


55493
55494
55495
# File 'lib/ovirtsdk4/types.rb', line 55493

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


55502
55503
55504
# File 'lib/ovirtsdk4/types.rb', line 55502

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


55511
55512
55513
# File 'lib/ovirtsdk4/types.rb', line 55511

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



55520
55521
55522
# File 'lib/ovirtsdk4/types.rb', line 55520

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



55529
55530
55531
55532
55533
55534
55535
55536
55537
55538
55539
# File 'lib/ovirtsdk4/types.rb', line 55529

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:



55546
55547
55548
# File 'lib/ovirtsdk4/types.rb', line 55546

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:



55559
55560
55561
55562
55563
55564
# File 'lib/ovirtsdk4/types.rb', line 55559

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:



55571
55572
55573
# File 'lib/ovirtsdk4/types.rb', line 55571

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:



55584
55585
55586
55587
55588
55589
# File 'lib/ovirtsdk4/types.rb', line 55584

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

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



55596
55597
55598
# File 'lib/ovirtsdk4/types.rb', line 55596

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



55605
55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
# File 'lib/ovirtsdk4/types.rb', line 55605

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

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



55622
55623
55624
# File 'lib/ovirtsdk4/types.rb', line 55622

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:



55635
55636
55637
55638
55639
55640
# File 'lib/ovirtsdk4/types.rb', line 55635

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


55647
55648
55649
# File 'lib/ovirtsdk4/types.rb', line 55647

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


55656
55657
55658
# File 'lib/ovirtsdk4/types.rb', line 55656

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



55665
55666
55667
# File 'lib/ovirtsdk4/types.rb', line 55665

def initialization
  @initialization
end

#initialization=(value) ⇒ Object

Sets the value of the initialization attribute.

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



55678
55679
55680
55681
55682
55683
# File 'lib/ovirtsdk4/types.rb', line 55678

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

#ioIo

Returns the value of the io attribute.

Returns:



55690
55691
55692
# File 'lib/ovirtsdk4/types.rb', line 55690

def io
  @io
end

#io=(value) ⇒ Object

Sets the value of the io attribute.

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


55703
55704
55705
55706
55707
55708
# File 'lib/ovirtsdk4/types.rb', line 55703

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

#large_iconIcon

Returns the value of the large_icon attribute.

Returns:



55715
55716
55717
# File 'lib/ovirtsdk4/types.rb', line 55715

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 OvirtSDK4::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)


55728
55729
55730
55731
55732
55733
# File 'lib/ovirtsdk4/types.rb', line 55728

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:



55740
55741
55742
# File 'lib/ovirtsdk4/types.rb', line 55740

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:



55753
55754
55755
55756
55757
55758
# File 'lib/ovirtsdk4/types.rb', line 55753

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:



55765
55766
55767
# File 'lib/ovirtsdk4/types.rb', line 55765

def mediated_devices
  @mediated_devices
end

#mediated_devices=(list) ⇒ Object

Sets the value of the mediated_devices attribute.

Parameters:



55774
55775
55776
55777
55778
55779
55780
55781
55782
55783
55784
# File 'lib/ovirtsdk4/types.rb', line 55774

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)


55791
55792
55793
# File 'lib/ovirtsdk4/types.rb', line 55791

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


55800
55801
55802
# File 'lib/ovirtsdk4/types.rb', line 55800

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



55809
55810
55811
# File 'lib/ovirtsdk4/types.rb', line 55809

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:



55822
55823
55824
55825
55826
55827
# File 'lib/ovirtsdk4/types.rb', line 55822

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:



55834
55835
55836
# File 'lib/ovirtsdk4/types.rb', line 55834

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:



55847
55848
55849
55850
55851
55852
# File 'lib/ovirtsdk4/types.rb', line 55847

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)


55859
55860
55861
# File 'lib/ovirtsdk4/types.rb', line 55859

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


55868
55869
55870
# File 'lib/ovirtsdk4/types.rb', line 55868

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


55877
55878
55879
# File 'lib/ovirtsdk4/types.rb', line 55877

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)


55886
55887
55888
# File 'lib/ovirtsdk4/types.rb', line 55886

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


55895
55896
55897
# File 'lib/ovirtsdk4/types.rb', line 55895

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


55904
55905
55906
# File 'lib/ovirtsdk4/types.rb', line 55904

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



55913
55914
55915
# File 'lib/ovirtsdk4/types.rb', line 55913

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


55922
55923
55924
55925
55926
55927
55928
55929
55930
55931
55932
# File 'lib/ovirtsdk4/types.rb', line 55922

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

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


55939
55940
55941
# File 'lib/ovirtsdk4/types.rb', line 55939

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


55948
55949
55950
# File 'lib/ovirtsdk4/types.rb', line 55948

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



55957
55958
55959
# File 'lib/ovirtsdk4/types.rb', line 55957

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:



55970
55971
55972
55973
55974
55975
# File 'lib/ovirtsdk4/types.rb', line 55970

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

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



55982
55983
55984
# File 'lib/ovirtsdk4/types.rb', line 55982

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



55991
55992
55993
55994
55995
55996
55997
55998
55999
56000
56001
# File 'lib/ovirtsdk4/types.rb', line 55991

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:



56008
56009
56010
# File 'lib/ovirtsdk4/types.rb', line 56008

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



56021
56022
56023
56024
56025
56026
# File 'lib/ovirtsdk4/types.rb', line 56021

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:



56033
56034
56035
# File 'lib/ovirtsdk4/types.rb', line 56033

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:



56046
56047
56048
56049
56050
56051
# File 'lib/ovirtsdk4/types.rb', line 56046

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

#rng_deviceRngDevice

Returns the value of the rng_device attribute.

Returns:



56058
56059
56060
# File 'lib/ovirtsdk4/types.rb', line 56058

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:



56071
56072
56073
56074
56075
56076
# File 'lib/ovirtsdk4/types.rb', line 56071

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

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



56083
56084
56085
# File 'lib/ovirtsdk4/types.rb', line 56083

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:



56096
56097
56098
56099
56100
56101
# File 'lib/ovirtsdk4/types.rb', line 56096

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

#small_iconIcon

Returns the value of the small_icon attribute.

Returns:



56108
56109
56110
# File 'lib/ovirtsdk4/types.rb', line 56108

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 OvirtSDK4::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)


56121
56122
56123
56124
56125
56126
# File 'lib/ovirtsdk4/types.rb', line 56121

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

#soundcard_enabledBoolean

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


56133
56134
56135
# File 'lib/ovirtsdk4/types.rb', line 56133

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


56142
56143
56144
# File 'lib/ovirtsdk4/types.rb', line 56142

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



56151
56152
56153
# File 'lib/ovirtsdk4/types.rb', line 56151

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)


56164
56165
56166
56167
56168
56169
# File 'lib/ovirtsdk4/types.rb', line 56164

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)


56176
56177
56178
# File 'lib/ovirtsdk4/types.rb', line 56176

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


56185
56186
56187
# File 'lib/ovirtsdk4/types.rb', line 56185

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


56194
56195
56196
# File 'lib/ovirtsdk4/types.rb', line 56194

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


56203
56204
56205
# File 'lib/ovirtsdk4/types.rb', line 56203

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



56212
56213
56214
# File 'lib/ovirtsdk4/types.rb', line 56212

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



56221
56222
56223
# File 'lib/ovirtsdk4/types.rb', line 56221

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



56230
56231
56232
# File 'lib/ovirtsdk4/types.rb', line 56230

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:



56243
56244
56245
56246
56247
56248
# File 'lib/ovirtsdk4/types.rb', line 56243

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.



56255
56256
56257
# File 'lib/ovirtsdk4/types.rb', line 56255

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:



56264
56265
56266
# File 'lib/ovirtsdk4/types.rb', line 56264

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



56273
56274
56275
# File 'lib/ovirtsdk4/types.rb', line 56273

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


56282
56283
56284
56285
56286
56287
56288
56289
56290
56291
56292
# File 'lib/ovirtsdk4/types.rb', line 56282

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

#time_zoneTimeZone

Returns the value of the time_zone attribute.

Returns:



56299
56300
56301
# File 'lib/ovirtsdk4/types.rb', line 56299

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:



56312
56313
56314
56315
56316
56317
# File 'lib/ovirtsdk4/types.rb', line 56312

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)


56324
56325
56326
# File 'lib/ovirtsdk4/types.rb', line 56324

def tpm_enabled
  @tpm_enabled
end

#tpm_enabled=(value) ⇒ Object

Sets the value of the tpm_enabled attribute.

Parameters:

  • value (Boolean)


56333
56334
56335
# File 'lib/ovirtsdk4/types.rb', line 56333

def tpm_enabled=(value)
  @tpm_enabled = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


56342
56343
56344
# File 'lib/ovirtsdk4/types.rb', line 56342

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


56351
56352
56353
# File 'lib/ovirtsdk4/types.rb', line 56351

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



56360
56361
56362
# File 'lib/ovirtsdk4/types.rb', line 56360

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



56369
56370
56371
# File 'lib/ovirtsdk4/types.rb', line 56369

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



56378
56379
56380
# File 'lib/ovirtsdk4/types.rb', line 56378

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)


56391
56392
56393
56394
56395
56396
# File 'lib/ovirtsdk4/types.rb', line 56391

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

#versionTemplateVersion

Returns the value of the version attribute.

Returns:



56403
56404
56405
# File 'lib/ovirtsdk4/types.rb', line 56403

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

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



56416
56417
56418
56419
56420
56421
# File 'lib/ovirtsdk4/types.rb', line 56416

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

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



56428
56429
56430
# File 'lib/ovirtsdk4/types.rb', line 56428

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



56441
56442
56443
56444
56445
56446
# File 'lib/ovirtsdk4/types.rb', line 56441

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)


56453
56454
56455
# File 'lib/ovirtsdk4/types.rb', line 56453

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)


56462
56463
56464
# File 'lib/ovirtsdk4/types.rb', line 56462

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)


56471
56472
56473
# File 'lib/ovirtsdk4/types.rb', line 56471

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)


56480
56481
56482
# File 'lib/ovirtsdk4/types.rb', line 56480

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



56489
56490
56491
# File 'lib/ovirtsdk4/types.rb', line 56489

def vm
  @vm
end

#vm=(value) ⇒ Object

Sets the value of the vm attribute.

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


56502
56503
56504
56505
56506
56507
# File 'lib/ovirtsdk4/types.rb', line 56502

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end

#watchdogsArray<Watchdog>

Returns the value of the watchdogs attribute.

Returns:



56514
56515
56516
# File 'lib/ovirtsdk4/types.rb', line 56514

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



56523
56524
56525
56526
56527
56528
56529
56530
56531
56532
56533
# File 'lib/ovirtsdk4/types.rb', line 56523

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