Class: OvirtSDK4::Snapshot

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Snapshot

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

  • :affinity_labels (Array<AffinityLabel>, Array<Hash>)

    The values of attribute affinity_labels.

  • :applications (Array<Application>, Array<Hash>)

    The values of attribute applications.

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

  • :date (DateTime)

    The value of attribute date.

  • :delete_protected (Boolean)

    The value of attribute delete_protected.

  • :description (String)

    The value of attribute description.

  • :disk_attachments (Array<DiskAttachment>, Array<Hash>)

    The values of attribute disk_attachments.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :floppies (Array<Floppy>, Array<Hash>)

    The values of attribute floppies.

  • :fqdn (String)

    The value of attribute fqdn.

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

    The values of attribute graphics_consoles.

  • :guest_operating_system (GuestOperatingSystem, Hash)

    The value of attribute guest_operating_system.

  • :guest_time_zone (TimeZone, Hash)

    The value of attribute guest_time_zone.

  • :has_illegal_images (Boolean)

    The value of attribute has_illegal_images.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :host (Host, Hash)

    The value of attribute host.

  • :host_devices (Array<HostDevice>, Array<Hash>)

    The values of attribute host_devices.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :io (Io, Hash)

    The value of attribute io.

  • :katello_errata (Array<KatelloErratum>, Array<Hash>)

    The values of attribute katello_errata.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :name (String)

    The value of attribute name.

  • :next_run_configuration_exists (Boolean)

    The value of attribute next_run_configuration_exists.

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

    The values of attribute nics.

  • :numa_nodes (Array<NumaNode>, Array<Hash>)

    The values of attribute numa_nodes.

  • :numa_tune_mode (NumaTuneMode)

    The value of attribute numa_tune_mode.

  • :origin (String)

    The value of attribute origin.

  • :original_template (Template, Hash)

    The value of attribute original_template.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

  • :payloads (Array<Payload>, Array<Hash>)

    The values of attribute payloads.

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

    The values of attribute permissions.

  • :persist_memorystate (Boolean)

    The value of attribute persist_memorystate.

  • :placement_policy (VmPlacementPolicy, Hash)

    The value of attribute placement_policy.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :reported_devices (Array<ReportedDevice>, Array<Hash>)

    The values of attribute reported_devices.

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :run_once (Boolean)

    The value of attribute run_once.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :sessions (Array<Session>, Array<Hash>)

    The values of attribute sessions.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

  • :snapshot_status (SnapshotStatus)

    The value of attribute snapshot_status.

  • :snapshot_type (SnapshotType)

    The value of attribute snapshot_type.

  • :snapshots (Array<Snapshot>, Array<Hash>)

    The values of attribute snapshots.

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

  • :start_time (DateTime)

    The value of attribute start_time.

  • :stateless (Boolean)

    The value of attribute stateless.

  • :statistics (Array<Statistic>, Array<Hash>)

    The values of attribute statistics.

  • :status (VmStatus)

    The value of attribute status.

  • :status_detail (String)

    The value of attribute status_detail.

  • :stop_reason (String)

    The value of attribute stop_reason.

  • :stop_time (DateTime)

    The value of attribute stop_time.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_error_resume_behaviour (VmStorageErrorResumeBehaviour)

    The value of attribute storage_error_resume_behaviour.

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

    The values of attribute tags.

  • :template (Template, Hash)

    The value of attribute template.

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

  • :use_latest_template_version (Boolean)

    The value of attribute use_latest_template_version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :vm (Vm, Hash)

    The value of attribute vm.

  • :vm_pool (VmPool, Hash)

    The value of attribute vm_pool.

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

    The values of attribute watchdogs.



54957
54958
54959
54960
54961
54962
54963
54964
# File 'lib/ovirtsdk4/types.rb', line 54957

def initialize(opts = {})
  super(opts)
  self.date = opts[:date]
  self.persist_memorystate = opts[:persist_memorystate]
  self.snapshot_status = opts[:snapshot_status]
  self.snapshot_type = opts[:snapshot_type]
  self.vm = opts[:vm]
end

Instance Method Details

#==(other) ⇒ Object

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



54969
54970
54971
54972
54973
54974
54975
54976
# File 'lib/ovirtsdk4/types.rb', line 54969

def ==(other)
  super &&
  @date == other.date &&
  @persist_memorystate == other.persist_memorystate &&
  @snapshot_status == other.snapshot_status &&
  @snapshot_type == other.snapshot_type &&
  @vm == other.vm
end

#affinity_labelsArray<AffinityLabel>

Returns the value of the affinity_labels attribute.

Returns:



52817
52818
52819
# File 'lib/ovirtsdk4/types.rb', line 52817

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



52826
52827
52828
52829
52830
52831
52832
52833
52834
52835
52836
# File 'lib/ovirtsdk4/types.rb', line 52826

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

#applicationsArray<Application>

Returns the value of the applications attribute.

Returns:



52843
52844
52845
# File 'lib/ovirtsdk4/types.rb', line 52843

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:



52852
52853
52854
52855
52856
52857
52858
52859
52860
52861
52862
# File 'lib/ovirtsdk4/types.rb', line 52852

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

#biosBios

Returns the value of the bios attribute.

Returns:



52869
52870
52871
# File 'lib/ovirtsdk4/types.rb', line 52869

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)


52882
52883
52884
52885
52886
52887
# File 'lib/ovirtsdk4/types.rb', line 52882

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

#cdromsArray<Cdrom>

Returns the value of the cdroms attribute.

Returns:



52894
52895
52896
# File 'lib/ovirtsdk4/types.rb', line 52894

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



52903
52904
52905
52906
52907
52908
52909
52910
52911
52912
52913
# File 'lib/ovirtsdk4/types.rb', line 52903

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

#clusterCluster

Returns the value of the cluster attribute.

Returns:



52920
52921
52922
# File 'lib/ovirtsdk4/types.rb', line 52920

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:



52933
52934
52935
52936
52937
52938
# File 'lib/ovirtsdk4/types.rb', line 52933

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)


52945
52946
52947
# File 'lib/ovirtsdk4/types.rb', line 52945

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


52954
52955
52956
# File 'lib/ovirtsdk4/types.rb', line 52954

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



52963
52964
52965
# File 'lib/ovirtsdk4/types.rb', line 52963

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:



52976
52977
52978
52979
52980
52981
# File 'lib/ovirtsdk4/types.rb', line 52976

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:



52988
52989
52990
# File 'lib/ovirtsdk4/types.rb', line 52988

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)


53001
53002
53003
53004
53005
53006
# File 'lib/ovirtsdk4/types.rb', line 53001

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:



53013
53014
53015
# File 'lib/ovirtsdk4/types.rb', line 53013

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:



53026
53027
53028
53029
53030
53031
# File 'lib/ovirtsdk4/types.rb', line 53026

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)


53038
53039
53040
# File 'lib/ovirtsdk4/types.rb', line 53038

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


53047
53048
53049
# File 'lib/ovirtsdk4/types.rb', line 53047

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


53056
53057
53058
# File 'lib/ovirtsdk4/types.rb', line 53056

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


53065
53066
53067
# File 'lib/ovirtsdk4/types.rb', line 53065

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



53074
53075
53076
# File 'lib/ovirtsdk4/types.rb', line 53074

def custom_compatibility_version
  @custom_compatibility_version
end

#custom_compatibility_version=(value) ⇒ Object

Sets the value of the custom_compatibility_version attribute.

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

Parameters:



53087
53088
53089
53090
53091
53092
# File 'lib/ovirtsdk4/types.rb', line 53087

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)


53099
53100
53101
# File 'lib/ovirtsdk4/types.rb', line 53099

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)


53108
53109
53110
# File 'lib/ovirtsdk4/types.rb', line 53108

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


53117
53118
53119
# File 'lib/ovirtsdk4/types.rb', line 53117

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)


53126
53127
53128
# File 'lib/ovirtsdk4/types.rb', line 53126

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



53135
53136
53137
# File 'lib/ovirtsdk4/types.rb', line 53135

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



53144
53145
53146
53147
53148
53149
53150
53151
53152
53153
53154
# File 'lib/ovirtsdk4/types.rb', line 53144

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

#dateDateTime

Returns the value of the date attribute.

Returns:

  • (DateTime)


53161
53162
53163
# File 'lib/ovirtsdk4/types.rb', line 53161

def date
  @date
end

#date=(value) ⇒ Object

Sets the value of the date attribute.

Parameters:

  • value (DateTime)


53170
53171
53172
# File 'lib/ovirtsdk4/types.rb', line 53170

def date=(value)
  @date = value
end

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


53179
53180
53181
# File 'lib/ovirtsdk4/types.rb', line 53179

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


53188
53189
53190
# File 'lib/ovirtsdk4/types.rb', line 53188

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


53197
53198
53199
# File 'lib/ovirtsdk4/types.rb', line 53197

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


53206
53207
53208
# File 'lib/ovirtsdk4/types.rb', line 53206

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



53215
53216
53217
# File 'lib/ovirtsdk4/types.rb', line 53215

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



53224
53225
53226
53227
53228
53229
53230
53231
53232
53233
53234
# File 'lib/ovirtsdk4/types.rb', line 53224

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

#displayDisplay

Returns the value of the display attribute.

Returns:



53241
53242
53243
# File 'lib/ovirtsdk4/types.rb', line 53241

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:



53254
53255
53256
53257
53258
53259
# File 'lib/ovirtsdk4/types.rb', line 53254

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:



53266
53267
53268
# File 'lib/ovirtsdk4/types.rb', line 53266

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:



53279
53280
53281
53282
53283
53284
# File 'lib/ovirtsdk4/types.rb', line 53279

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

#external_host_providerExternalHostProvider

Returns the value of the external_host_provider attribute.



53291
53292
53293
# File 'lib/ovirtsdk4/types.rb', line 53291

def external_host_provider
  @external_host_provider
end

#external_host_provider=(value) ⇒ Object

Sets the value of the external_host_provider attribute.

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



53304
53305
53306
53307
53308
53309
# File 'lib/ovirtsdk4/types.rb', line 53304

def external_host_provider=(value)
  if value.is_a?(Hash)
    value = ExternalHostProvider.new(value)
  end
  @external_host_provider = value
end

#floppiesArray<Floppy>

Returns the value of the floppies attribute.

Returns:



53316
53317
53318
# File 'lib/ovirtsdk4/types.rb', line 53316

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:



53325
53326
53327
53328
53329
53330
53331
53332
53333
53334
53335
# File 'lib/ovirtsdk4/types.rb', line 53325

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

#fqdnString

Returns the value of the fqdn attribute.

Returns:

  • (String)


53342
53343
53344
# File 'lib/ovirtsdk4/types.rb', line 53342

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)


53351
53352
53353
# File 'lib/ovirtsdk4/types.rb', line 53351

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



53360
53361
53362
# File 'lib/ovirtsdk4/types.rb', line 53360

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



53369
53370
53371
53372
53373
53374
53375
53376
53377
53378
53379
# File 'lib/ovirtsdk4/types.rb', line 53369

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

#guest_operating_systemGuestOperatingSystem

Returns the value of the guest_operating_system attribute.



53386
53387
53388
# File 'lib/ovirtsdk4/types.rb', line 53386

def guest_operating_system
  @guest_operating_system
end

#guest_operating_system=(value) ⇒ Object

Sets the value of the guest_operating_system attribute.

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



53399
53400
53401
53402
53403
53404
# File 'lib/ovirtsdk4/types.rb', line 53399

def guest_operating_system=(value)
  if value.is_a?(Hash)
    value = GuestOperatingSystem.new(value)
  end
  @guest_operating_system = value
end

#guest_time_zoneTimeZone

Returns the value of the guest_time_zone attribute.

Returns:



53411
53412
53413
# File 'lib/ovirtsdk4/types.rb', line 53411

def guest_time_zone
  @guest_time_zone
end

#guest_time_zone=(value) ⇒ Object

Sets the value of the guest_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:



53424
53425
53426
53427
53428
53429
# File 'lib/ovirtsdk4/types.rb', line 53424

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

#has_illegal_imagesBoolean

Returns the value of the has_illegal_images attribute.

Returns:

  • (Boolean)


53436
53437
53438
# File 'lib/ovirtsdk4/types.rb', line 53436

def has_illegal_images
  @has_illegal_images
end

#has_illegal_images=(value) ⇒ Object

Sets the value of the has_illegal_images attribute.

Parameters:

  • value (Boolean)


53445
53446
53447
# File 'lib/ovirtsdk4/types.rb', line 53445

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.



54981
54982
54983
54984
54985
54986
54987
54988
# File 'lib/ovirtsdk4/types.rb', line 54981

def hash
  super +
  @date.hash +
  @persist_memorystate.hash +
  @snapshot_status.hash +
  @snapshot_type.hash +
  @vm.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



53454
53455
53456
# File 'lib/ovirtsdk4/types.rb', line 53454

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:



53467
53468
53469
53470
53471
53472
# File 'lib/ovirtsdk4/types.rb', line 53467

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

#hostHost

Returns the value of the host attribute.

Returns:



53479
53480
53481
# File 'lib/ovirtsdk4/types.rb', line 53479

def host
  @host
end

#host=(value) ⇒ Object

Sets the value of the host attribute.

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


53492
53493
53494
53495
53496
53497
# File 'lib/ovirtsdk4/types.rb', line 53492

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

#host_devicesArray<HostDevice>

Returns the value of the host_devices attribute.

Returns:



53504
53505
53506
# File 'lib/ovirtsdk4/types.rb', line 53504

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:



53513
53514
53515
53516
53517
53518
53519
53520
53521
53522
53523
# File 'lib/ovirtsdk4/types.rb', line 53513

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


53530
53531
53532
# File 'lib/ovirtsdk4/types.rb', line 53530

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


53539
53540
53541
# File 'lib/ovirtsdk4/types.rb', line 53539

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



53548
53549
53550
# File 'lib/ovirtsdk4/types.rb', line 53548

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:



53561
53562
53563
53564
53565
53566
# File 'lib/ovirtsdk4/types.rb', line 53561

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

#instance_typeInstanceType

Returns the value of the instance_type attribute.

Returns:



53573
53574
53575
# File 'lib/ovirtsdk4/types.rb', line 53573

def instance_type
  @instance_type
end

#instance_type=(value) ⇒ Object

Sets the value of the instance_type attribute.

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



53586
53587
53588
53589
53590
53591
# File 'lib/ovirtsdk4/types.rb', line 53586

def instance_type=(value)
  if value.is_a?(Hash)
    value = InstanceType.new(value)
  end
  @instance_type = value
end

#ioIo

Returns the value of the io attribute.

Returns:



53598
53599
53600
# File 'lib/ovirtsdk4/types.rb', line 53598

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)


53611
53612
53613
53614
53615
53616
# File 'lib/ovirtsdk4/types.rb', line 53611

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

#katello_errataArray<KatelloErratum>

Returns the value of the katello_errata attribute.

Returns:



53623
53624
53625
# File 'lib/ovirtsdk4/types.rb', line 53623

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



53632
53633
53634
53635
53636
53637
53638
53639
53640
53641
53642
# File 'lib/ovirtsdk4/types.rb', line 53632

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

#large_iconIcon

Returns the value of the large_icon attribute.

Returns:



53649
53650
53651
# File 'lib/ovirtsdk4/types.rb', line 53649

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)


53662
53663
53664
53665
53666
53667
# File 'lib/ovirtsdk4/types.rb', line 53662

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:



53674
53675
53676
# File 'lib/ovirtsdk4/types.rb', line 53674

def lease
  @lease
end

#lease=(value) ⇒ Object

Sets the value of the lease attribute.

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



53687
53688
53689
53690
53691
53692
# File 'lib/ovirtsdk4/types.rb', line 53687

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)


53699
53700
53701
# File 'lib/ovirtsdk4/types.rb', line 53699

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


53708
53709
53710
# File 'lib/ovirtsdk4/types.rb', line 53708

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



53717
53718
53719
# File 'lib/ovirtsdk4/types.rb', line 53717

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:



53730
53731
53732
53733
53734
53735
# File 'lib/ovirtsdk4/types.rb', line 53730

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:



53742
53743
53744
# File 'lib/ovirtsdk4/types.rb', line 53742

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:



53755
53756
53757
53758
53759
53760
# File 'lib/ovirtsdk4/types.rb', line 53755

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)


53767
53768
53769
# File 'lib/ovirtsdk4/types.rb', line 53767

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


53776
53777
53778
# File 'lib/ovirtsdk4/types.rb', line 53776

def migration_downtime=(value)
  @migration_downtime = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


53785
53786
53787
# File 'lib/ovirtsdk4/types.rb', line 53785

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


53794
53795
53796
# File 'lib/ovirtsdk4/types.rb', line 53794

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)


53803
53804
53805
# File 'lib/ovirtsdk4/types.rb', line 53803

def next_run_configuration_exists
  @next_run_configuration_exists
end

#next_run_configuration_exists=(value) ⇒ Object

Sets the value of the next_run_configuration_exists attribute.

Parameters:

  • value (Boolean)


53812
53813
53814
# File 'lib/ovirtsdk4/types.rb', line 53812

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



53821
53822
53823
# File 'lib/ovirtsdk4/types.rb', line 53821

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


53830
53831
53832
53833
53834
53835
53836
53837
53838
53839
53840
# File 'lib/ovirtsdk4/types.rb', line 53830

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

#numa_nodesArray<NumaNode>

Returns the value of the numa_nodes attribute.

Returns:



53847
53848
53849
# File 'lib/ovirtsdk4/types.rb', line 53847

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



53856
53857
53858
53859
53860
53861
53862
53863
53864
53865
53866
# File 'lib/ovirtsdk4/types.rb', line 53856

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

#numa_tune_modeNumaTuneMode

Returns the value of the numa_tune_mode attribute.

Returns:



53873
53874
53875
# File 'lib/ovirtsdk4/types.rb', line 53873

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:



53882
53883
53884
# File 'lib/ovirtsdk4/types.rb', line 53882

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


53891
53892
53893
# File 'lib/ovirtsdk4/types.rb', line 53891

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


53900
53901
53902
# File 'lib/ovirtsdk4/types.rb', line 53900

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:



53909
53910
53911
# File 'lib/ovirtsdk4/types.rb', line 53909

def original_template
  @original_template
end

#original_template=(value) ⇒ Object

Sets the value of the original_template attribute.

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



53922
53923
53924
53925
53926
53927
# File 'lib/ovirtsdk4/types.rb', line 53922

def original_template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @original_template = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



53934
53935
53936
# File 'lib/ovirtsdk4/types.rb', line 53934

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:



53947
53948
53949
53950
53951
53952
# File 'lib/ovirtsdk4/types.rb', line 53947

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

#payloadsArray<Payload>

Returns the value of the payloads attribute.

Returns:



53959
53960
53961
# File 'lib/ovirtsdk4/types.rb', line 53959

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:



53968
53969
53970
53971
53972
53973
53974
53975
53976
53977
53978
# File 'lib/ovirtsdk4/types.rb', line 53968

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

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



53985
53986
53987
# File 'lib/ovirtsdk4/types.rb', line 53985

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



53994
53995
53996
53997
53998
53999
54000
54001
54002
54003
54004
# File 'lib/ovirtsdk4/types.rb', line 53994

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

#persist_memorystateBoolean

Returns the value of the persist_memorystate attribute.

Returns:

  • (Boolean)


54011
54012
54013
# File 'lib/ovirtsdk4/types.rb', line 54011

def persist_memorystate
  @persist_memorystate
end

#persist_memorystate=(value) ⇒ Object

Sets the value of the persist_memorystate attribute.

Parameters:

  • value (Boolean)


54020
54021
54022
# File 'lib/ovirtsdk4/types.rb', line 54020

def persist_memorystate=(value)
  @persist_memorystate = value
end

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:



54029
54030
54031
# File 'lib/ovirtsdk4/types.rb', line 54029

def placement_policy
  @placement_policy
end

#placement_policy=(value) ⇒ Object

Sets the value of the placement_policy attribute.

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

Parameters:



54042
54043
54044
54045
54046
54047
# File 'lib/ovirtsdk4/types.rb', line 54042

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:



54054
54055
54056
# File 'lib/ovirtsdk4/types.rb', line 54054

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:



54067
54068
54069
54070
54071
54072
# File 'lib/ovirtsdk4/types.rb', line 54067

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

#reported_devicesArray<ReportedDevice>

Returns the value of the reported_devices attribute.

Returns:



54079
54080
54081
# File 'lib/ovirtsdk4/types.rb', line 54079

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:



54088
54089
54090
54091
54092
54093
54094
54095
54096
54097
54098
# File 'lib/ovirtsdk4/types.rb', line 54088

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

#rng_deviceRngDevice

Returns the value of the rng_device attribute.

Returns:



54105
54106
54107
# File 'lib/ovirtsdk4/types.rb', line 54105

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:



54118
54119
54120
54121
54122
54123
# File 'lib/ovirtsdk4/types.rb', line 54118

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

#run_onceBoolean

Returns the value of the run_once attribute.

Returns:

  • (Boolean)


54130
54131
54132
# File 'lib/ovirtsdk4/types.rb', line 54130

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)


54139
54140
54141
# File 'lib/ovirtsdk4/types.rb', line 54139

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



54148
54149
54150
# File 'lib/ovirtsdk4/types.rb', line 54148

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



54161
54162
54163
54164
54165
54166
# File 'lib/ovirtsdk4/types.rb', line 54161

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

#sessionsArray<Session>

Returns the value of the sessions attribute.

Returns:



54173
54174
54175
# File 'lib/ovirtsdk4/types.rb', line 54173

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:



54182
54183
54184
54185
54186
54187
54188
54189
54190
54191
54192
# File 'lib/ovirtsdk4/types.rb', line 54182

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

#small_iconIcon

Returns the value of the small_icon attribute.

Returns:



54199
54200
54201
# File 'lib/ovirtsdk4/types.rb', line 54199

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)


54212
54213
54214
54215
54216
54217
# File 'lib/ovirtsdk4/types.rb', line 54212

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

#snapshot_statusSnapshotStatus

Returns the value of the snapshot_status attribute.

Returns:



54224
54225
54226
# File 'lib/ovirtsdk4/types.rb', line 54224

def snapshot_status
  @snapshot_status
end

#snapshot_status=(value) ⇒ Object

Sets the value of the snapshot_status attribute.

Parameters:



54233
54234
54235
# File 'lib/ovirtsdk4/types.rb', line 54233

def snapshot_status=(value)
  @snapshot_status = value
end

#snapshot_typeSnapshotType

Returns the value of the snapshot_type attribute.

Returns:



54242
54243
54244
# File 'lib/ovirtsdk4/types.rb', line 54242

def snapshot_type
  @snapshot_type
end

#snapshot_type=(value) ⇒ Object

Sets the value of the snapshot_type attribute.

Parameters:



54251
54252
54253
# File 'lib/ovirtsdk4/types.rb', line 54251

def snapshot_type=(value)
  @snapshot_type = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:



54260
54261
54262
# File 'lib/ovirtsdk4/types.rb', line 54260

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:



54269
54270
54271
54272
54273
54274
54275
54276
54277
54278
54279
# File 'lib/ovirtsdk4/types.rb', line 54269

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

#soundcard_enabledBoolean

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


54286
54287
54288
# File 'lib/ovirtsdk4/types.rb', line 54286

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


54295
54296
54297
# File 'lib/ovirtsdk4/types.rb', line 54295

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



54304
54305
54306
# File 'lib/ovirtsdk4/types.rb', line 54304

def sso
  @sso
end

#sso=(value) ⇒ Object

Sets the value of the sso attribute.

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


54317
54318
54319
54320
54321
54322
# File 'lib/ovirtsdk4/types.rb', line 54317

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)


54329
54330
54331
# File 'lib/ovirtsdk4/types.rb', line 54329

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


54338
54339
54340
# File 'lib/ovirtsdk4/types.rb', line 54338

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)


54347
54348
54349
# File 'lib/ovirtsdk4/types.rb', line 54347

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)


54356
54357
54358
# File 'lib/ovirtsdk4/types.rb', line 54356

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


54365
54366
54367
# File 'lib/ovirtsdk4/types.rb', line 54365

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


54374
54375
54376
# File 'lib/ovirtsdk4/types.rb', line 54374

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



54383
54384
54385
# File 'lib/ovirtsdk4/types.rb', line 54383

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



54392
54393
54394
54395
54396
54397
54398
54399
54400
54401
54402
# File 'lib/ovirtsdk4/types.rb', line 54392

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

#statusVmStatus

Returns the value of the status attribute.

Returns:



54409
54410
54411
# File 'lib/ovirtsdk4/types.rb', line 54409

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



54418
54419
54420
# File 'lib/ovirtsdk4/types.rb', line 54418

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


54427
54428
54429
# File 'lib/ovirtsdk4/types.rb', line 54427

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


54436
54437
54438
# File 'lib/ovirtsdk4/types.rb', line 54436

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)


54445
54446
54447
# File 'lib/ovirtsdk4/types.rb', line 54445

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)


54454
54455
54456
# File 'lib/ovirtsdk4/types.rb', line 54454

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)


54463
54464
54465
# File 'lib/ovirtsdk4/types.rb', line 54463

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)


54472
54473
54474
# File 'lib/ovirtsdk4/types.rb', line 54472

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



54481
54482
54483
# File 'lib/ovirtsdk4/types.rb', line 54481

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



54494
54495
54496
54497
54498
54499
# File 'lib/ovirtsdk4/types.rb', line 54494

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.



54506
54507
54508
# File 'lib/ovirtsdk4/types.rb', line 54506

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:



54515
54516
54517
# File 'lib/ovirtsdk4/types.rb', line 54515

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



54524
54525
54526
# File 'lib/ovirtsdk4/types.rb', line 54524

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


54533
54534
54535
54536
54537
54538
54539
54540
54541
54542
54543
# File 'lib/ovirtsdk4/types.rb', line 54533

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

#templateTemplate

Returns the value of the template attribute.

Returns:



54550
54551
54552
# File 'lib/ovirtsdk4/types.rb', line 54550

def template
  @template
end

#template=(value) ⇒ Object

Sets the value of the template attribute.

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



54563
54564
54565
54566
54567
54568
# File 'lib/ovirtsdk4/types.rb', line 54563

def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

#time_zoneTimeZone

Returns the value of the time_zone attribute.

Returns:



54575
54576
54577
# File 'lib/ovirtsdk4/types.rb', line 54575

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:



54588
54589
54590
54591
54592
54593
# File 'lib/ovirtsdk4/types.rb', line 54588

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)


54600
54601
54602
# File 'lib/ovirtsdk4/types.rb', line 54600

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


54609
54610
54611
# File 'lib/ovirtsdk4/types.rb', line 54609

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



54618
54619
54620
# File 'lib/ovirtsdk4/types.rb', line 54618

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



54627
54628
54629
# File 'lib/ovirtsdk4/types.rb', line 54627

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



54636
54637
54638
# File 'lib/ovirtsdk4/types.rb', line 54636

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)


54649
54650
54651
54652
54653
54654
# File 'lib/ovirtsdk4/types.rb', line 54649

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

#use_latest_template_versionBoolean

Returns the value of the use_latest_template_version attribute.

Returns:

  • (Boolean)


54661
54662
54663
# File 'lib/ovirtsdk4/types.rb', line 54661

def use_latest_template_version
  @use_latest_template_version
end

#use_latest_template_version=(value) ⇒ Object

Sets the value of the use_latest_template_version attribute.

Parameters:

  • value (Boolean)


54670
54671
54672
# File 'lib/ovirtsdk4/types.rb', line 54670

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



54679
54680
54681
# File 'lib/ovirtsdk4/types.rb', line 54679

def virtio_scsi
  @virtio_scsi
end

#virtio_scsi=(value) ⇒ Object

Sets the value of the virtio_scsi attribute.

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

Parameters:



54692
54693
54694
54695
54696
54697
# File 'lib/ovirtsdk4/types.rb', line 54692

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

#vmVm

Returns the value of the vm attribute.

Returns:



54704
54705
54706
# File 'lib/ovirtsdk4/types.rb', line 54704

def vm
  @vm
end

#vm=(value) ⇒ Object

Sets the value of the vm attribute.

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

Parameters:

  • value (Vm, Hash)


54717
54718
54719
54720
54721
54722
# File 'lib/ovirtsdk4/types.rb', line 54717

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

#vm_poolVmPool

Returns the value of the vm_pool attribute.

Returns:



54729
54730
54731
# File 'lib/ovirtsdk4/types.rb', line 54729

def vm_pool
  @vm_pool
end

#vm_pool=(value) ⇒ Object

Sets the value of the vm_pool attribute.

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



54742
54743
54744
54745
54746
54747
# File 'lib/ovirtsdk4/types.rb', line 54742

def vm_pool=(value)
  if value.is_a?(Hash)
    value = VmPool.new(value)
  end
  @vm_pool = value
end

#watchdogsArray<Watchdog>

Returns the value of the watchdogs attribute.

Returns:



54754
54755
54756
# File 'lib/ovirtsdk4/types.rb', line 54754

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



54763
54764
54765
54766
54767
54768
54769
54770
54771
54772
54773
# File 'lib/ovirtsdk4/types.rb', line 54763

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