Class: OvirtSDK4::VmBase

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

Direct Known Subclasses

Template, Vm

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (VmBase) initialize(opts = {})

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

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

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

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

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

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

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.



19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
# File 'lib/ovirtsdk4/types.rb', line 19570

def initialize(opts = {})
  super(opts)
  self.bios = opts[:bios]
  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.display = opts[:display]
  self.domain = opts[:domain]
  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.origin = opts[:origin]
  self.os = opts[:os]
  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.storage_domain = opts[:storage_domain]
  self.time_zone = opts[:time_zone]
  self.tunnel_migration = opts[:tunnel_migration]
  self.type = opts[:type]
  self.usb = opts[:usb]
  self.virtio_scsi = opts[:virtio_scsi]
end

Instance Method Details

- (Bios) bios

Returns the value of the bios attribute.

Returns:



18579
18580
18581
# File 'lib/ovirtsdk4/types.rb', line 18579

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)


18592
18593
18594
18595
18596
18597
# File 'lib/ovirtsdk4/types.rb', line 18592

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

- (Cluster) cluster

Returns the value of the cluster attribute.

Returns:



18604
18605
18606
# File 'lib/ovirtsdk4/types.rb', line 18604

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:



18617
18618
18619
18620
18621
18622
# File 'lib/ovirtsdk4/types.rb', line 18617

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)


18629
18630
18631
# File 'lib/ovirtsdk4/types.rb', line 18629

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


18638
18639
18640
# File 'lib/ovirtsdk4/types.rb', line 18638

def comment=(value)
  @comment = value
end

- (Console) console

Returns the value of the console attribute.

Returns:



18647
18648
18649
# File 'lib/ovirtsdk4/types.rb', line 18647

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:



18660
18661
18662
18663
18664
18665
# File 'lib/ovirtsdk4/types.rb', line 18660

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:



18672
18673
18674
# File 'lib/ovirtsdk4/types.rb', line 18672

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)


18685
18686
18687
18688
18689
18690
# File 'lib/ovirtsdk4/types.rb', line 18685

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:



18697
18698
18699
# File 'lib/ovirtsdk4/types.rb', line 18697

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:



18710
18711
18712
18713
18714
18715
# File 'lib/ovirtsdk4/types.rb', line 18710

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)


18722
18723
18724
# File 'lib/ovirtsdk4/types.rb', line 18722

def cpu_shares
  return @cpu_shares
end

- (Object) cpu_shares=(value)

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


18731
18732
18733
# File 'lib/ovirtsdk4/types.rb', line 18731

def cpu_shares=(value)
  @cpu_shares = value
end

- (DateTime) creation_time

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


18740
18741
18742
# File 'lib/ovirtsdk4/types.rb', line 18740

def creation_time
  return @creation_time
end

- (Object) creation_time=(value)

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


18749
18750
18751
# File 'lib/ovirtsdk4/types.rb', line 18749

def creation_time=(value)
  @creation_time = value
end

- (Version) custom_compatibility_version

Returns the value of the custom_compatibility_version attribute.

Returns:



18758
18759
18760
# File 'lib/ovirtsdk4/types.rb', line 18758

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



18771
18772
18773
18774
18775
18776
# File 'lib/ovirtsdk4/types.rb', line 18771

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)


18783
18784
18785
# File 'lib/ovirtsdk4/types.rb', line 18783

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)


18792
18793
18794
# File 'lib/ovirtsdk4/types.rb', line 18792

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)


18801
18802
18803
# File 'lib/ovirtsdk4/types.rb', line 18801

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)


18810
18811
18812
# File 'lib/ovirtsdk4/types.rb', line 18810

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

- (Array<CustomProperty>) custom_properties

Returns the value of the custom_properties attribute.

Returns:



18819
18820
18821
# File 'lib/ovirtsdk4/types.rb', line 18819

def custom_properties
  return @custom_properties
end

- (Object) custom_properties=(list)

Sets the value of the custom_properties attribute.

Parameters:



18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
# File 'lib/ovirtsdk4/types.rb', line 18827

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)


18844
18845
18846
# File 'lib/ovirtsdk4/types.rb', line 18844

def delete_protected
  return @delete_protected
end

- (Object) delete_protected=(value)

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


18853
18854
18855
# File 'lib/ovirtsdk4/types.rb', line 18853

def delete_protected=(value)
  @delete_protected = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


18862
18863
18864
# File 'lib/ovirtsdk4/types.rb', line 18862

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


18871
18872
18873
# File 'lib/ovirtsdk4/types.rb', line 18871

def description=(value)
  @description = value
end

- (Display) display

Returns the value of the display attribute.

Returns:



18880
18881
18882
# File 'lib/ovirtsdk4/types.rb', line 18880

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:



18893
18894
18895
18896
18897
18898
# File 'lib/ovirtsdk4/types.rb', line 18893

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:



18905
18906
18907
# File 'lib/ovirtsdk4/types.rb', line 18905

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:



18918
18919
18920
18921
18922
18923
# File 'lib/ovirtsdk4/types.rb', line 18918

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

- (HighAvailability) high_availability

Returns the value of the high_availability attribute.

Returns:



18930
18931
18932
# File 'lib/ovirtsdk4/types.rb', line 18930

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:



18943
18944
18945
18946
18947
18948
# File 'lib/ovirtsdk4/types.rb', line 18943

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)


18955
18956
18957
# File 'lib/ovirtsdk4/types.rb', line 18955

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


18964
18965
18966
# File 'lib/ovirtsdk4/types.rb', line 18964

def id=(value)
  @id = value
end

- (Initialization) initialization

Returns the value of the initialization attribute.

Returns:



18973
18974
18975
# File 'lib/ovirtsdk4/types.rb', line 18973

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:



18986
18987
18988
18989
18990
18991
# File 'lib/ovirtsdk4/types.rb', line 18986

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:



18998
18999
19000
# File 'lib/ovirtsdk4/types.rb', line 18998

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)


19011
19012
19013
19014
19015
19016
# File 'lib/ovirtsdk4/types.rb', line 19011

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:



19023
19024
19025
# File 'lib/ovirtsdk4/types.rb', line 19023

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)


19036
19037
19038
19039
19040
19041
# File 'lib/ovirtsdk4/types.rb', line 19036

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)


19048
19049
19050
# File 'lib/ovirtsdk4/types.rb', line 19048

def memory
  return @memory
end

- (Object) memory=(value)

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


19057
19058
19059
# File 'lib/ovirtsdk4/types.rb', line 19057

def memory=(value)
  @memory = value
end

- (MemoryPolicy) memory_policy

Returns the value of the memory_policy attribute.

Returns:



19066
19067
19068
# File 'lib/ovirtsdk4/types.rb', line 19066

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:



19079
19080
19081
19082
19083
19084
# File 'lib/ovirtsdk4/types.rb', line 19079

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:



19091
19092
19093
# File 'lib/ovirtsdk4/types.rb', line 19091

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:



19104
19105
19106
19107
19108
19109
# File 'lib/ovirtsdk4/types.rb', line 19104

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)


19116
19117
19118
# File 'lib/ovirtsdk4/types.rb', line 19116

def migration_downtime
  return @migration_downtime
end

- (Object) migration_downtime=(value)

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


19125
19126
19127
# File 'lib/ovirtsdk4/types.rb', line 19125

def migration_downtime=(value)
  @migration_downtime = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


19134
19135
19136
# File 'lib/ovirtsdk4/types.rb', line 19134

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


19143
19144
19145
# File 'lib/ovirtsdk4/types.rb', line 19143

def name=(value)
  @name = value
end

- (String) origin

Returns the value of the origin attribute.

Returns:

  • (String)


19152
19153
19154
# File 'lib/ovirtsdk4/types.rb', line 19152

def origin
  return @origin
end

- (Object) origin=(value)

Sets the value of the origin attribute.

Parameters:

  • value (String)


19161
19162
19163
# File 'lib/ovirtsdk4/types.rb', line 19161

def origin=(value)
  @origin = value
end

- (OperatingSystem) os

Returns the value of the os attribute.

Returns:



19170
19171
19172
# File 'lib/ovirtsdk4/types.rb', line 19170

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:



19183
19184
19185
19186
19187
19188
# File 'lib/ovirtsdk4/types.rb', line 19183

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

- (RngDevice) rng_device

Returns the value of the rng_device attribute.

Returns:



19195
19196
19197
# File 'lib/ovirtsdk4/types.rb', line 19195

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:



19208
19209
19210
19211
19212
19213
# File 'lib/ovirtsdk4/types.rb', line 19208

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:



19220
19221
19222
# File 'lib/ovirtsdk4/types.rb', line 19220

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:



19233
19234
19235
19236
19237
19238
# File 'lib/ovirtsdk4/types.rb', line 19233

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:



19245
19246
19247
# File 'lib/ovirtsdk4/types.rb', line 19245

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)


19258
19259
19260
19261
19262
19263
# File 'lib/ovirtsdk4/types.rb', line 19258

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)


19270
19271
19272
# File 'lib/ovirtsdk4/types.rb', line 19270

def soundcard_enabled
  return @soundcard_enabled
end

- (Object) soundcard_enabled=(value)

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


19279
19280
19281
# File 'lib/ovirtsdk4/types.rb', line 19279

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

- (Sso) sso

Returns the value of the sso attribute.

Returns:



19288
19289
19290
# File 'lib/ovirtsdk4/types.rb', line 19288

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)


19301
19302
19303
19304
19305
19306
# File 'lib/ovirtsdk4/types.rb', line 19301

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)


19313
19314
19315
# File 'lib/ovirtsdk4/types.rb', line 19313

def start_paused
  return @start_paused
end

- (Object) start_paused=(value)

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


19322
19323
19324
# File 'lib/ovirtsdk4/types.rb', line 19322

def start_paused=(value)
  @start_paused = value
end

- (Boolean) stateless

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


19331
19332
19333
# File 'lib/ovirtsdk4/types.rb', line 19331

def stateless
  return @stateless
end

- (Object) stateless=(value)

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


19340
19341
19342
# File 'lib/ovirtsdk4/types.rb', line 19340

def stateless=(value)
  @stateless = value
end

- (StorageDomain) storage_domain

Returns the value of the storage_domain attribute.

Returns:



19349
19350
19351
# File 'lib/ovirtsdk4/types.rb', line 19349

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:



19362
19363
19364
19365
19366
19367
# File 'lib/ovirtsdk4/types.rb', line 19362

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

- (TimeZone) time_zone

Returns the value of the time_zone attribute.

Returns:



19374
19375
19376
# File 'lib/ovirtsdk4/types.rb', line 19374

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



19387
19388
19389
19390
19391
19392
# File 'lib/ovirtsdk4/types.rb', line 19387

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)


19399
19400
19401
# File 'lib/ovirtsdk4/types.rb', line 19399

def tunnel_migration
  return @tunnel_migration
end

- (Object) tunnel_migration=(value)

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


19408
19409
19410
# File 'lib/ovirtsdk4/types.rb', line 19408

def tunnel_migration=(value)
  @tunnel_migration = value
end

- (VmType) type

Returns the value of the type attribute.

Returns:



19417
19418
19419
# File 'lib/ovirtsdk4/types.rb', line 19417

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



19426
19427
19428
# File 'lib/ovirtsdk4/types.rb', line 19426

def type=(value)
  @type = value
end

- (Usb) usb

Returns the value of the usb attribute.

Returns:



19435
19436
19437
# File 'lib/ovirtsdk4/types.rb', line 19435

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)


19448
19449
19450
19451
19452
19453
# File 'lib/ovirtsdk4/types.rb', line 19448

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

- (VirtioScsi) virtio_scsi

Returns the value of the virtio_scsi attribute.

Returns:



19460
19461
19462
# File 'lib/ovirtsdk4/types.rb', line 19460

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



19473
19474
19475
19476
19477
19478
# File 'lib/ovirtsdk4/types.rb', line 19473

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