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.

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



47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
# File 'lib/ovirtsdk4/types.rb', line 47073

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.



47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
# File 'lib/ovirtsdk4/types.rb', line 47090

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:



45710
45711
45712
# File 'lib/ovirtsdk4/types.rb', line 45710

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)


45723
45724
45725
45726
45727
45728
# File 'lib/ovirtsdk4/types.rb', line 45723

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:



45735
45736
45737
# File 'lib/ovirtsdk4/types.rb', line 45735

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
# File 'lib/ovirtsdk4/types.rb', line 45744

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:



45761
45762
45763
# File 'lib/ovirtsdk4/types.rb', line 45761

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:



45774
45775
45776
45777
45778
45779
# File 'lib/ovirtsdk4/types.rb', line 45774

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)


45786
45787
45788
# File 'lib/ovirtsdk4/types.rb', line 45786

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


45795
45796
45797
# File 'lib/ovirtsdk4/types.rb', line 45795

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



45804
45805
45806
# File 'lib/ovirtsdk4/types.rb', line 45804

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:



45817
45818
45819
45820
45821
45822
# File 'lib/ovirtsdk4/types.rb', line 45817

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:



45829
45830
45831
# File 'lib/ovirtsdk4/types.rb', line 45829

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)


45842
45843
45844
45845
45846
45847
# File 'lib/ovirtsdk4/types.rb', line 45842

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:



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

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:



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

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)


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

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


45888
45889
45890
# File 'lib/ovirtsdk4/types.rb', line 45888

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


45897
45898
45899
# File 'lib/ovirtsdk4/types.rb', line 45897

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


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

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



45915
45916
45917
# File 'lib/ovirtsdk4/types.rb', line 45915

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:



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

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)


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

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)


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

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


45958
45959
45960
# File 'lib/ovirtsdk4/types.rb', line 45958

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)


45967
45968
45969
# File 'lib/ovirtsdk4/types.rb', line 45967

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



45976
45977
45978
# File 'lib/ovirtsdk4/types.rb', line 45976

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



45985
45986
45987
45988
45989
45990
45991
45992
45993
45994
45995
# File 'lib/ovirtsdk4/types.rb', line 45985

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)


46002
46003
46004
# File 'lib/ovirtsdk4/types.rb', line 46002

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


46011
46012
46013
# File 'lib/ovirtsdk4/types.rb', line 46011

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


46020
46021
46022
# File 'lib/ovirtsdk4/types.rb', line 46020

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


46029
46030
46031
# File 'lib/ovirtsdk4/types.rb', line 46029

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



46038
46039
46040
# File 'lib/ovirtsdk4/types.rb', line 46038

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



46047
46048
46049
46050
46051
46052
46053
46054
46055
46056
46057
# File 'lib/ovirtsdk4/types.rb', line 46047

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:



46064
46065
46066
# File 'lib/ovirtsdk4/types.rb', line 46064

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:



46077
46078
46079
46080
46081
46082
# File 'lib/ovirtsdk4/types.rb', line 46077

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:



46089
46090
46091
# File 'lib/ovirtsdk4/types.rb', line 46089

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:



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

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:



46114
46115
46116
# File 'lib/ovirtsdk4/types.rb', line 46114

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



46123
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
# File 'lib/ovirtsdk4/types.rb', line 46123

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.



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

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:



46140
46141
46142
# File 'lib/ovirtsdk4/types.rb', line 46140

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:



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

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)


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

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


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

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



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

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:



46196
46197
46198
46199
46200
46201
# File 'lib/ovirtsdk4/types.rb', line 46196

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:



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

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)


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

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:



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

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)


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

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:



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

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:



46271
46272
46273
46274
46275
46276
# File 'lib/ovirtsdk4/types.rb', line 46271

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)


46283
46284
46285
# File 'lib/ovirtsdk4/types.rb', line 46283

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


46292
46293
46294
# File 'lib/ovirtsdk4/types.rb', line 46292

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



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

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:



46314
46315
46316
46317
46318
46319
# File 'lib/ovirtsdk4/types.rb', line 46314

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:



46326
46327
46328
# File 'lib/ovirtsdk4/types.rb', line 46326

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:



46339
46340
46341
46342
46343
46344
# File 'lib/ovirtsdk4/types.rb', line 46339

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)


46351
46352
46353
# File 'lib/ovirtsdk4/types.rb', line 46351

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


46360
46361
46362
# File 'lib/ovirtsdk4/types.rb', line 46360

def migration_downtime=(value)
  @migration_downtime = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


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

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


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

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



46387
46388
46389
# File 'lib/ovirtsdk4/types.rb', line 46387

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
# File 'lib/ovirtsdk4/types.rb', line 46396

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)


46413
46414
46415
# File 'lib/ovirtsdk4/types.rb', line 46413

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


46422
46423
46424
# File 'lib/ovirtsdk4/types.rb', line 46422

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



46431
46432
46433
# File 'lib/ovirtsdk4/types.rb', line 46431

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:



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

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:



46456
46457
46458
# File 'lib/ovirtsdk4/types.rb', line 46456

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
# File 'lib/ovirtsdk4/types.rb', line 46465

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:



46482
46483
46484
# File 'lib/ovirtsdk4/types.rb', line 46482

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:



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

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:



46507
46508
46509
# File 'lib/ovirtsdk4/types.rb', line 46507

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:



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

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:



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

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:



46545
46546
46547
46548
46549
46550
# File 'lib/ovirtsdk4/types.rb', line 46545

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:



46557
46558
46559
# File 'lib/ovirtsdk4/types.rb', line 46557

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:



46570
46571
46572
46573
46574
46575
# File 'lib/ovirtsdk4/types.rb', line 46570

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:



46582
46583
46584
# File 'lib/ovirtsdk4/types.rb', line 46582

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)


46595
46596
46597
46598
46599
46600
# File 'lib/ovirtsdk4/types.rb', line 46595

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)


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

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


46616
46617
46618
# File 'lib/ovirtsdk4/types.rb', line 46616

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



46625
46626
46627
# File 'lib/ovirtsdk4/types.rb', line 46625

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)


46638
46639
46640
46641
46642
46643
# File 'lib/ovirtsdk4/types.rb', line 46638

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)


46650
46651
46652
# File 'lib/ovirtsdk4/types.rb', line 46650

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


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

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


46668
46669
46670
# File 'lib/ovirtsdk4/types.rb', line 46668

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


46677
46678
46679
# File 'lib/ovirtsdk4/types.rb', line 46677

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



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

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



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

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



46704
46705
46706
# File 'lib/ovirtsdk4/types.rb', line 46704

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:



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

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.



46729
46730
46731
# File 'lib/ovirtsdk4/types.rb', line 46729

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:



46738
46739
46740
# File 'lib/ovirtsdk4/types.rb', line 46738

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



46747
46748
46749
# File 'lib/ovirtsdk4/types.rb', line 46747

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


46756
46757
46758
46759
46760
46761
46762
46763
46764
46765
46766
# File 'lib/ovirtsdk4/types.rb', line 46756

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:



46773
46774
46775
# File 'lib/ovirtsdk4/types.rb', line 46773

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:



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

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)


46798
46799
46800
# File 'lib/ovirtsdk4/types.rb', line 46798

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


46807
46808
46809
# File 'lib/ovirtsdk4/types.rb', line 46807

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



46816
46817
46818
# File 'lib/ovirtsdk4/types.rb', line 46816

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



46825
46826
46827
# File 'lib/ovirtsdk4/types.rb', line 46825

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



46834
46835
46836
# File 'lib/ovirtsdk4/types.rb', line 46834

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)


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

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:



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

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:



46872
46873
46874
46875
46876
46877
# File 'lib/ovirtsdk4/types.rb', line 46872

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:



46884
46885
46886
# File 'lib/ovirtsdk4/types.rb', line 46884

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:



46897
46898
46899
46900
46901
46902
# File 'lib/ovirtsdk4/types.rb', line 46897

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:



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

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)


46922
46923
46924
46925
46926
46927
# File 'lib/ovirtsdk4/types.rb', line 46922

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:



46934
46935
46936
# File 'lib/ovirtsdk4/types.rb', line 46934

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
# File 'lib/ovirtsdk4/types.rb', line 46943

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