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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ VmBase

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.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :multi_queues_enabled (Boolean)

    The value of attribute multi_queues_enabled.

  • :name (String)

    The value of attribute name.

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_error_resume_behaviour (VmStorageErrorResumeBehaviour)

    The value of attribute storage_error_resume_behaviour.

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


25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
# File 'lib/ovirtsdk4/types.rb', line 25836

def initialize(opts = {})
  super(opts)
  self.bios = opts[:bios]
  self.cluster = opts[:cluster]
  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.display = opts[:display]
  self.domain = opts[:domain]
  self.high_availability = opts[:high_availability]
  self.initialization = opts[:initialization]
  self.io = opts[:io]
  self.large_icon = opts[:large_icon]
  self.lease = opts[:lease]
  self.memory = opts[:memory]
  self.memory_policy = opts[:memory_policy]
  self.migration = opts[:migration]
  self.migration_downtime = opts[:migration_downtime]
  self.multi_queues_enabled = opts[:multi_queues_enabled]
  self.origin = opts[:origin]
  self.os = opts[:os]
  self.placement_policy = opts[:placement_policy]
  self.quota = opts[:quota]
  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.storage_error_resume_behaviour = opts[:storage_error_resume_behaviour]
  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

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
# File 'lib/ovirtsdk4/types.rb', line 25885

def ==(other)
  super &&
  @bios == other.bios &&
  @cluster == other.cluster &&
  @console == other.console &&
  @cpu == other.cpu &&
  @cpu_profile == other.cpu_profile &&
  @cpu_shares == other.cpu_shares &&
  @creation_time == other.creation_time &&
  @custom_compatibility_version == other.custom_compatibility_version &&
  @custom_cpu_model == other.custom_cpu_model &&
  @custom_emulated_machine == other.custom_emulated_machine &&
  @custom_properties == other.custom_properties &&
  @delete_protected == other.delete_protected &&
  @display == other.display &&
  @domain == other.domain &&
  @high_availability == other.high_availability &&
  @initialization == other.initialization &&
  @io == other.io &&
  @large_icon == other.large_icon &&
  @lease == other.lease &&
  @memory == other.memory &&
  @memory_policy == other.memory_policy &&
  @migration == other.migration &&
  @migration_downtime == other.migration_downtime &&
  @multi_queues_enabled == other.multi_queues_enabled &&
  @origin == other.origin &&
  @os == other.os &&
  @placement_policy == other.placement_policy &&
  @quota == other.quota &&
  @rng_device == other.rng_device &&
  @serial_number == other.serial_number &&
  @small_icon == other.small_icon &&
  @soundcard_enabled == other.soundcard_enabled &&
  @sso == other.sso &&
  @start_paused == other.start_paused &&
  @stateless == other.stateless &&
  @storage_domain == other.storage_domain &&
  @storage_error_resume_behaviour == other.storage_error_resume_behaviour &&
  @time_zone == other.time_zone &&
  @tunnel_migration == other.tunnel_migration &&
  @type == other.type &&
  @usb == other.usb &&
  @virtio_scsi == other.virtio_scsi
end

#biosBios

Returns the value of the bios attribute.

Returns:


24723
24724
24725
# File 'lib/ovirtsdk4/types.rb', line 24723

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)

24736
24737
24738
24739
24740
24741
# File 'lib/ovirtsdk4/types.rb', line 24736

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

#clusterCluster

Returns the value of the cluster attribute.

Returns:


24748
24749
24750
# File 'lib/ovirtsdk4/types.rb', line 24748

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:


24761
24762
24763
24764
24765
24766
# File 'lib/ovirtsdk4/types.rb', line 24761

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)

24773
24774
24775
# File 'lib/ovirtsdk4/types.rb', line 24773

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

24782
24783
24784
# File 'lib/ovirtsdk4/types.rb', line 24782

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:


24791
24792
24793
# File 'lib/ovirtsdk4/types.rb', line 24791

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:


24804
24805
24806
24807
24808
24809
# File 'lib/ovirtsdk4/types.rb', line 24804

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:


24816
24817
24818
# File 'lib/ovirtsdk4/types.rb', line 24816

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)

24829
24830
24831
24832
24833
24834
# File 'lib/ovirtsdk4/types.rb', line 24829

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:


24841
24842
24843
# File 'lib/ovirtsdk4/types.rb', line 24841

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:


24854
24855
24856
24857
24858
24859
# File 'lib/ovirtsdk4/types.rb', line 24854

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)

24866
24867
24868
# File 'lib/ovirtsdk4/types.rb', line 24866

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)

24875
24876
24877
# File 'lib/ovirtsdk4/types.rb', line 24875

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)

24884
24885
24886
# File 'lib/ovirtsdk4/types.rb', line 24884

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)

24893
24894
24895
# File 'lib/ovirtsdk4/types.rb', line 24893

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:


24902
24903
24904
# File 'lib/ovirtsdk4/types.rb', line 24902

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


24915
24916
24917
24918
24919
24920
# File 'lib/ovirtsdk4/types.rb', line 24915

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)

24927
24928
24929
# File 'lib/ovirtsdk4/types.rb', line 24927

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)

24936
24937
24938
# File 'lib/ovirtsdk4/types.rb', line 24936

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)

24945
24946
24947
# File 'lib/ovirtsdk4/types.rb', line 24945

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)

24954
24955
24956
# File 'lib/ovirtsdk4/types.rb', line 24954

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:


24963
24964
24965
# File 'lib/ovirtsdk4/types.rb', line 24963

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:


24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
# File 'lib/ovirtsdk4/types.rb', line 24972

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)

24989
24990
24991
# File 'lib/ovirtsdk4/types.rb', line 24989

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)

24998
24999
25000
# File 'lib/ovirtsdk4/types.rb', line 24998

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

25007
25008
25009
# File 'lib/ovirtsdk4/types.rb', line 25007

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

25016
25017
25018
# File 'lib/ovirtsdk4/types.rb', line 25016

def description=(value)
  @description = value
end

#displayDisplay

Returns the value of the display attribute.

Returns:


25025
25026
25027
# File 'lib/ovirtsdk4/types.rb', line 25025

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:


25038
25039
25040
25041
25042
25043
# File 'lib/ovirtsdk4/types.rb', line 25038

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:


25050
25051
25052
# File 'lib/ovirtsdk4/types.rb', line 25050

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:


25063
25064
25065
25066
25067
25068
# File 'lib/ovirtsdk4/types.rb', line 25063

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

#hashObject

Generates a hash value for this object.


25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
# File 'lib/ovirtsdk4/types.rb', line 25934

def hash
  super +
  @bios.hash +
  @cluster.hash +
  @console.hash +
  @cpu.hash +
  @cpu_profile.hash +
  @cpu_shares.hash +
  @creation_time.hash +
  @custom_compatibility_version.hash +
  @custom_cpu_model.hash +
  @custom_emulated_machine.hash +
  @custom_properties.hash +
  @delete_protected.hash +
  @display.hash +
  @domain.hash +
  @high_availability.hash +
  @initialization.hash +
  @io.hash +
  @large_icon.hash +
  @lease.hash +
  @memory.hash +
  @memory_policy.hash +
  @migration.hash +
  @migration_downtime.hash +
  @multi_queues_enabled.hash +
  @origin.hash +
  @os.hash +
  @placement_policy.hash +
  @quota.hash +
  @rng_device.hash +
  @serial_number.hash +
  @small_icon.hash +
  @soundcard_enabled.hash +
  @sso.hash +
  @start_paused.hash +
  @stateless.hash +
  @storage_domain.hash +
  @storage_error_resume_behaviour.hash +
  @time_zone.hash +
  @tunnel_migration.hash +
  @type.hash +
  @usb.hash +
  @virtio_scsi.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:


25075
25076
25077
# File 'lib/ovirtsdk4/types.rb', line 25075

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:


25088
25089
25090
25091
25092
25093
# File 'lib/ovirtsdk4/types.rb', line 25088

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)

25100
25101
25102
# File 'lib/ovirtsdk4/types.rb', line 25100

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

25109
25110
25111
# File 'lib/ovirtsdk4/types.rb', line 25109

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:


25118
25119
25120
# File 'lib/ovirtsdk4/types.rb', line 25118

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:


25131
25132
25133
25134
25135
25136
# File 'lib/ovirtsdk4/types.rb', line 25131

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:


25143
25144
25145
# File 'lib/ovirtsdk4/types.rb', line 25143

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)

25156
25157
25158
25159
25160
25161
# File 'lib/ovirtsdk4/types.rb', line 25156

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:


25168
25169
25170
# File 'lib/ovirtsdk4/types.rb', line 25168

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)

25181
25182
25183
25184
25185
25186
# File 'lib/ovirtsdk4/types.rb', line 25181

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:


25193
25194
25195
# File 'lib/ovirtsdk4/types.rb', line 25193

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:


25206
25207
25208
25209
25210
25211
# File 'lib/ovirtsdk4/types.rb', line 25206

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)

25218
25219
25220
# File 'lib/ovirtsdk4/types.rb', line 25218

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)

25227
25228
25229
# File 'lib/ovirtsdk4/types.rb', line 25227

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


25236
25237
25238
# File 'lib/ovirtsdk4/types.rb', line 25236

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:


25249
25250
25251
25252
25253
25254
# File 'lib/ovirtsdk4/types.rb', line 25249

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:


25261
25262
25263
# File 'lib/ovirtsdk4/types.rb', line 25261

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:


25274
25275
25276
25277
25278
25279
# File 'lib/ovirtsdk4/types.rb', line 25274

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)

25286
25287
25288
# File 'lib/ovirtsdk4/types.rb', line 25286

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)

25295
25296
25297
# File 'lib/ovirtsdk4/types.rb', line 25295

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)

25304
25305
25306
# File 'lib/ovirtsdk4/types.rb', line 25304

def multi_queues_enabled
  @multi_queues_enabled
end

#multi_queues_enabled=(value) ⇒ Object

Sets the value of the multi_queues_enabled attribute.

Parameters:

  • value (Boolean)

25313
25314
25315
# File 'lib/ovirtsdk4/types.rb', line 25313

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

25322
25323
25324
# File 'lib/ovirtsdk4/types.rb', line 25322

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

25331
25332
25333
# File 'lib/ovirtsdk4/types.rb', line 25331

def name=(value)
  @name = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)

25340
25341
25342
# File 'lib/ovirtsdk4/types.rb', line 25340

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)

25349
25350
25351
# File 'lib/ovirtsdk4/types.rb', line 25349

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:


25358
25359
25360
# File 'lib/ovirtsdk4/types.rb', line 25358

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:


25371
25372
25373
25374
25375
25376
# File 'lib/ovirtsdk4/types.rb', line 25371

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

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:


25383
25384
25385
# File 'lib/ovirtsdk4/types.rb', line 25383

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


25396
25397
25398
25399
25400
25401
# File 'lib/ovirtsdk4/types.rb', line 25396

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:


25408
25409
25410
# File 'lib/ovirtsdk4/types.rb', line 25408

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:


25421
25422
25423
25424
25425
25426
# File 'lib/ovirtsdk4/types.rb', line 25421

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:


25433
25434
25435
# File 'lib/ovirtsdk4/types.rb', line 25433

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:


25446
25447
25448
25449
25450
25451
# File 'lib/ovirtsdk4/types.rb', line 25446

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:


25458
25459
25460
# File 'lib/ovirtsdk4/types.rb', line 25458

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:


25471
25472
25473
25474
25475
25476
# File 'lib/ovirtsdk4/types.rb', line 25471

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:


25483
25484
25485
# File 'lib/ovirtsdk4/types.rb', line 25483

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)

25496
25497
25498
25499
25500
25501
# File 'lib/ovirtsdk4/types.rb', line 25496

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)

25508
25509
25510
# File 'lib/ovirtsdk4/types.rb', line 25508

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)

25517
25518
25519
# File 'lib/ovirtsdk4/types.rb', line 25517

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:


25526
25527
25528
# File 'lib/ovirtsdk4/types.rb', line 25526

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)

25539
25540
25541
25542
25543
25544
# File 'lib/ovirtsdk4/types.rb', line 25539

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)

25551
25552
25553
# File 'lib/ovirtsdk4/types.rb', line 25551

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)

25560
25561
25562
# File 'lib/ovirtsdk4/types.rb', line 25560

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)

25569
25570
25571
# File 'lib/ovirtsdk4/types.rb', line 25569

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)

25578
25579
25580
# File 'lib/ovirtsdk4/types.rb', line 25578

def stateless=(value)
  @stateless = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


25587
25588
25589
# File 'lib/ovirtsdk4/types.rb', line 25587

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:


25600
25601
25602
25603
25604
25605
# File 'lib/ovirtsdk4/types.rb', line 25600

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.


25612
25613
25614
# File 'lib/ovirtsdk4/types.rb', line 25612

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:


25621
25622
25623
# File 'lib/ovirtsdk4/types.rb', line 25621

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#time_zoneTimeZone

Returns the value of the time_zone attribute.

Returns:


25630
25631
25632
# File 'lib/ovirtsdk4/types.rb', line 25630

def time_zone
  @time_zone
end

#time_zone=(value) ⇒ Object

Sets the value of the time_zone attribute.

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

Parameters:


25643
25644
25645
25646
25647
25648
# File 'lib/ovirtsdk4/types.rb', line 25643

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)

25655
25656
25657
# File 'lib/ovirtsdk4/types.rb', line 25655

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

25664
25665
25666
# File 'lib/ovirtsdk4/types.rb', line 25664

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:


25673
25674
25675
# File 'lib/ovirtsdk4/types.rb', line 25673

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


25682
25683
25684
# File 'lib/ovirtsdk4/types.rb', line 25682

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:


25691
25692
25693
# File 'lib/ovirtsdk4/types.rb', line 25691

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)

25704
25705
25706
25707
25708
25709
# File 'lib/ovirtsdk4/types.rb', line 25704

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

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:


25716
25717
25718
# File 'lib/ovirtsdk4/types.rb', line 25716

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


25729
25730
25731
25732
25733
25734
# File 'lib/ovirtsdk4/types.rb', line 25729

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