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

#href, #href=

Constructor Details

- (Template) initialize(opts = {})

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.

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

    The values of attribute disks.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

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

    The values of attribute graphics_consoles.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :io (Io, Hash)

    The value of attribute io.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :name (String)

    The value of attribute name.

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

    The values of attribute nics.

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

    The values of attribute permissions.

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

  • :soundcard_enabled (Boolean)

    The value of attribute soundcard_enabled.

  • :sso (Sso, Hash)

    The value of attribute sso.

  • :start_paused (Boolean)

    The value of attribute start_paused.

  • :stateless (Boolean)

    The value of attribute stateless.

  • :status (TemplateStatus)

    The value of attribute status.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

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

    The values of attribute tags.

  • :time_zone (TimeZone, Hash)

    The value of attribute time_zone.

  • :tunnel_migration (Boolean)

    The value of attribute tunnel_migration.

  • :type (VmType)

    The value of attribute type.

  • :usb (Usb, Hash)

    The value of attribute usb.

  • :version (TemplateVersion, Hash)

    The value of attribute version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.



37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
# File 'lib/ovirtsdk4/types.rb', line 37837

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

Instance Method Details

- (Bios) bios

Returns the value of the bios attribute.

Returns:



36583
36584
36585
# File 'lib/ovirtsdk4/types.rb', line 36583

def bios
  return @bios
end

- (Object) bios=(value)

Sets the value of the bios attribute.

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

Parameters:

  • value (Bios, Hash)


36596
36597
36598
36599
36600
36601
# File 'lib/ovirtsdk4/types.rb', line 36596

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

- (Array<Cdrom>) cdroms

Returns the value of the cdroms attribute.

Returns:



36608
36609
36610
# File 'lib/ovirtsdk4/types.rb', line 36608

def cdroms
  return @cdroms
end

- (Object) cdroms=(list)

Sets the value of the cdroms attribute.

Parameters:



36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
# File 'lib/ovirtsdk4/types.rb', line 36616

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

- (Cluster) cluster

Returns the value of the cluster attribute.

Returns:



36633
36634
36635
# File 'lib/ovirtsdk4/types.rb', line 36633

def cluster
  return @cluster
end

- (Object) cluster=(value)

Sets the value of the cluster attribute.

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

Parameters:



36646
36647
36648
36649
36650
36651
# File 'lib/ovirtsdk4/types.rb', line 36646

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

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


36658
36659
36660
# File 'lib/ovirtsdk4/types.rb', line 36658

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


36667
36668
36669
# File 'lib/ovirtsdk4/types.rb', line 36667

def comment=(value)
  @comment = value
end

- (Console) console

Returns the value of the console attribute.

Returns:



36676
36677
36678
# File 'lib/ovirtsdk4/types.rb', line 36676

def console
  return @console
end

- (Object) console=(value)

Sets the value of the console attribute.

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

Parameters:



36689
36690
36691
36692
36693
36694
# File 'lib/ovirtsdk4/types.rb', line 36689

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

- (Cpu) cpu

Returns the value of the cpu attribute.

Returns:



36701
36702
36703
# File 'lib/ovirtsdk4/types.rb', line 36701

def cpu
  return @cpu
end

- (Object) cpu=(value)

Sets the value of the cpu attribute.

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

Parameters:

  • value (Cpu, Hash)


36714
36715
36716
36717
36718
36719
# File 'lib/ovirtsdk4/types.rb', line 36714

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

- (CpuProfile) cpu_profile

Returns the value of the cpu_profile attribute.

Returns:



36726
36727
36728
# File 'lib/ovirtsdk4/types.rb', line 36726

def cpu_profile
  return @cpu_profile
end

- (Object) cpu_profile=(value)

Sets the value of the cpu_profile attribute.

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

Parameters:



36739
36740
36741
36742
36743
36744
# File 'lib/ovirtsdk4/types.rb', line 36739

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

- (Integer) cpu_shares

Returns the value of the cpu_shares attribute.

Returns:

  • (Integer)


36751
36752
36753
# File 'lib/ovirtsdk4/types.rb', line 36751

def cpu_shares
  return @cpu_shares
end

- (Object) cpu_shares=(value)

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


36760
36761
36762
# File 'lib/ovirtsdk4/types.rb', line 36760

def cpu_shares=(value)
  @cpu_shares = value
end

- (DateTime) creation_time

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


36769
36770
36771
# File 'lib/ovirtsdk4/types.rb', line 36769

def creation_time
  return @creation_time
end

- (Object) creation_time=(value)

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


36778
36779
36780
# File 'lib/ovirtsdk4/types.rb', line 36778

def creation_time=(value)
  @creation_time = value
end

- (Version) custom_compatibility_version

Returns the value of the custom_compatibility_version attribute.

Returns:



36787
36788
36789
# File 'lib/ovirtsdk4/types.rb', line 36787

def custom_compatibility_version
  return @custom_compatibility_version
end

- (Object) custom_compatibility_version=(value)

Sets the value of the custom_compatibility_version attribute.

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

Parameters:



36800
36801
36802
36803
36804
36805
# File 'lib/ovirtsdk4/types.rb', line 36800

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

- (String) custom_cpu_model

Returns the value of the custom_cpu_model attribute.

Returns:

  • (String)


36812
36813
36814
# File 'lib/ovirtsdk4/types.rb', line 36812

def custom_cpu_model
  return @custom_cpu_model
end

- (Object) custom_cpu_model=(value)

Sets the value of the custom_cpu_model attribute.

Parameters:

  • value (String)


36821
36822
36823
# File 'lib/ovirtsdk4/types.rb', line 36821

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

- (String) custom_emulated_machine

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


36830
36831
36832
# File 'lib/ovirtsdk4/types.rb', line 36830

def custom_emulated_machine
  return @custom_emulated_machine
end

- (Object) custom_emulated_machine=(value)

Sets the value of the custom_emulated_machine attribute.

Parameters:

  • value (String)


36839
36840
36841
# File 'lib/ovirtsdk4/types.rb', line 36839

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

- (Array<CustomProperty>) custom_properties

Returns the value of the custom_properties attribute.

Returns:



36848
36849
36850
# File 'lib/ovirtsdk4/types.rb', line 36848

def custom_properties
  return @custom_properties
end

- (Object) custom_properties=(list)

Sets the value of the custom_properties attribute.

Parameters:



36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
# File 'lib/ovirtsdk4/types.rb', line 36856

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

- (Boolean) delete_protected

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


36873
36874
36875
# File 'lib/ovirtsdk4/types.rb', line 36873

def delete_protected
  return @delete_protected
end

- (Object) delete_protected=(value)

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


36882
36883
36884
# File 'lib/ovirtsdk4/types.rb', line 36882

def delete_protected=(value)
  @delete_protected = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


36891
36892
36893
# File 'lib/ovirtsdk4/types.rb', line 36891

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


36900
36901
36902
# File 'lib/ovirtsdk4/types.rb', line 36900

def description=(value)
  @description = value
end

- (Array<Disk>) disks

Returns the value of the disks attribute.

Returns:



36909
36910
36911
# File 'lib/ovirtsdk4/types.rb', line 36909

def disks
  return @disks
end

- (Object) disks=(list)

Sets the value of the disks attribute.

Parameters:

  • list (Array<Disk>)


36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
# File 'lib/ovirtsdk4/types.rb', line 36917

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

- (Display) display

Returns the value of the display attribute.

Returns:



36934
36935
36936
# File 'lib/ovirtsdk4/types.rb', line 36934

def display
  return @display
end

- (Object) display=(value)

Sets the value of the display attribute.

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

Parameters:



36947
36948
36949
36950
36951
36952
# File 'lib/ovirtsdk4/types.rb', line 36947

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

- (Domain) domain

Returns the value of the domain attribute.

Returns:



36959
36960
36961
# File 'lib/ovirtsdk4/types.rb', line 36959

def domain
  return @domain
end

- (Object) domain=(value)

Sets the value of the domain attribute.

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

Parameters:



36972
36973
36974
36975
36976
36977
# File 'lib/ovirtsdk4/types.rb', line 36972

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

- (Array<GraphicsConsole>) graphics_consoles

Returns the value of the graphics_consoles attribute.

Returns:



36984
36985
36986
# File 'lib/ovirtsdk4/types.rb', line 36984

def graphics_consoles
  return @graphics_consoles
end

- (Object) graphics_consoles=(list)

Sets the value of the graphics_consoles attribute.

Parameters:



36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
# File 'lib/ovirtsdk4/types.rb', line 36992

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

- (HighAvailability) high_availability

Returns the value of the high_availability attribute.

Returns:



37009
37010
37011
# File 'lib/ovirtsdk4/types.rb', line 37009

def high_availability
  return @high_availability
end

- (Object) high_availability=(value)

Sets the value of the high_availability attribute.

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

Parameters:



37022
37023
37024
37025
37026
37027
# File 'lib/ovirtsdk4/types.rb', line 37022

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

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


37034
37035
37036
# File 'lib/ovirtsdk4/types.rb', line 37034

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


37043
37044
37045
# File 'lib/ovirtsdk4/types.rb', line 37043

def id=(value)
  @id = value
end

- (Initialization) initialization

Returns the value of the initialization attribute.

Returns:



37052
37053
37054
# File 'lib/ovirtsdk4/types.rb', line 37052

def initialization
  return @initialization
end

- (Object) initialization=(value)

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:



37065
37066
37067
37068
37069
37070
# File 'lib/ovirtsdk4/types.rb', line 37065

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

- (Io) io

Returns the value of the io attribute.

Returns:



37077
37078
37079
# File 'lib/ovirtsdk4/types.rb', line 37077

def io
  return @io
end

- (Object) io=(value)

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)


37090
37091
37092
37093
37094
37095
# File 'lib/ovirtsdk4/types.rb', line 37090

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

- (Icon) large_icon

Returns the value of the large_icon attribute.

Returns:



37102
37103
37104
# File 'lib/ovirtsdk4/types.rb', line 37102

def large_icon
  return @large_icon
end

- (Object) large_icon=(value)

Sets the value of the large_icon attribute.

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


37115
37116
37117
37118
37119
37120
# File 'lib/ovirtsdk4/types.rb', line 37115

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

- (Integer) memory

Returns the value of the memory attribute.

Returns:

  • (Integer)


37127
37128
37129
# File 'lib/ovirtsdk4/types.rb', line 37127

def memory
  return @memory
end

- (Object) memory=(value)

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


37136
37137
37138
# File 'lib/ovirtsdk4/types.rb', line 37136

def memory=(value)
  @memory = value
end

- (MemoryPolicy) memory_policy

Returns the value of the memory_policy attribute.

Returns:



37145
37146
37147
# File 'lib/ovirtsdk4/types.rb', line 37145

def memory_policy
  return @memory_policy
end

- (Object) memory_policy=(value)

Sets the value of the memory_policy attribute.

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

Parameters:



37158
37159
37160
37161
37162
37163
# File 'lib/ovirtsdk4/types.rb', line 37158

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

- (MigrationOptions) migration

Returns the value of the migration attribute.

Returns:



37170
37171
37172
# File 'lib/ovirtsdk4/types.rb', line 37170

def migration
  return @migration
end

- (Object) migration=(value)

Sets the value of the migration attribute.

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

Parameters:



37183
37184
37185
37186
37187
37188
# File 'lib/ovirtsdk4/types.rb', line 37183

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

- (Integer) migration_downtime

Returns the value of the migration_downtime attribute.

Returns:

  • (Integer)


37195
37196
37197
# File 'lib/ovirtsdk4/types.rb', line 37195

def migration_downtime
  return @migration_downtime
end

- (Object) migration_downtime=(value)

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


37204
37205
37206
# File 'lib/ovirtsdk4/types.rb', line 37204

def migration_downtime=(value)
  @migration_downtime = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


37213
37214
37215
# File 'lib/ovirtsdk4/types.rb', line 37213

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


37222
37223
37224
# File 'lib/ovirtsdk4/types.rb', line 37222

def name=(value)
  @name = value
end

- (Array<Nic>) nics

Returns the value of the nics attribute.

Returns:



37231
37232
37233
# File 'lib/ovirtsdk4/types.rb', line 37231

def nics
  return @nics
end

- (Object) nics=(list)

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
# File 'lib/ovirtsdk4/types.rb', line 37239

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

- (String) origin

Returns the value of the origin attribute.

Returns:

  • (String)


37256
37257
37258
# File 'lib/ovirtsdk4/types.rb', line 37256

def origin
  return @origin
end

- (Object) origin=(value)

Sets the value of the origin attribute.

Parameters:

  • value (String)


37265
37266
37267
# File 'lib/ovirtsdk4/types.rb', line 37265

def origin=(value)
  @origin = value
end

- (OperatingSystem) os

Returns the value of the os attribute.

Returns:



37274
37275
37276
# File 'lib/ovirtsdk4/types.rb', line 37274

def os
  return @os
end

- (Object) os=(value)

Sets the value of the os attribute.

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

Parameters:



37287
37288
37289
37290
37291
37292
# File 'lib/ovirtsdk4/types.rb', line 37287

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

- (Array<Permission>) permissions

Returns the value of the permissions attribute.

Returns:



37299
37300
37301
# File 'lib/ovirtsdk4/types.rb', line 37299

def permissions
  return @permissions
end

- (Object) permissions=(list)

Sets the value of the permissions attribute.

Parameters:



37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
# File 'lib/ovirtsdk4/types.rb', line 37307

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

- (RngDevice) rng_device

Returns the value of the rng_device attribute.

Returns:



37324
37325
37326
# File 'lib/ovirtsdk4/types.rb', line 37324

def rng_device
  return @rng_device
end

- (Object) rng_device=(value)

Sets the value of the rng_device attribute.

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

Parameters:



37337
37338
37339
37340
37341
37342
# File 'lib/ovirtsdk4/types.rb', line 37337

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

- (SerialNumber) serial_number

Returns the value of the serial_number attribute.

Returns:



37349
37350
37351
# File 'lib/ovirtsdk4/types.rb', line 37349

def serial_number
  return @serial_number
end

- (Object) serial_number=(value)

Sets the value of the serial_number attribute.

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

Parameters:



37362
37363
37364
37365
37366
37367
# File 'lib/ovirtsdk4/types.rb', line 37362

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

- (Icon) small_icon

Returns the value of the small_icon attribute.

Returns:



37374
37375
37376
# File 'lib/ovirtsdk4/types.rb', line 37374

def small_icon
  return @small_icon
end

- (Object) small_icon=(value)

Sets the value of the small_icon attribute.

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


37387
37388
37389
37390
37391
37392
# File 'lib/ovirtsdk4/types.rb', line 37387

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

- (Boolean) soundcard_enabled

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


37399
37400
37401
# File 'lib/ovirtsdk4/types.rb', line 37399

def soundcard_enabled
  return @soundcard_enabled
end

- (Object) soundcard_enabled=(value)

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


37408
37409
37410
# File 'lib/ovirtsdk4/types.rb', line 37408

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

- (Sso) sso

Returns the value of the sso attribute.

Returns:



37417
37418
37419
# File 'lib/ovirtsdk4/types.rb', line 37417

def sso
  return @sso
end

- (Object) sso=(value)

Sets the value of the sso attribute.

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

Parameters:

  • value (Sso, Hash)


37430
37431
37432
37433
37434
37435
# File 'lib/ovirtsdk4/types.rb', line 37430

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

- (Boolean) start_paused

Returns the value of the start_paused attribute.

Returns:

  • (Boolean)


37442
37443
37444
# File 'lib/ovirtsdk4/types.rb', line 37442

def start_paused
  return @start_paused
end

- (Object) start_paused=(value)

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


37451
37452
37453
# File 'lib/ovirtsdk4/types.rb', line 37451

def start_paused=(value)
  @start_paused = value
end

- (Boolean) stateless

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


37460
37461
37462
# File 'lib/ovirtsdk4/types.rb', line 37460

def stateless
  return @stateless
end

- (Object) stateless=(value)

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


37469
37470
37471
# File 'lib/ovirtsdk4/types.rb', line 37469

def stateless=(value)
  @stateless = value
end

- (TemplateStatus) status

Returns the value of the status attribute.

Returns:



37478
37479
37480
# File 'lib/ovirtsdk4/types.rb', line 37478

def status
  return @status
end

- (Object) status=(value)

Sets the value of the status attribute.

Parameters:



37487
37488
37489
# File 'lib/ovirtsdk4/types.rb', line 37487

def status=(value)
  @status = value
end

- (StorageDomain) storage_domain

Returns the value of the storage_domain attribute.

Returns:



37496
37497
37498
# File 'lib/ovirtsdk4/types.rb', line 37496

def storage_domain
  return @storage_domain
end

- (Object) storage_domain=(value)

Sets the value of the storage_domain attribute.

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

Parameters:



37509
37510
37511
37512
37513
37514
# File 'lib/ovirtsdk4/types.rb', line 37509

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

- (Array<Tag>) tags

Returns the value of the tags attribute.

Returns:



37521
37522
37523
# File 'lib/ovirtsdk4/types.rb', line 37521

def tags
  return @tags
end

- (Object) tags=(list)

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
# File 'lib/ovirtsdk4/types.rb', line 37529

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

- (TimeZone) time_zone

Returns the value of the time_zone attribute.

Returns:



37546
37547
37548
# File 'lib/ovirtsdk4/types.rb', line 37546

def time_zone
  return @time_zone
end

- (Object) time_zone=(value)

Sets the value of the time_zone attribute.

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



37559
37560
37561
37562
37563
37564
# File 'lib/ovirtsdk4/types.rb', line 37559

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

- (Boolean) tunnel_migration

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


37571
37572
37573
# File 'lib/ovirtsdk4/types.rb', line 37571

def tunnel_migration
  return @tunnel_migration
end

- (Object) tunnel_migration=(value)

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


37580
37581
37582
# File 'lib/ovirtsdk4/types.rb', line 37580

def tunnel_migration=(value)
  @tunnel_migration = value
end

- (VmType) type

Returns the value of the type attribute.

Returns:



37589
37590
37591
# File 'lib/ovirtsdk4/types.rb', line 37589

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



37598
37599
37600
# File 'lib/ovirtsdk4/types.rb', line 37598

def type=(value)
  @type = value
end

- (Usb) usb

Returns the value of the usb attribute.

Returns:



37607
37608
37609
# File 'lib/ovirtsdk4/types.rb', line 37607

def usb
  return @usb
end

- (Object) usb=(value)

Sets the value of the usb attribute.

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

Parameters:

  • value (Usb, Hash)


37620
37621
37622
37623
37624
37625
# File 'lib/ovirtsdk4/types.rb', line 37620

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

- (TemplateVersion) version

Returns the value of the version attribute.

Returns:



37632
37633
37634
# File 'lib/ovirtsdk4/types.rb', line 37632

def version
  return @version
end

- (Object) version=(value)

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:



37645
37646
37647
37648
37649
37650
# File 'lib/ovirtsdk4/types.rb', line 37645

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

- (VirtioScsi) virtio_scsi

Returns the value of the virtio_scsi attribute.

Returns:



37657
37658
37659
# File 'lib/ovirtsdk4/types.rb', line 37657

def virtio_scsi
  return @virtio_scsi
end

- (Object) virtio_scsi=(value)

Sets the value of the virtio_scsi attribute.

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

Parameters:



37670
37671
37672
37673
37674
37675
# File 'lib/ovirtsdk4/types.rb', line 37670

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

- (Vm) vm

Returns the value of the vm attribute.

Returns:



37682
37683
37684
# File 'lib/ovirtsdk4/types.rb', line 37682

def vm
  return @vm
end

- (Object) vm=(value)

Sets the value of the vm attribute.

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

Parameters:

  • value (Vm, Hash)


37695
37696
37697
37698
37699
37700
# File 'lib/ovirtsdk4/types.rb', line 37695

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

- (Array<Watchdog>) watchdogs

Returns the value of the watchdogs attribute.

Returns:



37707
37708
37709
# File 'lib/ovirtsdk4/types.rb', line 37707

def watchdogs
  return @watchdogs
end

- (Object) watchdogs=(list)

Sets the value of the watchdogs attribute.

Parameters:



37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
# File 'lib/ovirtsdk4/types.rb', line 37715

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