Class: OvirtSDK4::InstanceType

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (InstanceType) initialize(opts = {})

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.

  • :disks (Array<Disk>, Array<Hash>)

    The values of attribute disks.

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

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

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

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

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

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.



42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568
42569
42570
42571
42572
42573
42574
42575
42576
42577
42578
42579
42580
42581
42582
42583
42584
42585
42586
42587
42588
42589
42590
42591
42592
42593
42594
42595
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
# File 'lib/ovirtsdk4/types.rb', line 42553

def initialize(opts = {})
  super(opts)
  self.bios = opts[:bios]
  self.cdroms = opts[:cdroms]
  self.cluster = opts[:cluster]
  self.comment = opts[:comment]
  self.console = opts[:console]
  self.cpu = opts[:cpu]
  self.cpu_profile = opts[:cpu_profile]
  self.cpu_shares = opts[:cpu_shares]
  self.creation_time = opts[:creation_time]
  self.custom_compatibility_version = opts[:custom_compatibility_version]
  self.custom_cpu_model = opts[:custom_cpu_model]
  self.custom_emulated_machine = opts[:custom_emulated_machine]
  self.custom_properties = opts[:custom_properties]
  self.delete_protected = opts[:delete_protected]
  self.description = opts[:description]
  self.disks = opts[:disks]
  self.display = opts[:display]
  self.domain = opts[:domain]
  self.graphics_consoles = opts[:graphics_consoles]
  self.high_availability = opts[:high_availability]
  self.id = opts[:id]
  self.initialization = opts[:initialization]
  self.io = opts[:io]
  self.large_icon = opts[:large_icon]
  self.memory = opts[:memory]
  self.memory_policy = opts[:memory_policy]
  self.migration = opts[:migration]
  self.migration_downtime = opts[:migration_downtime]
  self.name = opts[:name]
  self.nics = opts[:nics]
  self.origin = opts[:origin]
  self.os = opts[:os]
  self.permissions = opts[:permissions]
  self.rng_device = opts[:rng_device]
  self.serial_number = opts[:serial_number]
  self.small_icon = opts[:small_icon]
  self.soundcard_enabled = opts[:soundcard_enabled]
  self.sso = opts[:sso]
  self.start_paused = opts[:start_paused]
  self.stateless = opts[:stateless]
  self.status = opts[:status]
  self.storage_domain = opts[:storage_domain]
  self.tags = opts[:tags]
  self.time_zone = opts[:time_zone]
  self.tunnel_migration = opts[:tunnel_migration]
  self.type = opts[:type]
  self.usb = opts[:usb]
  self.version = opts[:version]
  self.virtio_scsi = opts[:virtio_scsi]
  self.vm = opts[:vm]
  self.watchdogs = opts[:watchdogs]
end

Instance Method Details

- (Bios) bios

Returns the value of the bios attribute.

Returns:



41299
41300
41301
# File 'lib/ovirtsdk4/types.rb', line 41299

def bios
  return @bios
end

- (Object) bios=(value)

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)


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

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

- (Array<Cdrom>) cdroms

Returns the value of the cdroms attribute.

Returns:



41324
41325
41326
# File 'lib/ovirtsdk4/types.rb', line 41324

def cdroms
  return @cdroms
end

- (Object) cdroms=(list)

Sets the value of the cdroms attribute.

Parameters:



41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
# File 'lib/ovirtsdk4/types.rb', line 41332

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

- (Cluster) cluster

Returns the value of the cluster attribute.

Returns:



41349
41350
41351
# File 'lib/ovirtsdk4/types.rb', line 41349

def cluster
  return @cluster
end

- (Object) cluster=(value)

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:



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

def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


41374
41375
41376
# File 'lib/ovirtsdk4/types.rb', line 41374

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


41383
41384
41385
# File 'lib/ovirtsdk4/types.rb', line 41383

def comment=(value)
  @comment = value
end

- (Console) console

Returns the value of the console attribute.

Returns:



41392
41393
41394
# File 'lib/ovirtsdk4/types.rb', line 41392

def console
  return @console
end

- (Object) console=(value)

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:



41405
41406
41407
41408
41409
41410
# File 'lib/ovirtsdk4/types.rb', line 41405

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

- (Cpu) cpu

Returns the value of the cpu attribute.

Returns:



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

def cpu
  return @cpu
end

- (Object) cpu=(value)

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)


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

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

- (CpuProfile) cpu_profile

Returns the value of the cpu_profile attribute.

Returns:



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

def cpu_profile
  return @cpu_profile
end

- (Object) cpu_profile=(value)

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:



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

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

- (Integer) cpu_shares

Returns the value of the cpu_shares attribute.

Returns:

  • (Integer)


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

def cpu_shares
  return @cpu_shares
end

- (Object) cpu_shares=(value)

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


41476
41477
41478
# File 'lib/ovirtsdk4/types.rb', line 41476

def cpu_shares=(value)
  @cpu_shares = value
end

- (DateTime) creation_time

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


41485
41486
41487
# File 'lib/ovirtsdk4/types.rb', line 41485

def creation_time
  return @creation_time
end

- (Object) creation_time=(value)

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


41494
41495
41496
# File 'lib/ovirtsdk4/types.rb', line 41494

def creation_time=(value)
  @creation_time = value
end

- (Version) custom_compatibility_version

Returns the value of the custom_compatibility_version attribute.

Returns:



41503
41504
41505
# File 'lib/ovirtsdk4/types.rb', line 41503

def custom_compatibility_version
  return @custom_compatibility_version
end

- (Object) custom_compatibility_version=(value)

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:



41516
41517
41518
41519
41520
41521
# File 'lib/ovirtsdk4/types.rb', line 41516

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

- (String) custom_cpu_model

Returns the value of the custom_cpu_model attribute.

Returns:

  • (String)


41528
41529
41530
# File 'lib/ovirtsdk4/types.rb', line 41528

def custom_cpu_model
  return @custom_cpu_model
end

- (Object) custom_cpu_model=(value)

Sets the value of the custom_cpu_model attribute.

Parameters:

  • value (String)


41537
41538
41539
# File 'lib/ovirtsdk4/types.rb', line 41537

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

- (String) custom_emulated_machine

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


41546
41547
41548
# File 'lib/ovirtsdk4/types.rb', line 41546

def custom_emulated_machine
  return @custom_emulated_machine
end

- (Object) custom_emulated_machine=(value)

Sets the value of the custom_emulated_machine attribute.

Parameters:

  • value (String)


41555
41556
41557
# File 'lib/ovirtsdk4/types.rb', line 41555

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

- (Array<CustomProperty>) custom_properties

Returns the value of the custom_properties attribute.

Returns:



41564
41565
41566
# File 'lib/ovirtsdk4/types.rb', line 41564

def custom_properties
  return @custom_properties
end

- (Object) custom_properties=(list)

Sets the value of the custom_properties attribute.

Parameters:



41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
# File 'lib/ovirtsdk4/types.rb', line 41572

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

- (Boolean) delete_protected

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


41589
41590
41591
# File 'lib/ovirtsdk4/types.rb', line 41589

def delete_protected
  return @delete_protected
end

- (Object) delete_protected=(value)

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


41598
41599
41600
# File 'lib/ovirtsdk4/types.rb', line 41598

def delete_protected=(value)
  @delete_protected = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


41607
41608
41609
# File 'lib/ovirtsdk4/types.rb', line 41607

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


41616
41617
41618
# File 'lib/ovirtsdk4/types.rb', line 41616

def description=(value)
  @description = value
end

- (Array<Disk>) disks

Returns the value of the disks attribute.

Returns:



41625
41626
41627
# File 'lib/ovirtsdk4/types.rb', line 41625

def disks
  return @disks
end

- (Object) disks=(list)

Sets the value of the disks attribute.

Parameters:

  • list (Array<Disk>)


41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
# File 'lib/ovirtsdk4/types.rb', line 41633

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

- (Display) display

Returns the value of the display attribute.

Returns:



41650
41651
41652
# File 'lib/ovirtsdk4/types.rb', line 41650

def display
  return @display
end

- (Object) display=(value)

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:



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

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

- (Domain) domain

Returns the value of the domain attribute.

Returns:



41675
41676
41677
# File 'lib/ovirtsdk4/types.rb', line 41675

def domain
  return @domain
end

- (Object) domain=(value)

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:



41688
41689
41690
41691
41692
41693
# File 'lib/ovirtsdk4/types.rb', line 41688

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

- (Array<GraphicsConsole>) graphics_consoles

Returns the value of the graphics_consoles attribute.

Returns:



41700
41701
41702
# File 'lib/ovirtsdk4/types.rb', line 41700

def graphics_consoles
  return @graphics_consoles
end

- (Object) graphics_consoles=(list)

Sets the value of the graphics_consoles attribute.

Parameters:



41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
# File 'lib/ovirtsdk4/types.rb', line 41708

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

- (HighAvailability) high_availability

Returns the value of the high_availability attribute.

Returns:



41725
41726
41727
# File 'lib/ovirtsdk4/types.rb', line 41725

def high_availability
  return @high_availability
end

- (Object) high_availability=(value)

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:



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

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


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

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


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

def id=(value)
  @id = value
end

- (Initialization) initialization

Returns the value of the initialization attribute.

Returns:



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

def initialization
  return @initialization
end

- (Object) initialization=(value)

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:



41781
41782
41783
41784
41785
41786
# File 'lib/ovirtsdk4/types.rb', line 41781

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

- (Io) io

Returns the value of the io attribute.

Returns:



41793
41794
41795
# File 'lib/ovirtsdk4/types.rb', line 41793

def io
  return @io
end

- (Object) io=(value)

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)


41806
41807
41808
41809
41810
41811
# File 'lib/ovirtsdk4/types.rb', line 41806

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

- (Icon) large_icon

Returns the value of the large_icon attribute.

Returns:



41818
41819
41820
# File 'lib/ovirtsdk4/types.rb', line 41818

def large_icon
  return @large_icon
end

- (Object) large_icon=(value)

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)


41831
41832
41833
41834
41835
41836
# File 'lib/ovirtsdk4/types.rb', line 41831

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

- (Integer) memory

Returns the value of the memory attribute.

Returns:

  • (Integer)


41843
41844
41845
# File 'lib/ovirtsdk4/types.rb', line 41843

def memory
  return @memory
end

- (Object) memory=(value)

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


41852
41853
41854
# File 'lib/ovirtsdk4/types.rb', line 41852

def memory=(value)
  @memory = value
end

- (MemoryPolicy) memory_policy

Returns the value of the memory_policy attribute.

Returns:



41861
41862
41863
# File 'lib/ovirtsdk4/types.rb', line 41861

def memory_policy
  return @memory_policy
end

- (Object) memory_policy=(value)

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:



41874
41875
41876
41877
41878
41879
# File 'lib/ovirtsdk4/types.rb', line 41874

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

- (MigrationOptions) migration

Returns the value of the migration attribute.

Returns:



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

def migration
  return @migration
end

- (Object) migration=(value)

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:



41899
41900
41901
41902
41903
41904
# File 'lib/ovirtsdk4/types.rb', line 41899

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

- (Integer) migration_downtime

Returns the value of the migration_downtime attribute.

Returns:

  • (Integer)


41911
41912
41913
# File 'lib/ovirtsdk4/types.rb', line 41911

def migration_downtime
  return @migration_downtime
end

- (Object) migration_downtime=(value)

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


41920
41921
41922
# File 'lib/ovirtsdk4/types.rb', line 41920

def migration_downtime=(value)
  @migration_downtime = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


41929
41930
41931
# File 'lib/ovirtsdk4/types.rb', line 41929

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


41938
41939
41940
# File 'lib/ovirtsdk4/types.rb', line 41938

def name=(value)
  @name = value
end

- (Array<Nic>) nics

Returns the value of the nics attribute.

Returns:



41947
41948
41949
# File 'lib/ovirtsdk4/types.rb', line 41947

def nics
  return @nics
end

- (Object) nics=(list)

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
# File 'lib/ovirtsdk4/types.rb', line 41955

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

- (String) origin

Returns the value of the origin attribute.

Returns:

  • (String)


41972
41973
41974
# File 'lib/ovirtsdk4/types.rb', line 41972

def origin
  return @origin
end

- (Object) origin=(value)

Sets the value of the origin attribute.

Parameters:

  • value (String)


41981
41982
41983
# File 'lib/ovirtsdk4/types.rb', line 41981

def origin=(value)
  @origin = value
end

- (OperatingSystem) os

Returns the value of the os attribute.

Returns:



41990
41991
41992
# File 'lib/ovirtsdk4/types.rb', line 41990

def os
  return @os
end

- (Object) os=(value)

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:



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

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

- (Array<Permission>) permissions

Returns the value of the permissions attribute.

Returns:



42015
42016
42017
# File 'lib/ovirtsdk4/types.rb', line 42015

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
# File 'lib/ovirtsdk4/types.rb', line 42023

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

- (RngDevice) rng_device

Returns the value of the rng_device attribute.

Returns:



42040
42041
42042
# File 'lib/ovirtsdk4/types.rb', line 42040

def rng_device
  return @rng_device
end

- (Object) rng_device=(value)

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:



42053
42054
42055
42056
42057
42058
# File 'lib/ovirtsdk4/types.rb', line 42053

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

- (SerialNumber) serial_number

Returns the value of the serial_number attribute.

Returns:



42065
42066
42067
# File 'lib/ovirtsdk4/types.rb', line 42065

def serial_number
  return @serial_number
end

- (Object) serial_number=(value)

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:



42078
42079
42080
42081
42082
42083
# File 'lib/ovirtsdk4/types.rb', line 42078

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

- (Icon) small_icon

Returns the value of the small_icon attribute.

Returns:



42090
42091
42092
# File 'lib/ovirtsdk4/types.rb', line 42090

def small_icon
  return @small_icon
end

- (Object) small_icon=(value)

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)


42103
42104
42105
42106
42107
42108
# File 'lib/ovirtsdk4/types.rb', line 42103

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

- (Boolean) soundcard_enabled

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


42115
42116
42117
# File 'lib/ovirtsdk4/types.rb', line 42115

def soundcard_enabled
  return @soundcard_enabled
end

- (Object) soundcard_enabled=(value)

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


42124
42125
42126
# File 'lib/ovirtsdk4/types.rb', line 42124

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

- (Sso) sso

Returns the value of the sso attribute.

Returns:



42133
42134
42135
# File 'lib/ovirtsdk4/types.rb', line 42133

def sso
  return @sso
end

- (Object) sso=(value)

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)


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

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

- (Boolean) start_paused

Returns the value of the start_paused attribute.

Returns:

  • (Boolean)


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

def start_paused
  return @start_paused
end

- (Object) start_paused=(value)

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


42167
42168
42169
# File 'lib/ovirtsdk4/types.rb', line 42167

def start_paused=(value)
  @start_paused = value
end

- (Boolean) stateless

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


42176
42177
42178
# File 'lib/ovirtsdk4/types.rb', line 42176

def stateless
  return @stateless
end

- (Object) stateless=(value)

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


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

def stateless=(value)
  @stateless = value
end

- (TemplateStatus) status

Returns the value of the status attribute.

Returns:



42194
42195
42196
# File 'lib/ovirtsdk4/types.rb', line 42194

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



42203
42204
42205
# File 'lib/ovirtsdk4/types.rb', line 42203

def status=(value)
  @status = value
end

- (StorageDomain) storage_domain

Returns the value of the storage_domain attribute.

Returns:



42212
42213
42214
# File 'lib/ovirtsdk4/types.rb', line 42212

def storage_domain
  return @storage_domain
end

- (Object) storage_domain=(value)

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:



42225
42226
42227
42228
42229
42230
# File 'lib/ovirtsdk4/types.rb', line 42225

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

- (Array<Tag>) tags

Returns the value of the tags attribute.

Returns:



42237
42238
42239
# File 'lib/ovirtsdk4/types.rb', line 42237

def tags
  return @tags
end

- (Object) tags=(list)

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


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

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

- (TimeZone) time_zone

Returns the value of the time_zone attribute.

Returns:



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

def time_zone
  return @time_zone
end

- (Object) time_zone=(value)

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:



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

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

- (Boolean) tunnel_migration

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


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

def tunnel_migration
  return @tunnel_migration
end

- (Object) tunnel_migration=(value)

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


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

def tunnel_migration=(value)
  @tunnel_migration = value
end

- (VmType) type

Returns the value of the type attribute.

Returns:



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

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



42314
42315
42316
# File 'lib/ovirtsdk4/types.rb', line 42314

def type=(value)
  @type = value
end

- (Usb) usb

Returns the value of the usb attribute.

Returns:



42323
42324
42325
# File 'lib/ovirtsdk4/types.rb', line 42323

def usb
  return @usb
end

- (Object) usb=(value)

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)


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

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

- (TemplateVersion) version

Returns the value of the version attribute.

Returns:



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

def version
  return @version
end

- (Object) version=(value)

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:



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

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

- (VirtioScsi) virtio_scsi

Returns the value of the virtio_scsi attribute.

Returns:



42373
42374
42375
# File 'lib/ovirtsdk4/types.rb', line 42373

def virtio_scsi
  return @virtio_scsi
end

- (Object) virtio_scsi=(value)

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:



42386
42387
42388
42389
42390
42391
# File 'lib/ovirtsdk4/types.rb', line 42386

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

- (Vm) vm

Returns the value of the vm attribute.

Returns:



42398
42399
42400
# File 'lib/ovirtsdk4/types.rb', line 42398

def vm
  return @vm
end

- (Object) vm=(value)

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)


42411
42412
42413
42414
42415
42416
# File 'lib/ovirtsdk4/types.rb', line 42411

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

- (Array<Watchdog>) watchdogs

Returns the value of the watchdogs attribute.

Returns:



42423
42424
42425
# File 'lib/ovirtsdk4/types.rb', line 42423

def watchdogs
  return @watchdogs
end

- (Object) watchdogs=(list)

Sets the value of the watchdogs attribute.

Parameters:



42431
42432
42433
42434
42435
42436
42437
42438
42439
42440
42441
# File 'lib/ovirtsdk4/types.rb', line 42431

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