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.



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

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.



47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265
47266
47267
# File 'lib/ovirtsdk4/types.rb', line 47255

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:



45855
45856
45857
# File 'lib/ovirtsdk4/types.rb', line 45855

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)


45868
45869
45870
45871
45872
45873
# File 'lib/ovirtsdk4/types.rb', line 45868

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:



45880
45881
45882
# File 'lib/ovirtsdk4/types.rb', line 45880

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



45889
45890
45891
45892
45893
45894
45895
45896
45897
45898
45899
# File 'lib/ovirtsdk4/types.rb', line 45889

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:



45906
45907
45908
# File 'lib/ovirtsdk4/types.rb', line 45906

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:



45919
45920
45921
45922
45923
45924
# File 'lib/ovirtsdk4/types.rb', line 45919

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)


45931
45932
45933
# File 'lib/ovirtsdk4/types.rb', line 45931

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


45940
45941
45942
# File 'lib/ovirtsdk4/types.rb', line 45940

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



45949
45950
45951
# File 'lib/ovirtsdk4/types.rb', line 45949

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:



45962
45963
45964
45965
45966
45967
# File 'lib/ovirtsdk4/types.rb', line 45962

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:



45974
45975
45976
# File 'lib/ovirtsdk4/types.rb', line 45974

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)


45987
45988
45989
45990
45991
45992
# File 'lib/ovirtsdk4/types.rb', line 45987

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:



45999
46000
46001
# File 'lib/ovirtsdk4/types.rb', line 45999

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:



46012
46013
46014
46015
46016
46017
# File 'lib/ovirtsdk4/types.rb', line 46012

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)


46024
46025
46026
# File 'lib/ovirtsdk4/types.rb', line 46024

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


46033
46034
46035
# File 'lib/ovirtsdk4/types.rb', line 46033

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


46042
46043
46044
# File 'lib/ovirtsdk4/types.rb', line 46042

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


46051
46052
46053
# File 'lib/ovirtsdk4/types.rb', line 46051

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



46060
46061
46062
# File 'lib/ovirtsdk4/types.rb', line 46060

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:



46073
46074
46075
46076
46077
46078
# File 'lib/ovirtsdk4/types.rb', line 46073

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)


46085
46086
46087
# File 'lib/ovirtsdk4/types.rb', line 46085

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)


46094
46095
46096
# File 'lib/ovirtsdk4/types.rb', line 46094

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


46103
46104
46105
# File 'lib/ovirtsdk4/types.rb', line 46103

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)


46112
46113
46114
# File 'lib/ovirtsdk4/types.rb', line 46112

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



46121
46122
46123
# File 'lib/ovirtsdk4/types.rb', line 46121

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



46130
46131
46132
46133
46134
46135
46136
46137
46138
46139
46140
# File 'lib/ovirtsdk4/types.rb', line 46130

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)


46147
46148
46149
# File 'lib/ovirtsdk4/types.rb', line 46147

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


46156
46157
46158
# File 'lib/ovirtsdk4/types.rb', line 46156

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


46165
46166
46167
# File 'lib/ovirtsdk4/types.rb', line 46165

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


46174
46175
46176
# File 'lib/ovirtsdk4/types.rb', line 46174

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



46183
46184
46185
# File 'lib/ovirtsdk4/types.rb', line 46183

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
# File 'lib/ovirtsdk4/types.rb', line 46192

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:



46209
46210
46211
# File 'lib/ovirtsdk4/types.rb', line 46209

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:



46222
46223
46224
46225
46226
46227
# File 'lib/ovirtsdk4/types.rb', line 46222

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:



46234
46235
46236
# File 'lib/ovirtsdk4/types.rb', line 46234

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:



46247
46248
46249
46250
46251
46252
# File 'lib/ovirtsdk4/types.rb', line 46247

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:



46259
46260
46261
# File 'lib/ovirtsdk4/types.rb', line 46259

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
# File 'lib/ovirtsdk4/types.rb', line 46268

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.



47272
47273
47274
47275
47276
47277
47278
47279
47280
47281
47282
47283
47284
# File 'lib/ovirtsdk4/types.rb', line 47272

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:



46285
46286
46287
# File 'lib/ovirtsdk4/types.rb', line 46285

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:



46298
46299
46300
46301
46302
46303
# File 'lib/ovirtsdk4/types.rb', line 46298

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)


46310
46311
46312
# File 'lib/ovirtsdk4/types.rb', line 46310

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


46319
46320
46321
# File 'lib/ovirtsdk4/types.rb', line 46319

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



46328
46329
46330
# File 'lib/ovirtsdk4/types.rb', line 46328

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:



46341
46342
46343
46344
46345
46346
# File 'lib/ovirtsdk4/types.rb', line 46341

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:



46353
46354
46355
# File 'lib/ovirtsdk4/types.rb', line 46353

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)


46366
46367
46368
46369
46370
46371
# File 'lib/ovirtsdk4/types.rb', line 46366

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:



46378
46379
46380
# File 'lib/ovirtsdk4/types.rb', line 46378

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)


46391
46392
46393
46394
46395
46396
# File 'lib/ovirtsdk4/types.rb', line 46391

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:



46403
46404
46405
# File 'lib/ovirtsdk4/types.rb', line 46403

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:



46416
46417
46418
46419
46420
46421
# File 'lib/ovirtsdk4/types.rb', line 46416

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)


46428
46429
46430
# File 'lib/ovirtsdk4/types.rb', line 46428

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


46437
46438
46439
# File 'lib/ovirtsdk4/types.rb', line 46437

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



46446
46447
46448
# File 'lib/ovirtsdk4/types.rb', line 46446

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:



46459
46460
46461
46462
46463
46464
# File 'lib/ovirtsdk4/types.rb', line 46459

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:



46471
46472
46473
# File 'lib/ovirtsdk4/types.rb', line 46471

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:



46484
46485
46486
46487
46488
46489
# File 'lib/ovirtsdk4/types.rb', line 46484

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)


46496
46497
46498
# File 'lib/ovirtsdk4/types.rb', line 46496

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


46505
46506
46507
# File 'lib/ovirtsdk4/types.rb', line 46505

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


46514
46515
46516
# File 'lib/ovirtsdk4/types.rb', line 46514

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)


46523
46524
46525
# File 'lib/ovirtsdk4/types.rb', line 46523

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


46532
46533
46534
# File 'lib/ovirtsdk4/types.rb', line 46532

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


46541
46542
46543
# File 'lib/ovirtsdk4/types.rb', line 46541

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



46550
46551
46552
# File 'lib/ovirtsdk4/types.rb', line 46550

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
# File 'lib/ovirtsdk4/types.rb', line 46559

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)


46576
46577
46578
# File 'lib/ovirtsdk4/types.rb', line 46576

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


46585
46586
46587
# File 'lib/ovirtsdk4/types.rb', line 46585

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



46594
46595
46596
# File 'lib/ovirtsdk4/types.rb', line 46594

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:



46607
46608
46609
46610
46611
46612
# File 'lib/ovirtsdk4/types.rb', line 46607

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:



46619
46620
46621
# File 'lib/ovirtsdk4/types.rb', line 46619

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



46628
46629
46630
46631
46632
46633
46634
46635
46636
46637
46638
# File 'lib/ovirtsdk4/types.rb', line 46628

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:



46645
46646
46647
# File 'lib/ovirtsdk4/types.rb', line 46645

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:



46658
46659
46660
46661
46662
46663
# File 'lib/ovirtsdk4/types.rb', line 46658

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:



46670
46671
46672
# File 'lib/ovirtsdk4/types.rb', line 46670

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:



46683
46684
46685
46686
46687
46688
# File 'lib/ovirtsdk4/types.rb', line 46683

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:



46695
46696
46697
# File 'lib/ovirtsdk4/types.rb', line 46695

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:



46708
46709
46710
46711
46712
46713
# File 'lib/ovirtsdk4/types.rb', line 46708

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:



46720
46721
46722
# File 'lib/ovirtsdk4/types.rb', line 46720

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:



46733
46734
46735
46736
46737
46738
# File 'lib/ovirtsdk4/types.rb', line 46733

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:



46745
46746
46747
# File 'lib/ovirtsdk4/types.rb', line 46745

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)


46758
46759
46760
46761
46762
46763
# File 'lib/ovirtsdk4/types.rb', line 46758

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)


46770
46771
46772
# File 'lib/ovirtsdk4/types.rb', line 46770

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


46779
46780
46781
# File 'lib/ovirtsdk4/types.rb', line 46779

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



46788
46789
46790
# File 'lib/ovirtsdk4/types.rb', line 46788

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)


46801
46802
46803
46804
46805
46806
# File 'lib/ovirtsdk4/types.rb', line 46801

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)


46813
46814
46815
# File 'lib/ovirtsdk4/types.rb', line 46813

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


46822
46823
46824
# File 'lib/ovirtsdk4/types.rb', line 46822

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


46831
46832
46833
# File 'lib/ovirtsdk4/types.rb', line 46831

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


46840
46841
46842
# File 'lib/ovirtsdk4/types.rb', line 46840

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



46849
46850
46851
# File 'lib/ovirtsdk4/types.rb', line 46849

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



46858
46859
46860
# File 'lib/ovirtsdk4/types.rb', line 46858

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



46867
46868
46869
# File 'lib/ovirtsdk4/types.rb', line 46867

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:



46880
46881
46882
46883
46884
46885
# File 'lib/ovirtsdk4/types.rb', line 46880

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.



46892
46893
46894
# File 'lib/ovirtsdk4/types.rb', line 46892

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:



46901
46902
46903
# File 'lib/ovirtsdk4/types.rb', line 46901

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



46910
46911
46912
# File 'lib/ovirtsdk4/types.rb', line 46910

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
# File 'lib/ovirtsdk4/types.rb', line 46919

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:



46936
46937
46938
# File 'lib/ovirtsdk4/types.rb', line 46936

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:



46949
46950
46951
46952
46953
46954
# File 'lib/ovirtsdk4/types.rb', line 46949

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)


46961
46962
46963
# File 'lib/ovirtsdk4/types.rb', line 46961

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


46970
46971
46972
# File 'lib/ovirtsdk4/types.rb', line 46970

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



46979
46980
46981
# File 'lib/ovirtsdk4/types.rb', line 46979

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



46988
46989
46990
# File 'lib/ovirtsdk4/types.rb', line 46988

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



46997
46998
46999
# File 'lib/ovirtsdk4/types.rb', line 46997

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)


47010
47011
47012
47013
47014
47015
# File 'lib/ovirtsdk4/types.rb', line 47010

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:



47022
47023
47024
# File 'lib/ovirtsdk4/types.rb', line 47022

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:



47035
47036
47037
47038
47039
47040
# File 'lib/ovirtsdk4/types.rb', line 47035

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:



47047
47048
47049
# File 'lib/ovirtsdk4/types.rb', line 47047

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:



47060
47061
47062
47063
47064
47065
# File 'lib/ovirtsdk4/types.rb', line 47060

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:



47072
47073
47074
# File 'lib/ovirtsdk4/types.rb', line 47072

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)


47085
47086
47087
47088
47089
47090
# File 'lib/ovirtsdk4/types.rb', line 47085

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:



47097
47098
47099
# File 'lib/ovirtsdk4/types.rb', line 47097

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
# File 'lib/ovirtsdk4/types.rb', line 47106

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