Class: OvirtSDK4::InstanceType

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

Instance Method Summary collapse

Methods inherited from Template

#==, #hash

Methods inherited from VmBase

#==, #hash

Methods inherited from Identified

#==, #hash

Methods inherited from Struct

#==, #hash

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ InstanceType

Creates a new instance of the OvirtSDK4::InstanceType class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :auto_pinning_policy (AutoPinningPolicy)

    The value of attribute auto_pinning_policy.

  • :bios (Bios, Hash)

    The value of attribute bios.

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

    The values of attribute cdroms.

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :console (Console, Hash)

    The value of attribute console.

  • :cpu (Cpu, Hash)

    The value of attribute cpu.

  • :cpu_pinning_policy (CpuPinningPolicy)

    The value of attribute cpu_pinning_policy.

  • :cpu_profile (CpuProfile, Hash)

    The value of attribute cpu_profile.

  • :cpu_shares (Integer)

    The value of attribute cpu_shares.

  • :creation_time (DateTime)

    The value of attribute creation_time.

  • :custom_compatibility_version (Version, Hash)

    The value of attribute custom_compatibility_version.

  • :custom_cpu_model (String)

    The value of attribute custom_cpu_model.

  • :custom_emulated_machine (String)

    The value of attribute custom_emulated_machine.

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

    The values of attribute custom_properties.

  • :delete_protected (Boolean)

    The value of attribute delete_protected.

  • :description (String)

    The value of attribute description.

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

    The values of attribute disk_attachments.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

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

    The values of attribute graphics_consoles.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :io (Io, Hash)

    The value of attribute io.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

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

    The values of attribute mediated_devices.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :multi_queues_enabled (Boolean)

    The value of attribute multi_queues_enabled.

  • :name (String)

    The value of attribute name.

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

    The values of attribute nics.

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

    The values of attribute permissions.

  • :placement_policy (VmPlacementPolicy, Hash)

    The value of attribute placement_policy.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

  • :soundcard_enabled (Boolean)

    The value of attribute soundcard_enabled.

  • :sso (Sso, Hash)

    The value of attribute sso.

  • :start_paused (Boolean)

    The value of attribute start_paused.

  • :stateless (Boolean)

    The value of attribute stateless.

  • :status (TemplateStatus)

    The value of attribute status.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_error_resume_behaviour (VmStorageErrorResumeBehaviour)

    The value of attribute storage_error_resume_behaviour.

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

    The values of attribute tags.

  • :time_zone (TimeZone, Hash)

    The value of attribute time_zone.

  • :tpm_enabled (Boolean)

    The value of attribute tpm_enabled.

  • :tunnel_migration (Boolean)

    The value of attribute tunnel_migration.

  • :type (VmType)

    The value of attribute type.

  • :usb (Usb, Hash)

    The value of attribute usb.

  • :version (TemplateVersion, Hash)

    The value of attribute version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :virtio_scsi_multi_queues (Integer)

    The value of attribute virtio_scsi_multi_queues.

  • :virtio_scsi_multi_queues_enabled (Boolean)

    The value of attribute virtio_scsi_multi_queues_enabled.

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.



56374
56375
56376
# File 'lib/ovirtsdk4/types.rb', line 56374

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

Instance Method Details

#auto_pinning_policyAutoPinningPolicy

Returns the value of the auto_pinning_policy attribute.

Returns:



54863
54864
54865
# File 'lib/ovirtsdk4/types.rb', line 54863

def auto_pinning_policy
  @auto_pinning_policy
end

#auto_pinning_policy=(value) ⇒ Object

Sets the value of the auto_pinning_policy attribute.

Parameters:



54872
54873
54874
# File 'lib/ovirtsdk4/types.rb', line 54872

def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end

#biosBios

Returns the value of the bios attribute.

Returns:



54881
54882
54883
# File 'lib/ovirtsdk4/types.rb', line 54881

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)


54894
54895
54896
54897
54898
54899
# File 'lib/ovirtsdk4/types.rb', line 54894

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:



54906
54907
54908
# File 'lib/ovirtsdk4/types.rb', line 54906

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



54915
54916
54917
54918
54919
54920
54921
54922
54923
54924
54925
# File 'lib/ovirtsdk4/types.rb', line 54915

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:



54932
54933
54934
# File 'lib/ovirtsdk4/types.rb', line 54932

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:



54945
54946
54947
54948
54949
54950
# File 'lib/ovirtsdk4/types.rb', line 54945

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)


54957
54958
54959
# File 'lib/ovirtsdk4/types.rb', line 54957

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


54966
54967
54968
# File 'lib/ovirtsdk4/types.rb', line 54966

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



54975
54976
54977
# File 'lib/ovirtsdk4/types.rb', line 54975

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:



54988
54989
54990
54991
54992
54993
# File 'lib/ovirtsdk4/types.rb', line 54988

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:



55000
55001
55002
# File 'lib/ovirtsdk4/types.rb', line 55000

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)


55013
55014
55015
55016
55017
55018
# File 'lib/ovirtsdk4/types.rb', line 55013

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

#cpu_pinning_policyCpuPinningPolicy

Returns the value of the cpu_pinning_policy attribute.

Returns:



55025
55026
55027
# File 'lib/ovirtsdk4/types.rb', line 55025

def cpu_pinning_policy
  @cpu_pinning_policy
end

#cpu_pinning_policy=(value) ⇒ Object

Sets the value of the cpu_pinning_policy attribute.

Parameters:



55034
55035
55036
# File 'lib/ovirtsdk4/types.rb', line 55034

def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.

Returns:



55043
55044
55045
# File 'lib/ovirtsdk4/types.rb', line 55043

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:



55056
55057
55058
55059
55060
55061
# File 'lib/ovirtsdk4/types.rb', line 55056

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)


55068
55069
55070
# File 'lib/ovirtsdk4/types.rb', line 55068

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


55077
55078
55079
# File 'lib/ovirtsdk4/types.rb', line 55077

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


55086
55087
55088
# File 'lib/ovirtsdk4/types.rb', line 55086

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


55095
55096
55097
# File 'lib/ovirtsdk4/types.rb', line 55095

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



55104
55105
55106
# File 'lib/ovirtsdk4/types.rb', line 55104

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:



55117
55118
55119
55120
55121
55122
# File 'lib/ovirtsdk4/types.rb', line 55117

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)


55129
55130
55131
# File 'lib/ovirtsdk4/types.rb', line 55129

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)


55138
55139
55140
# File 'lib/ovirtsdk4/types.rb', line 55138

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


55147
55148
55149
# File 'lib/ovirtsdk4/types.rb', line 55147

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)


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

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



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

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



55174
55175
55176
55177
55178
55179
55180
55181
55182
55183
55184
# File 'lib/ovirtsdk4/types.rb', line 55174

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)


55191
55192
55193
# File 'lib/ovirtsdk4/types.rb', line 55191

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


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

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


55209
55210
55211
# File 'lib/ovirtsdk4/types.rb', line 55209

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


55218
55219
55220
# File 'lib/ovirtsdk4/types.rb', line 55218

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



55227
55228
55229
# File 'lib/ovirtsdk4/types.rb', line 55227

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



55236
55237
55238
55239
55240
55241
55242
55243
55244
55245
55246
# File 'lib/ovirtsdk4/types.rb', line 55236

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:



55253
55254
55255
# File 'lib/ovirtsdk4/types.rb', line 55253

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:



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

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:



55278
55279
55280
# File 'lib/ovirtsdk4/types.rb', line 55278

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:



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

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:



55303
55304
55305
# File 'lib/ovirtsdk4/types.rb', line 55303

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



55312
55313
55314
55315
55316
55317
55318
55319
55320
55321
55322
# File 'lib/ovirtsdk4/types.rb', line 55312

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:



55329
55330
55331
# File 'lib/ovirtsdk4/types.rb', line 55329

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:



55342
55343
55344
55345
55346
55347
# File 'lib/ovirtsdk4/types.rb', line 55342

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)


55354
55355
55356
# File 'lib/ovirtsdk4/types.rb', line 55354

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


55363
55364
55365
# File 'lib/ovirtsdk4/types.rb', line 55363

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



55372
55373
55374
# File 'lib/ovirtsdk4/types.rb', line 55372

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:



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

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:



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

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)


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

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:



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

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)


55435
55436
55437
55438
55439
55440
# File 'lib/ovirtsdk4/types.rb', line 55435

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:



55447
55448
55449
# File 'lib/ovirtsdk4/types.rb', line 55447

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:



55460
55461
55462
55463
55464
55465
# File 'lib/ovirtsdk4/types.rb', line 55460

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

#mediated_devicesArray<VmMediatedDevice>

Returns the value of the mediated_devices attribute.

Returns:



55472
55473
55474
# File 'lib/ovirtsdk4/types.rb', line 55472

def mediated_devices
  @mediated_devices
end

#mediated_devices=(list) ⇒ Object

Sets the value of the mediated_devices attribute.

Parameters:



55481
55482
55483
55484
55485
55486
55487
55488
55489
55490
55491
# File 'lib/ovirtsdk4/types.rb', line 55481

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

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)


55498
55499
55500
# File 'lib/ovirtsdk4/types.rb', line 55498

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


55507
55508
55509
# File 'lib/ovirtsdk4/types.rb', line 55507

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



55516
55517
55518
# File 'lib/ovirtsdk4/types.rb', line 55516

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:



55529
55530
55531
55532
55533
55534
# File 'lib/ovirtsdk4/types.rb', line 55529

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:



55541
55542
55543
# File 'lib/ovirtsdk4/types.rb', line 55541

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:



55554
55555
55556
55557
55558
55559
# File 'lib/ovirtsdk4/types.rb', line 55554

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)


55566
55567
55568
# File 'lib/ovirtsdk4/types.rb', line 55566

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


55575
55576
55577
# File 'lib/ovirtsdk4/types.rb', line 55575

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


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

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)


55593
55594
55595
# File 'lib/ovirtsdk4/types.rb', line 55593

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


55602
55603
55604
# File 'lib/ovirtsdk4/types.rb', line 55602

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


55611
55612
55613
# File 'lib/ovirtsdk4/types.rb', line 55611

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



55620
55621
55622
# File 'lib/ovirtsdk4/types.rb', line 55620

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


55629
55630
55631
55632
55633
55634
55635
55636
55637
55638
55639
# File 'lib/ovirtsdk4/types.rb', line 55629

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)


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

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


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

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



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

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:



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

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:



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

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



55698
55699
55700
55701
55702
55703
55704
55705
55706
55707
55708
# File 'lib/ovirtsdk4/types.rb', line 55698

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:



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

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:



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

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:



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

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:



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

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:



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

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:



55778
55779
55780
55781
55782
55783
# File 'lib/ovirtsdk4/types.rb', line 55778

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:



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

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:



55803
55804
55805
55806
55807
55808
# File 'lib/ovirtsdk4/types.rb', line 55803

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:



55815
55816
55817
# File 'lib/ovirtsdk4/types.rb', line 55815

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)


55828
55829
55830
55831
55832
55833
# File 'lib/ovirtsdk4/types.rb', line 55828

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)


55840
55841
55842
# File 'lib/ovirtsdk4/types.rb', line 55840

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


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

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



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

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)


55871
55872
55873
55874
55875
55876
# File 'lib/ovirtsdk4/types.rb', line 55871

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)


55883
55884
55885
# File 'lib/ovirtsdk4/types.rb', line 55883

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


55892
55893
55894
# File 'lib/ovirtsdk4/types.rb', line 55892

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


55901
55902
55903
# File 'lib/ovirtsdk4/types.rb', line 55901

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


55910
55911
55912
# File 'lib/ovirtsdk4/types.rb', line 55910

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



55919
55920
55921
# File 'lib/ovirtsdk4/types.rb', line 55919

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



55928
55929
55930
# File 'lib/ovirtsdk4/types.rb', line 55928

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



55937
55938
55939
# File 'lib/ovirtsdk4/types.rb', line 55937

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:



55950
55951
55952
55953
55954
55955
# File 'lib/ovirtsdk4/types.rb', line 55950

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.



55962
55963
55964
# File 'lib/ovirtsdk4/types.rb', line 55962

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:



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

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



55980
55981
55982
# File 'lib/ovirtsdk4/types.rb', line 55980

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


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

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:



56006
56007
56008
# File 'lib/ovirtsdk4/types.rb', line 56006

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:



56019
56020
56021
56022
56023
56024
# File 'lib/ovirtsdk4/types.rb', line 56019

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

#tpm_enabledBoolean

Returns the value of the tpm_enabled attribute.

Returns:

  • (Boolean)


56031
56032
56033
# File 'lib/ovirtsdk4/types.rb', line 56031

def tpm_enabled
  @tpm_enabled
end

#tpm_enabled=(value) ⇒ Object

Sets the value of the tpm_enabled attribute.

Parameters:

  • value (Boolean)


56040
56041
56042
# File 'lib/ovirtsdk4/types.rb', line 56040

def tpm_enabled=(value)
  @tpm_enabled = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


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

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


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

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



56067
56068
56069
# File 'lib/ovirtsdk4/types.rb', line 56067

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



56076
56077
56078
# File 'lib/ovirtsdk4/types.rb', line 56076

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



56085
56086
56087
# File 'lib/ovirtsdk4/types.rb', line 56085

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)


56098
56099
56100
56101
56102
56103
# File 'lib/ovirtsdk4/types.rb', line 56098

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:



56110
56111
56112
# File 'lib/ovirtsdk4/types.rb', line 56110

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:



56123
56124
56125
56126
56127
56128
# File 'lib/ovirtsdk4/types.rb', line 56123

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:



56135
56136
56137
# File 'lib/ovirtsdk4/types.rb', line 56135

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:



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

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

#virtio_scsi_multi_queuesInteger

Returns the value of the virtio_scsi_multi_queues attribute.

Returns:

  • (Integer)


56160
56161
56162
# File 'lib/ovirtsdk4/types.rb', line 56160

def virtio_scsi_multi_queues
  @virtio_scsi_multi_queues
end

#virtio_scsi_multi_queues=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues attribute.

Parameters:

  • value (Integer)


56169
56170
56171
# File 'lib/ovirtsdk4/types.rb', line 56169

def virtio_scsi_multi_queues=(value)
  @virtio_scsi_multi_queues = value
end

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.

Returns:

  • (Boolean)


56178
56179
56180
# File 'lib/ovirtsdk4/types.rb', line 56178

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)


56187
56188
56189
# File 'lib/ovirtsdk4/types.rb', line 56187

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



56196
56197
56198
# File 'lib/ovirtsdk4/types.rb', line 56196

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)


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

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:



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

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



56230
56231
56232
56233
56234
56235
56236
56237
56238
56239
56240
# File 'lib/ovirtsdk4/types.rb', line 56230

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