Class: OvirtSDK4::Template

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

Direct Known Subclasses

InstanceType

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Template

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

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.


48590
48591
48592
48593
48594
48595
48596
48597
48598
48599
48600
48601
48602
# File 'lib/ovirtsdk4/types.rb', line 48590

def initialize(opts = {})
  super(opts)
  self.cdroms = opts[:cdroms]
  self.disk_attachments = opts[:disk_attachments]
  self.graphics_consoles = opts[:graphics_consoles]
  self.nics = opts[:nics]
  self.permissions = opts[:permissions]
  self.status = opts[:status]
  self.tags = opts[:tags]
  self.version = opts[:version]
  self.vm = opts[:vm]
  self.watchdogs = opts[:watchdogs]
end

Instance Method Details

#==(other) ⇒ Object

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


48607
48608
48609
48610
48611
48612
48613
48614
48615
48616
48617
48618
48619
# File 'lib/ovirtsdk4/types.rb', line 48607

def ==(other)
  super &&
  @cdroms == other.cdroms &&
  @disk_attachments == other.disk_attachments &&
  @graphics_consoles == other.graphics_consoles &&
  @nics == other.nics &&
  @permissions == other.permissions &&
  @status == other.status &&
  @tags == other.tags &&
  @version == other.version &&
  @vm == other.vm &&
  @watchdogs == other.watchdogs
end

#biosBios

Returns the value of the bios attribute.

Returns:


47207
47208
47209
# File 'lib/ovirtsdk4/types.rb', line 47207

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)

47220
47221
47222
47223
47224
47225
# File 'lib/ovirtsdk4/types.rb', line 47220

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:


47232
47233
47234
# File 'lib/ovirtsdk4/types.rb', line 47232

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:


47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
# File 'lib/ovirtsdk4/types.rb', line 47241

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:


47258
47259
47260
# File 'lib/ovirtsdk4/types.rb', line 47258

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:


47271
47272
47273
47274
47275
47276
# File 'lib/ovirtsdk4/types.rb', line 47271

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)

47283
47284
47285
# File 'lib/ovirtsdk4/types.rb', line 47283

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

47292
47293
47294
# File 'lib/ovirtsdk4/types.rb', line 47292

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:


47301
47302
47303
# File 'lib/ovirtsdk4/types.rb', line 47301

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:


47314
47315
47316
47317
47318
47319
# File 'lib/ovirtsdk4/types.rb', line 47314

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:


47326
47327
47328
# File 'lib/ovirtsdk4/types.rb', line 47326

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)

47339
47340
47341
47342
47343
47344
# File 'lib/ovirtsdk4/types.rb', line 47339

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:


47351
47352
47353
# File 'lib/ovirtsdk4/types.rb', line 47351

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:


47364
47365
47366
47367
47368
47369
# File 'lib/ovirtsdk4/types.rb', line 47364

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)

47376
47377
47378
# File 'lib/ovirtsdk4/types.rb', line 47376

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)

47385
47386
47387
# File 'lib/ovirtsdk4/types.rb', line 47385

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)

47394
47395
47396
# File 'lib/ovirtsdk4/types.rb', line 47394

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)

47403
47404
47405
# File 'lib/ovirtsdk4/types.rb', line 47403

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:


47412
47413
47414
# File 'lib/ovirtsdk4/types.rb', line 47412

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:


47425
47426
47427
47428
47429
47430
# File 'lib/ovirtsdk4/types.rb', line 47425

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)

47437
47438
47439
# File 'lib/ovirtsdk4/types.rb', line 47437

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)

47446
47447
47448
# File 'lib/ovirtsdk4/types.rb', line 47446

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)

47455
47456
47457
# File 'lib/ovirtsdk4/types.rb', line 47455

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)

47464
47465
47466
# File 'lib/ovirtsdk4/types.rb', line 47464

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:


47473
47474
47475
# File 'lib/ovirtsdk4/types.rb', line 47473

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:


47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
# File 'lib/ovirtsdk4/types.rb', line 47482

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)

47499
47500
47501
# File 'lib/ovirtsdk4/types.rb', line 47499

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)

47508
47509
47510
# File 'lib/ovirtsdk4/types.rb', line 47508

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

47517
47518
47519
# File 'lib/ovirtsdk4/types.rb', line 47517

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

47526
47527
47528
# File 'lib/ovirtsdk4/types.rb', line 47526

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:


47535
47536
47537
# File 'lib/ovirtsdk4/types.rb', line 47535

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:


47544
47545
47546
47547
47548
47549
47550
47551
47552
47553
47554
# File 'lib/ovirtsdk4/types.rb', line 47544

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:


47561
47562
47563
# File 'lib/ovirtsdk4/types.rb', line 47561

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:


47574
47575
47576
47577
47578
47579
# File 'lib/ovirtsdk4/types.rb', line 47574

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:


47586
47587
47588
# File 'lib/ovirtsdk4/types.rb', line 47586

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:


47599
47600
47601
47602
47603
47604
# File 'lib/ovirtsdk4/types.rb', line 47599

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:


47611
47612
47613
# File 'lib/ovirtsdk4/types.rb', line 47611

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:


47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
# File 'lib/ovirtsdk4/types.rb', line 47620

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

#hashObject

Generates a hash value for this object.


48624
48625
48626
48627
48628
48629
48630
48631
48632
48633
48634
48635
48636
# File 'lib/ovirtsdk4/types.rb', line 48624

def hash
  super +
  @cdroms.hash +
  @disk_attachments.hash +
  @graphics_consoles.hash +
  @nics.hash +
  @permissions.hash +
  @status.hash +
  @tags.hash +
  @version.hash +
  @vm.hash +
  @watchdogs.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:


47637
47638
47639
# File 'lib/ovirtsdk4/types.rb', line 47637

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:


47650
47651
47652
47653
47654
47655
# File 'lib/ovirtsdk4/types.rb', line 47650

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)

47662
47663
47664
# File 'lib/ovirtsdk4/types.rb', line 47662

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

47671
47672
47673
# File 'lib/ovirtsdk4/types.rb', line 47671

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:


47680
47681
47682
# File 'lib/ovirtsdk4/types.rb', line 47680

def initialization
  @initialization
end

#initialization=(value) ⇒ Object

Sets the value of the initialization attribute.

The value parameter can be an instance of Initialization or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:


47693
47694
47695
47696
47697
47698
# File 'lib/ovirtsdk4/types.rb', line 47693

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:


47705
47706
47707
# File 'lib/ovirtsdk4/types.rb', line 47705

def io
  @io
end

#io=(value) ⇒ Object

Sets the value of the io attribute.

The value parameter can be an instance of Io or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:

  • value (Io, Hash)

47718
47719
47720
47721
47722
47723
# File 'lib/ovirtsdk4/types.rb', line 47718

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:


47730
47731
47732
# File 'lib/ovirtsdk4/types.rb', line 47730

def large_icon
  @large_icon
end

#large_icon=(value) ⇒ Object

Sets the value of the large_icon attribute.

The value parameter can be an instance of Icon or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:

  • value (Icon, Hash)

47743
47744
47745
47746
47747
47748
# File 'lib/ovirtsdk4/types.rb', line 47743

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:


47755
47756
47757
# File 'lib/ovirtsdk4/types.rb', line 47755

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:


47768
47769
47770
47771
47772
47773
# File 'lib/ovirtsdk4/types.rb', line 47768

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)

47780
47781
47782
# File 'lib/ovirtsdk4/types.rb', line 47780

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)

47789
47790
47791
# File 'lib/ovirtsdk4/types.rb', line 47789

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


47798
47799
47800
# File 'lib/ovirtsdk4/types.rb', line 47798

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:


47811
47812
47813
47814
47815
47816
# File 'lib/ovirtsdk4/types.rb', line 47811

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:


47823
47824
47825
# File 'lib/ovirtsdk4/types.rb', line 47823

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:


47836
47837
47838
47839
47840
47841
# File 'lib/ovirtsdk4/types.rb', line 47836

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)

47848
47849
47850
# File 'lib/ovirtsdk4/types.rb', line 47848

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)

47857
47858
47859
# File 'lib/ovirtsdk4/types.rb', line 47857

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)

47866
47867
47868
# File 'lib/ovirtsdk4/types.rb', line 47866

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)

47875
47876
47877
# File 'lib/ovirtsdk4/types.rb', line 47875

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

47884
47885
47886
# File 'lib/ovirtsdk4/types.rb', line 47884

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

47893
47894
47895
# File 'lib/ovirtsdk4/types.rb', line 47893

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:


47902
47903
47904
# File 'lib/ovirtsdk4/types.rb', line 47902

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)

47911
47912
47913
47914
47915
47916
47917
47918
47919
47920
47921
# File 'lib/ovirtsdk4/types.rb', line 47911

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)

47928
47929
47930
# File 'lib/ovirtsdk4/types.rb', line 47928

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)

47937
47938
47939
# File 'lib/ovirtsdk4/types.rb', line 47937

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:


47946
47947
47948
# File 'lib/ovirtsdk4/types.rb', line 47946

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:


47959
47960
47961
47962
47963
47964
# File 'lib/ovirtsdk4/types.rb', line 47959

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:


47971
47972
47973
# File 'lib/ovirtsdk4/types.rb', line 47971

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


47980
47981
47982
47983
47984
47985
47986
47987
47988
47989
47990
# File 'lib/ovirtsdk4/types.rb', line 47980

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:


47997
47998
47999
# File 'lib/ovirtsdk4/types.rb', line 47997

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:


48010
48011
48012
48013
48014
48015
# File 'lib/ovirtsdk4/types.rb', line 48010

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:


48022
48023
48024
# File 'lib/ovirtsdk4/types.rb', line 48022

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:


48035
48036
48037
48038
48039
48040
# File 'lib/ovirtsdk4/types.rb', line 48035

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:


48047
48048
48049
# File 'lib/ovirtsdk4/types.rb', line 48047

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:


48060
48061
48062
48063
48064
48065
# File 'lib/ovirtsdk4/types.rb', line 48060

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:


48072
48073
48074
# File 'lib/ovirtsdk4/types.rb', line 48072

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:


48085
48086
48087
48088
48089
48090
# File 'lib/ovirtsdk4/types.rb', line 48085

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:


48097
48098
48099
# File 'lib/ovirtsdk4/types.rb', line 48097

def small_icon
  @small_icon
end

#small_icon=(value) ⇒ Object

Sets the value of the small_icon attribute.

The value parameter can be an instance of Icon or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:

  • value (Icon, Hash)

48110
48111
48112
48113
48114
48115
# File 'lib/ovirtsdk4/types.rb', line 48110

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)

48122
48123
48124
# File 'lib/ovirtsdk4/types.rb', line 48122

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)

48131
48132
48133
# File 'lib/ovirtsdk4/types.rb', line 48131

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:


48140
48141
48142
# File 'lib/ovirtsdk4/types.rb', line 48140

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)

48153
48154
48155
48156
48157
48158
# File 'lib/ovirtsdk4/types.rb', line 48153

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)

48165
48166
48167
# File 'lib/ovirtsdk4/types.rb', line 48165

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)

48174
48175
48176
# File 'lib/ovirtsdk4/types.rb', line 48174

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)

48183
48184
48185
# File 'lib/ovirtsdk4/types.rb', line 48183

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)

48192
48193
48194
# File 'lib/ovirtsdk4/types.rb', line 48192

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:


48201
48202
48203
# File 'lib/ovirtsdk4/types.rb', line 48201

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


48210
48211
48212
# File 'lib/ovirtsdk4/types.rb', line 48210

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


48219
48220
48221
# File 'lib/ovirtsdk4/types.rb', line 48219

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:


48232
48233
48234
48235
48236
48237
# File 'lib/ovirtsdk4/types.rb', line 48232

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.


48244
48245
48246
# File 'lib/ovirtsdk4/types.rb', line 48244

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:


48253
48254
48255
# File 'lib/ovirtsdk4/types.rb', line 48253

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:


48262
48263
48264
# File 'lib/ovirtsdk4/types.rb', line 48262

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)

48271
48272
48273
48274
48275
48276
48277
48278
48279
48280
48281
# File 'lib/ovirtsdk4/types.rb', line 48271

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:


48288
48289
48290
# File 'lib/ovirtsdk4/types.rb', line 48288

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


48301
48302
48303
48304
48305
48306
# File 'lib/ovirtsdk4/types.rb', line 48301

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)

48313
48314
48315
# File 'lib/ovirtsdk4/types.rb', line 48313

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

48322
48323
48324
# File 'lib/ovirtsdk4/types.rb', line 48322

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:


48331
48332
48333
# File 'lib/ovirtsdk4/types.rb', line 48331

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


48340
48341
48342
# File 'lib/ovirtsdk4/types.rb', line 48340

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:


48349
48350
48351
# File 'lib/ovirtsdk4/types.rb', line 48349

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)

48362
48363
48364
48365
48366
48367
# File 'lib/ovirtsdk4/types.rb', line 48362

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:


48374
48375
48376
# File 'lib/ovirtsdk4/types.rb', line 48374

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

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


48387
48388
48389
48390
48391
48392
# File 'lib/ovirtsdk4/types.rb', line 48387

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:


48399
48400
48401
# File 'lib/ovirtsdk4/types.rb', line 48399

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:


48412
48413
48414
48415
48416
48417
# File 'lib/ovirtsdk4/types.rb', line 48412

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

#vmVm

Returns the value of the vm attribute.

Returns:


48424
48425
48426
# File 'lib/ovirtsdk4/types.rb', line 48424

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)

48437
48438
48439
48440
48441
48442
# File 'lib/ovirtsdk4/types.rb', line 48437

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:


48449
48450
48451
# File 'lib/ovirtsdk4/types.rb', line 48449

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:


48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
# File 'lib/ovirtsdk4/types.rb', line 48458

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