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

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

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

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


54599
54600
54601
# File 'lib/ovirtsdk4/types.rb', line 54599

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

Instance Method Details

#biosBios

Returns the value of the bios attribute.

Returns:


53196
53197
53198
# File 'lib/ovirtsdk4/types.rb', line 53196

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)

53209
53210
53211
53212
53213
53214
# File 'lib/ovirtsdk4/types.rb', line 53209

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:


53221
53222
53223
# File 'lib/ovirtsdk4/types.rb', line 53221

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:


53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
# File 'lib/ovirtsdk4/types.rb', line 53230

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:


53247
53248
53249
# File 'lib/ovirtsdk4/types.rb', line 53247

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:


53260
53261
53262
53263
53264
53265
# File 'lib/ovirtsdk4/types.rb', line 53260

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)

53272
53273
53274
# File 'lib/ovirtsdk4/types.rb', line 53272

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

53281
53282
53283
# File 'lib/ovirtsdk4/types.rb', line 53281

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:


53290
53291
53292
# File 'lib/ovirtsdk4/types.rb', line 53290

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:


53303
53304
53305
53306
53307
53308
# File 'lib/ovirtsdk4/types.rb', line 53303

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:


53315
53316
53317
# File 'lib/ovirtsdk4/types.rb', line 53315

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)

53328
53329
53330
53331
53332
53333
# File 'lib/ovirtsdk4/types.rb', line 53328

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

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.

Returns:


53340
53341
53342
# File 'lib/ovirtsdk4/types.rb', line 53340

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:


53353
53354
53355
53356
53357
53358
# File 'lib/ovirtsdk4/types.rb', line 53353

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)

53365
53366
53367
# File 'lib/ovirtsdk4/types.rb', line 53365

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)

53374
53375
53376
# File 'lib/ovirtsdk4/types.rb', line 53374

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)

53383
53384
53385
# File 'lib/ovirtsdk4/types.rb', line 53383

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)

53392
53393
53394
# File 'lib/ovirtsdk4/types.rb', line 53392

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:


53401
53402
53403
# File 'lib/ovirtsdk4/types.rb', line 53401

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:


53414
53415
53416
53417
53418
53419
# File 'lib/ovirtsdk4/types.rb', line 53414

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)

53426
53427
53428
# File 'lib/ovirtsdk4/types.rb', line 53426

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)

53435
53436
53437
# File 'lib/ovirtsdk4/types.rb', line 53435

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)

53444
53445
53446
# File 'lib/ovirtsdk4/types.rb', line 53444

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)

53453
53454
53455
# File 'lib/ovirtsdk4/types.rb', line 53453

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:


53462
53463
53464
# File 'lib/ovirtsdk4/types.rb', line 53462

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:


53471
53472
53473
53474
53475
53476
53477
53478
53479
53480
53481
# File 'lib/ovirtsdk4/types.rb', line 53471

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)

53488
53489
53490
# File 'lib/ovirtsdk4/types.rb', line 53488

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)

53497
53498
53499
# File 'lib/ovirtsdk4/types.rb', line 53497

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

53506
53507
53508
# File 'lib/ovirtsdk4/types.rb', line 53506

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

53515
53516
53517
# File 'lib/ovirtsdk4/types.rb', line 53515

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:


53524
53525
53526
# File 'lib/ovirtsdk4/types.rb', line 53524

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:


53533
53534
53535
53536
53537
53538
53539
53540
53541
53542
53543
# File 'lib/ovirtsdk4/types.rb', line 53533

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:


53550
53551
53552
# File 'lib/ovirtsdk4/types.rb', line 53550

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:


53563
53564
53565
53566
53567
53568
# File 'lib/ovirtsdk4/types.rb', line 53563

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:


53575
53576
53577
# File 'lib/ovirtsdk4/types.rb', line 53575

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:


53588
53589
53590
53591
53592
53593
# File 'lib/ovirtsdk4/types.rb', line 53588

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:


53600
53601
53602
# File 'lib/ovirtsdk4/types.rb', line 53600

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:


53609
53610
53611
53612
53613
53614
53615
53616
53617
53618
53619
# File 'lib/ovirtsdk4/types.rb', line 53609

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:


53626
53627
53628
# File 'lib/ovirtsdk4/types.rb', line 53626

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:


53639
53640
53641
53642
53643
53644
# File 'lib/ovirtsdk4/types.rb', line 53639

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)

53651
53652
53653
# File 'lib/ovirtsdk4/types.rb', line 53651

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

53660
53661
53662
# File 'lib/ovirtsdk4/types.rb', line 53660

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:


53669
53670
53671
# File 'lib/ovirtsdk4/types.rb', line 53669

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:


53682
53683
53684
53685
53686
53687
# File 'lib/ovirtsdk4/types.rb', line 53682

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:


53694
53695
53696
# File 'lib/ovirtsdk4/types.rb', line 53694

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)

53707
53708
53709
53710
53711
53712
# File 'lib/ovirtsdk4/types.rb', line 53707

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:


53719
53720
53721
# File 'lib/ovirtsdk4/types.rb', line 53719

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)

53732
53733
53734
53735
53736
53737
# File 'lib/ovirtsdk4/types.rb', line 53732

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:


53744
53745
53746
# File 'lib/ovirtsdk4/types.rb', line 53744

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:


53757
53758
53759
53760
53761
53762
# File 'lib/ovirtsdk4/types.rb', line 53757

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

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)

53769
53770
53771
# File 'lib/ovirtsdk4/types.rb', line 53769

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)

53778
53779
53780
# File 'lib/ovirtsdk4/types.rb', line 53778

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


53787
53788
53789
# File 'lib/ovirtsdk4/types.rb', line 53787

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:


53800
53801
53802
53803
53804
53805
# File 'lib/ovirtsdk4/types.rb', line 53800

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:


53812
53813
53814
# File 'lib/ovirtsdk4/types.rb', line 53812

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:


53825
53826
53827
53828
53829
53830
# File 'lib/ovirtsdk4/types.rb', line 53825

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)

53837
53838
53839
# File 'lib/ovirtsdk4/types.rb', line 53837

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)

53846
53847
53848
# File 'lib/ovirtsdk4/types.rb', line 53846

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)

53855
53856
53857
# File 'lib/ovirtsdk4/types.rb', line 53855

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)

53864
53865
53866
# File 'lib/ovirtsdk4/types.rb', line 53864

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

53873
53874
53875
# File 'lib/ovirtsdk4/types.rb', line 53873

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

53882
53883
53884
# File 'lib/ovirtsdk4/types.rb', line 53882

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:


53891
53892
53893
# File 'lib/ovirtsdk4/types.rb', line 53891

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)

53900
53901
53902
53903
53904
53905
53906
53907
53908
53909
53910
# File 'lib/ovirtsdk4/types.rb', line 53900

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)

53917
53918
53919
# File 'lib/ovirtsdk4/types.rb', line 53917

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)

53926
53927
53928
# File 'lib/ovirtsdk4/types.rb', line 53926

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:


53935
53936
53937
# File 'lib/ovirtsdk4/types.rb', line 53935

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:


53948
53949
53950
53951
53952
53953
# File 'lib/ovirtsdk4/types.rb', line 53948

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:


53960
53961
53962
# File 'lib/ovirtsdk4/types.rb', line 53960

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


53969
53970
53971
53972
53973
53974
53975
53976
53977
53978
53979
# File 'lib/ovirtsdk4/types.rb', line 53969

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:


53986
53987
53988
# File 'lib/ovirtsdk4/types.rb', line 53986

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:


53999
54000
54001
54002
54003
54004
# File 'lib/ovirtsdk4/types.rb', line 53999

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:


54011
54012
54013
# File 'lib/ovirtsdk4/types.rb', line 54011

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:


54024
54025
54026
54027
54028
54029
# File 'lib/ovirtsdk4/types.rb', line 54024

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:


54036
54037
54038
# File 'lib/ovirtsdk4/types.rb', line 54036

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:


54049
54050
54051
54052
54053
54054
# File 'lib/ovirtsdk4/types.rb', line 54049

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:


54061
54062
54063
# File 'lib/ovirtsdk4/types.rb', line 54061

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:


54074
54075
54076
54077
54078
54079
# File 'lib/ovirtsdk4/types.rb', line 54074

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:


54086
54087
54088
# File 'lib/ovirtsdk4/types.rb', line 54086

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)

54099
54100
54101
54102
54103
54104
# File 'lib/ovirtsdk4/types.rb', line 54099

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)

54111
54112
54113
# File 'lib/ovirtsdk4/types.rb', line 54111

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)

54120
54121
54122
# File 'lib/ovirtsdk4/types.rb', line 54120

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:


54129
54130
54131
# File 'lib/ovirtsdk4/types.rb', line 54129

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)

54142
54143
54144
54145
54146
54147
# File 'lib/ovirtsdk4/types.rb', line 54142

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)

54154
54155
54156
# File 'lib/ovirtsdk4/types.rb', line 54154

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)

54163
54164
54165
# File 'lib/ovirtsdk4/types.rb', line 54163

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)

54172
54173
54174
# File 'lib/ovirtsdk4/types.rb', line 54172

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)

54181
54182
54183
# File 'lib/ovirtsdk4/types.rb', line 54181

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:


54190
54191
54192
# File 'lib/ovirtsdk4/types.rb', line 54190

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


54199
54200
54201
# File 'lib/ovirtsdk4/types.rb', line 54199

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


54208
54209
54210
# File 'lib/ovirtsdk4/types.rb', line 54208

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:


54221
54222
54223
54224
54225
54226
# File 'lib/ovirtsdk4/types.rb', line 54221

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.


54233
54234
54235
# File 'lib/ovirtsdk4/types.rb', line 54233

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:


54242
54243
54244
# File 'lib/ovirtsdk4/types.rb', line 54242

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:


54251
54252
54253
# File 'lib/ovirtsdk4/types.rb', line 54251

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)

54260
54261
54262
54263
54264
54265
54266
54267
54268
54269
54270
# File 'lib/ovirtsdk4/types.rb', line 54260

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:


54277
54278
54279
# File 'lib/ovirtsdk4/types.rb', line 54277

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:


54290
54291
54292
54293
54294
54295
# File 'lib/ovirtsdk4/types.rb', line 54290

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

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)

54302
54303
54304
# File 'lib/ovirtsdk4/types.rb', line 54302

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

54311
54312
54313
# File 'lib/ovirtsdk4/types.rb', line 54311

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:


54320
54321
54322
# File 'lib/ovirtsdk4/types.rb', line 54320

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


54329
54330
54331
# File 'lib/ovirtsdk4/types.rb', line 54329

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:


54338
54339
54340
# File 'lib/ovirtsdk4/types.rb', line 54338

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)

54351
54352
54353
54354
54355
54356
# File 'lib/ovirtsdk4/types.rb', line 54351

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:


54363
54364
54365
# File 'lib/ovirtsdk4/types.rb', line 54363

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:


54376
54377
54378
54379
54380
54381
# File 'lib/ovirtsdk4/types.rb', line 54376

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:


54388
54389
54390
# File 'lib/ovirtsdk4/types.rb', line 54388

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:


54401
54402
54403
54404
54405
54406
# File 'lib/ovirtsdk4/types.rb', line 54401

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

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.

Returns:

  • (Boolean)

54413
54414
54415
# File 'lib/ovirtsdk4/types.rb', line 54413

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)

54422
54423
54424
# File 'lib/ovirtsdk4/types.rb', line 54422

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.

Returns:


54431
54432
54433
# File 'lib/ovirtsdk4/types.rb', line 54431

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)

54444
54445
54446
54447
54448
54449
# File 'lib/ovirtsdk4/types.rb', line 54444

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:


54456
54457
54458
# File 'lib/ovirtsdk4/types.rb', line 54456

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:


54465
54466
54467
54468
54469
54470
54471
54472
54473
54474
54475
# File 'lib/ovirtsdk4/types.rb', line 54465

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