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.

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.

  • :auto_pinning_policy (AutoPinningPolicy)

    The value of attribute auto_pinning_policy.

  • :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_pinning_policy (CpuPinningPolicy)

    The value of attribute cpu_pinning_policy.

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

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

    The values of attribute disks.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :dynamic_cpu (DynamicCpu, Hash)

    The value of attribute dynamic_cpu.

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

  • :mediated_devices (Array<VmMediatedDevice>, Array<Hash>)

    The values of attribute mediated_devices.

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

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

  • :tpm_enabled (Boolean)

    The value of attribute tpm_enabled.

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

  • :virtio_scsi_multi_queues (Integer)

    The value of attribute virtio_scsi_multi_queues.

  • :virtio_scsi_multi_queues_enabled (Boolean)

    The value of attribute virtio_scsi_multi_queues_enabled.

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



59931
59932
59933
59934
59935
59936
59937
59938
59939
# File 'lib/ovirtsdk4/types.rb', line 59931

def initialize(opts = {})
  super(opts)
  self.date = opts[:date]
  self.disks = opts[:disks]
  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.



59944
59945
59946
59947
59948
59949
59950
59951
59952
# File 'lib/ovirtsdk4/types.rb', line 59944

def ==(other)
  super &&
  @date == other.date &&
  @disks == other.disks &&
  @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.



57588
57589
57590
# File 'lib/ovirtsdk4/types.rb', line 57588

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.



57597
57598
57599
57600
57601
57602
57603
57604
57605
57606
57607
# File 'lib/ovirtsdk4/types.rb', line 57597

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.



57614
57615
57616
# File 'lib/ovirtsdk4/types.rb', line 57614

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.



57623
57624
57625
57626
57627
57628
57629
57630
57631
57632
57633
# File 'lib/ovirtsdk4/types.rb', line 57623

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

#auto_pinning_policyAutoPinningPolicy

Returns the value of the auto_pinning_policy attribute.



57640
57641
57642
# File 'lib/ovirtsdk4/types.rb', line 57640

def auto_pinning_policy
  @auto_pinning_policy
end

#auto_pinning_policy=(value) ⇒ Object

Sets the value of the auto_pinning_policy attribute.



57649
57650
57651
# File 'lib/ovirtsdk4/types.rb', line 57649

def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end

#biosBios

Returns the value of the bios attribute.



57658
57659
57660
# File 'lib/ovirtsdk4/types.rb', line 57658

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.



57671
57672
57673
57674
57675
57676
# File 'lib/ovirtsdk4/types.rb', line 57671

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.



57683
57684
57685
# File 'lib/ovirtsdk4/types.rb', line 57683

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.



57692
57693
57694
57695
57696
57697
57698
57699
57700
57701
57702
# File 'lib/ovirtsdk4/types.rb', line 57692

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.



57709
57710
57711
# File 'lib/ovirtsdk4/types.rb', line 57709

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.



57722
57723
57724
57725
57726
57727
# File 'lib/ovirtsdk4/types.rb', line 57722

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

#commentString

Returns the value of the comment attribute.



57734
57735
57736
# File 'lib/ovirtsdk4/types.rb', line 57734

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.



57743
57744
57745
# File 'lib/ovirtsdk4/types.rb', line 57743

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.



57752
57753
57754
# File 'lib/ovirtsdk4/types.rb', line 57752

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.



57765
57766
57767
57768
57769
57770
# File 'lib/ovirtsdk4/types.rb', line 57765

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

#cpuCpu

Returns the value of the cpu attribute.



57777
57778
57779
# File 'lib/ovirtsdk4/types.rb', line 57777

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.



57790
57791
57792
57793
57794
57795
# File 'lib/ovirtsdk4/types.rb', line 57790

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

#cpu_pinning_policyCpuPinningPolicy

Returns the value of the cpu_pinning_policy attribute.



57802
57803
57804
# File 'lib/ovirtsdk4/types.rb', line 57802

def cpu_pinning_policy
  @cpu_pinning_policy
end

#cpu_pinning_policy=(value) ⇒ Object

Sets the value of the cpu_pinning_policy attribute.



57811
57812
57813
# File 'lib/ovirtsdk4/types.rb', line 57811

def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.



57820
57821
57822
# File 'lib/ovirtsdk4/types.rb', line 57820

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.



57833
57834
57835
57836
57837
57838
# File 'lib/ovirtsdk4/types.rb', line 57833

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.



57845
57846
57847
# File 'lib/ovirtsdk4/types.rb', line 57845

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.



57854
57855
57856
# File 'lib/ovirtsdk4/types.rb', line 57854

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.



57863
57864
57865
# File 'lib/ovirtsdk4/types.rb', line 57863

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.



57872
57873
57874
# File 'lib/ovirtsdk4/types.rb', line 57872

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.



57881
57882
57883
# File 'lib/ovirtsdk4/types.rb', line 57881

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.



57894
57895
57896
57897
57898
57899
# File 'lib/ovirtsdk4/types.rb', line 57894

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.



57906
57907
57908
# File 'lib/ovirtsdk4/types.rb', line 57906

def custom_cpu_model
  @custom_cpu_model
end

#custom_cpu_model=(value) ⇒ Object

Sets the value of the custom_cpu_model attribute.



57915
57916
57917
# File 'lib/ovirtsdk4/types.rb', line 57915

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.



57924
57925
57926
# File 'lib/ovirtsdk4/types.rb', line 57924

def custom_emulated_machine
  @custom_emulated_machine
end

#custom_emulated_machine=(value) ⇒ Object

Sets the value of the custom_emulated_machine attribute.



57933
57934
57935
# File 'lib/ovirtsdk4/types.rb', line 57933

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.



57942
57943
57944
# File 'lib/ovirtsdk4/types.rb', line 57942

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.



57951
57952
57953
57954
57955
57956
57957
57958
57959
57960
57961
# File 'lib/ovirtsdk4/types.rb', line 57951

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.



57968
57969
57970
# File 'lib/ovirtsdk4/types.rb', line 57968

def date
  @date
end

#date=(value) ⇒ Object

Sets the value of the date attribute.



57977
57978
57979
# File 'lib/ovirtsdk4/types.rb', line 57977

def date=(value)
  @date = value
end

#delete_protectedBoolean

Returns the value of the delete_protected attribute.



57986
57987
57988
# File 'lib/ovirtsdk4/types.rb', line 57986

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.



57995
57996
57997
# File 'lib/ovirtsdk4/types.rb', line 57995

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.



58004
58005
58006
# File 'lib/ovirtsdk4/types.rb', line 58004

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.



58013
58014
58015
# File 'lib/ovirtsdk4/types.rb', line 58013

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.



58022
58023
58024
# File 'lib/ovirtsdk4/types.rb', line 58022

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.



58031
58032
58033
58034
58035
58036
58037
58038
58039
58040
58041
# File 'lib/ovirtsdk4/types.rb', line 58031

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

#disksArray<Disk>

Returns the value of the disks attribute.



58048
58049
58050
# File 'lib/ovirtsdk4/types.rb', line 58048

def disks
  @disks
end

#disks=(list) ⇒ Object

Sets the value of the disks attribute.



58057
58058
58059
58060
58061
58062
58063
58064
58065
58066
58067
# File 'lib/ovirtsdk4/types.rb', line 58057

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

#displayDisplay

Returns the value of the display attribute.



58074
58075
58076
# File 'lib/ovirtsdk4/types.rb', line 58074

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.



58087
58088
58089
58090
58091
58092
# File 'lib/ovirtsdk4/types.rb', line 58087

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

#domainDomain

Returns the value of the domain attribute.



58099
58100
58101
# File 'lib/ovirtsdk4/types.rb', line 58099

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.



58112
58113
58114
58115
58116
58117
# File 'lib/ovirtsdk4/types.rb', line 58112

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

#dynamic_cpuDynamicCpu

Returns the value of the dynamic_cpu attribute.



58124
58125
58126
# File 'lib/ovirtsdk4/types.rb', line 58124

def dynamic_cpu
  @dynamic_cpu
end

#dynamic_cpu=(value) ⇒ Object

Sets the value of the dynamic_cpu attribute.

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



58137
58138
58139
58140
58141
58142
# File 'lib/ovirtsdk4/types.rb', line 58137

def dynamic_cpu=(value)
  if value.is_a?(Hash)
    value = DynamicCpu.new(value)
  end
  @dynamic_cpu = value
end

#external_host_providerExternalHostProvider

Returns the value of the external_host_provider attribute.



58149
58150
58151
# File 'lib/ovirtsdk4/types.rb', line 58149

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.



58162
58163
58164
58165
58166
58167
# File 'lib/ovirtsdk4/types.rb', line 58162

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.



58174
58175
58176
# File 'lib/ovirtsdk4/types.rb', line 58174

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.



58183
58184
58185
58186
58187
58188
58189
58190
58191
58192
58193
# File 'lib/ovirtsdk4/types.rb', line 58183

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.



58200
58201
58202
# File 'lib/ovirtsdk4/types.rb', line 58200

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.



58209
58210
58211
# File 'lib/ovirtsdk4/types.rb', line 58209

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.



58218
58219
58220
# File 'lib/ovirtsdk4/types.rb', line 58218

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.



58227
58228
58229
58230
58231
58232
58233
58234
58235
58236
58237
# File 'lib/ovirtsdk4/types.rb', line 58227

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.



58244
58245
58246
# File 'lib/ovirtsdk4/types.rb', line 58244

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.



58257
58258
58259
58260
58261
58262
# File 'lib/ovirtsdk4/types.rb', line 58257

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.



58269
58270
58271
# File 'lib/ovirtsdk4/types.rb', line 58269

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.



58282
58283
58284
58285
58286
58287
# File 'lib/ovirtsdk4/types.rb', line 58282

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.



58294
58295
58296
# File 'lib/ovirtsdk4/types.rb', line 58294

def has_illegal_images
  @has_illegal_images
end

#has_illegal_images=(value) ⇒ Object

Sets the value of the has_illegal_images attribute.



58303
58304
58305
# File 'lib/ovirtsdk4/types.rb', line 58303

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.



59957
59958
59959
59960
59961
59962
59963
59964
59965
# File 'lib/ovirtsdk4/types.rb', line 59957

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

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.



58312
58313
58314
# File 'lib/ovirtsdk4/types.rb', line 58312

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.



58325
58326
58327
58328
58329
58330
# File 'lib/ovirtsdk4/types.rb', line 58325

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.



58337
58338
58339
# File 'lib/ovirtsdk4/types.rb', line 58337

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.



58350
58351
58352
58353
58354
58355
# File 'lib/ovirtsdk4/types.rb', line 58350

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.



58362
58363
58364
# File 'lib/ovirtsdk4/types.rb', line 58362

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.



58371
58372
58373
58374
58375
58376
58377
58378
58379
58380
58381
# File 'lib/ovirtsdk4/types.rb', line 58371

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.



58388
58389
58390
# File 'lib/ovirtsdk4/types.rb', line 58388

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.



58397
58398
58399
# File 'lib/ovirtsdk4/types.rb', line 58397

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.



58406
58407
58408
# File 'lib/ovirtsdk4/types.rb', line 58406

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.



58419
58420
58421
58422
58423
58424
# File 'lib/ovirtsdk4/types.rb', line 58419

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.



58431
58432
58433
# File 'lib/ovirtsdk4/types.rb', line 58431

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.



58444
58445
58446
58447
58448
58449
# File 'lib/ovirtsdk4/types.rb', line 58444

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.



58456
58457
58458
# File 'lib/ovirtsdk4/types.rb', line 58456

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.



58469
58470
58471
58472
58473
58474
# File 'lib/ovirtsdk4/types.rb', line 58469

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.



58481
58482
58483
# File 'lib/ovirtsdk4/types.rb', line 58481

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.



58490
58491
58492
58493
58494
58495
58496
58497
58498
58499
58500
# File 'lib/ovirtsdk4/types.rb', line 58490

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.



58507
58508
58509
# File 'lib/ovirtsdk4/types.rb', line 58507

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.



58520
58521
58522
58523
58524
58525
# File 'lib/ovirtsdk4/types.rb', line 58520

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.



58532
58533
58534
# File 'lib/ovirtsdk4/types.rb', line 58532

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.



58545
58546
58547
58548
58549
58550
# File 'lib/ovirtsdk4/types.rb', line 58545

def lease=(value)
  if value.is_a?(Hash)
    value = StorageDomainLease.new(value)
  end
  @lease = value
end

#mediated_devicesArray<VmMediatedDevice>

Returns the value of the mediated_devices attribute.



58557
58558
58559
# File 'lib/ovirtsdk4/types.rb', line 58557

def mediated_devices
  @mediated_devices
end

#mediated_devices=(list) ⇒ Object

Sets the value of the mediated_devices attribute.



58566
58567
58568
58569
58570
58571
58572
58573
58574
58575
58576
# File 'lib/ovirtsdk4/types.rb', line 58566

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

#memoryInteger

Returns the value of the memory attribute.



58583
58584
58585
# File 'lib/ovirtsdk4/types.rb', line 58583

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.



58592
58593
58594
# File 'lib/ovirtsdk4/types.rb', line 58592

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.



58601
58602
58603
# File 'lib/ovirtsdk4/types.rb', line 58601

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.



58614
58615
58616
58617
58618
58619
# File 'lib/ovirtsdk4/types.rb', line 58614

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.



58626
58627
58628
# File 'lib/ovirtsdk4/types.rb', line 58626

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.



58639
58640
58641
58642
58643
58644
# File 'lib/ovirtsdk4/types.rb', line 58639

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.



58651
58652
58653
# File 'lib/ovirtsdk4/types.rb', line 58651

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.



58660
58661
58662
# File 'lib/ovirtsdk4/types.rb', line 58660

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.



58669
58670
58671
# File 'lib/ovirtsdk4/types.rb', line 58669

def multi_queues_enabled
  @multi_queues_enabled
end

#multi_queues_enabled=(value) ⇒ Object

Sets the value of the multi_queues_enabled attribute.



58678
58679
58680
# File 'lib/ovirtsdk4/types.rb', line 58678

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.



58687
58688
58689
# File 'lib/ovirtsdk4/types.rb', line 58687

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.



58696
58697
58698
# File 'lib/ovirtsdk4/types.rb', line 58696

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.



58705
58706
58707
# File 'lib/ovirtsdk4/types.rb', line 58705

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.



58714
58715
58716
# File 'lib/ovirtsdk4/types.rb', line 58714

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.



58723
58724
58725
# File 'lib/ovirtsdk4/types.rb', line 58723

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.



58732
58733
58734
58735
58736
58737
58738
58739
58740
58741
58742
# File 'lib/ovirtsdk4/types.rb', line 58732

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.



58749
58750
58751
# File 'lib/ovirtsdk4/types.rb', line 58749

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.



58758
58759
58760
58761
58762
58763
58764
58765
58766
58767
58768
# File 'lib/ovirtsdk4/types.rb', line 58758

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.



58775
58776
58777
# File 'lib/ovirtsdk4/types.rb', line 58775

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.



58784
58785
58786
# File 'lib/ovirtsdk4/types.rb', line 58784

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.



58793
58794
58795
# File 'lib/ovirtsdk4/types.rb', line 58793

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.



58802
58803
58804
# File 'lib/ovirtsdk4/types.rb', line 58802

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.



58811
58812
58813
# File 'lib/ovirtsdk4/types.rb', line 58811

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.



58824
58825
58826
58827
58828
58829
# File 'lib/ovirtsdk4/types.rb', line 58824

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.



58836
58837
58838
# File 'lib/ovirtsdk4/types.rb', line 58836

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.



58849
58850
58851
58852
58853
58854
# File 'lib/ovirtsdk4/types.rb', line 58849

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.



58861
58862
58863
# File 'lib/ovirtsdk4/types.rb', line 58861

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.



58870
58871
58872
58873
58874
58875
58876
58877
58878
58879
58880
# File 'lib/ovirtsdk4/types.rb', line 58870

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.



58887
58888
58889
# File 'lib/ovirtsdk4/types.rb', line 58887

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.



58896
58897
58898
58899
58900
58901
58902
58903
58904
58905
58906
# File 'lib/ovirtsdk4/types.rb', line 58896

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.



58913
58914
58915
# File 'lib/ovirtsdk4/types.rb', line 58913

def persist_memorystate
  @persist_memorystate
end

#persist_memorystate=(value) ⇒ Object

Sets the value of the persist_memorystate attribute.



58922
58923
58924
# File 'lib/ovirtsdk4/types.rb', line 58922

def persist_memorystate=(value)
  @persist_memorystate = value
end

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.



58931
58932
58933
# File 'lib/ovirtsdk4/types.rb', line 58931

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.



58944
58945
58946
58947
58948
58949
# File 'lib/ovirtsdk4/types.rb', line 58944

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.



58956
58957
58958
# File 'lib/ovirtsdk4/types.rb', line 58956

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.



58969
58970
58971
58972
58973
58974
# File 'lib/ovirtsdk4/types.rb', line 58969

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.



58981
58982
58983
# File 'lib/ovirtsdk4/types.rb', line 58981

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.



58990
58991
58992
58993
58994
58995
58996
58997
58998
58999
59000
# File 'lib/ovirtsdk4/types.rb', line 58990

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.



59007
59008
59009
# File 'lib/ovirtsdk4/types.rb', line 59007

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.



59020
59021
59022
59023
59024
59025
# File 'lib/ovirtsdk4/types.rb', line 59020

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.



59032
59033
59034
# File 'lib/ovirtsdk4/types.rb', line 59032

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.



59041
59042
59043
# File 'lib/ovirtsdk4/types.rb', line 59041

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.



59050
59051
59052
# File 'lib/ovirtsdk4/types.rb', line 59050

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.



59063
59064
59065
59066
59067
59068
# File 'lib/ovirtsdk4/types.rb', line 59063

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.



59075
59076
59077
# File 'lib/ovirtsdk4/types.rb', line 59075

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.



59084
59085
59086
59087
59088
59089
59090
59091
59092
59093
59094
# File 'lib/ovirtsdk4/types.rb', line 59084

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.



59101
59102
59103
# File 'lib/ovirtsdk4/types.rb', line 59101

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.



59114
59115
59116
59117
59118
59119
# File 'lib/ovirtsdk4/types.rb', line 59114

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.



59126
59127
59128
# File 'lib/ovirtsdk4/types.rb', line 59126

def snapshot_status
  @snapshot_status
end

#snapshot_status=(value) ⇒ Object

Sets the value of the snapshot_status attribute.



59135
59136
59137
# File 'lib/ovirtsdk4/types.rb', line 59135

def snapshot_status=(value)
  @snapshot_status = value
end

#snapshot_typeSnapshotType

Returns the value of the snapshot_type attribute.



59144
59145
59146
# File 'lib/ovirtsdk4/types.rb', line 59144

def snapshot_type
  @snapshot_type
end

#snapshot_type=(value) ⇒ Object

Sets the value of the snapshot_type attribute.



59153
59154
59155
# File 'lib/ovirtsdk4/types.rb', line 59153

def snapshot_type=(value)
  @snapshot_type = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.



59162
59163
59164
# File 'lib/ovirtsdk4/types.rb', line 59162

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.



59171
59172
59173
59174
59175
59176
59177
59178
59179
59180
59181
# File 'lib/ovirtsdk4/types.rb', line 59171

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.



59188
59189
59190
# File 'lib/ovirtsdk4/types.rb', line 59188

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.



59197
59198
59199
# File 'lib/ovirtsdk4/types.rb', line 59197

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.



59206
59207
59208
# File 'lib/ovirtsdk4/types.rb', line 59206

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.



59219
59220
59221
59222
59223
59224
# File 'lib/ovirtsdk4/types.rb', line 59219

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.



59231
59232
59233
# File 'lib/ovirtsdk4/types.rb', line 59231

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.



59240
59241
59242
# File 'lib/ovirtsdk4/types.rb', line 59240

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.



59249
59250
59251
# File 'lib/ovirtsdk4/types.rb', line 59249

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.



59258
59259
59260
# File 'lib/ovirtsdk4/types.rb', line 59258

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.



59267
59268
59269
# File 'lib/ovirtsdk4/types.rb', line 59267

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.



59276
59277
59278
# File 'lib/ovirtsdk4/types.rb', line 59276

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.



59285
59286
59287
# File 'lib/ovirtsdk4/types.rb', line 59285

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.



59294
59295
59296
59297
59298
59299
59300
59301
59302
59303
59304
# File 'lib/ovirtsdk4/types.rb', line 59294

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.



59311
59312
59313
# File 'lib/ovirtsdk4/types.rb', line 59311

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.



59320
59321
59322
# File 'lib/ovirtsdk4/types.rb', line 59320

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.



59329
59330
59331
# File 'lib/ovirtsdk4/types.rb', line 59329

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.



59338
59339
59340
# File 'lib/ovirtsdk4/types.rb', line 59338

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.



59347
59348
59349
# File 'lib/ovirtsdk4/types.rb', line 59347

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.



59356
59357
59358
# File 'lib/ovirtsdk4/types.rb', line 59356

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.



59365
59366
59367
# File 'lib/ovirtsdk4/types.rb', line 59365

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.



59374
59375
59376
# File 'lib/ovirtsdk4/types.rb', line 59374

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.



59383
59384
59385
# File 'lib/ovirtsdk4/types.rb', line 59383

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.



59396
59397
59398
59399
59400
59401
# File 'lib/ovirtsdk4/types.rb', line 59396

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.



59408
59409
59410
# File 'lib/ovirtsdk4/types.rb', line 59408

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.



59417
59418
59419
# File 'lib/ovirtsdk4/types.rb', line 59417

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.



59426
59427
59428
# File 'lib/ovirtsdk4/types.rb', line 59426

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.



59435
59436
59437
59438
59439
59440
59441
59442
59443
59444
59445
# File 'lib/ovirtsdk4/types.rb', line 59435

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.



59452
59453
59454
# File 'lib/ovirtsdk4/types.rb', line 59452

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.



59465
59466
59467
59468
59469
59470
# File 'lib/ovirtsdk4/types.rb', line 59465

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.



59477
59478
59479
# File 'lib/ovirtsdk4/types.rb', line 59477

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.



59490
59491
59492
59493
59494
59495
# File 'lib/ovirtsdk4/types.rb', line 59490

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

#tpm_enabledBoolean

Returns the value of the tpm_enabled attribute.



59502
59503
59504
# File 'lib/ovirtsdk4/types.rb', line 59502

def tpm_enabled
  @tpm_enabled
end

#tpm_enabled=(value) ⇒ Object

Sets the value of the tpm_enabled attribute.



59511
59512
59513
# File 'lib/ovirtsdk4/types.rb', line 59511

def tpm_enabled=(value)
  @tpm_enabled = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.



59520
59521
59522
# File 'lib/ovirtsdk4/types.rb', line 59520

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.



59529
59530
59531
# File 'lib/ovirtsdk4/types.rb', line 59529

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.



59538
59539
59540
# File 'lib/ovirtsdk4/types.rb', line 59538

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.



59547
59548
59549
# File 'lib/ovirtsdk4/types.rb', line 59547

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.



59556
59557
59558
# File 'lib/ovirtsdk4/types.rb', line 59556

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.



59569
59570
59571
59572
59573
59574
# File 'lib/ovirtsdk4/types.rb', line 59569

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.



59581
59582
59583
# File 'lib/ovirtsdk4/types.rb', line 59581

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.



59590
59591
59592
# File 'lib/ovirtsdk4/types.rb', line 59590

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.



59599
59600
59601
# File 'lib/ovirtsdk4/types.rb', line 59599

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.



59612
59613
59614
59615
59616
59617
# File 'lib/ovirtsdk4/types.rb', line 59612

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

#virtio_scsi_multi_queuesInteger

Returns the value of the virtio_scsi_multi_queues attribute.



59624
59625
59626
# File 'lib/ovirtsdk4/types.rb', line 59624

def virtio_scsi_multi_queues
  @virtio_scsi_multi_queues
end

#virtio_scsi_multi_queues=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues attribute.



59633
59634
59635
# File 'lib/ovirtsdk4/types.rb', line 59633

def virtio_scsi_multi_queues=(value)
  @virtio_scsi_multi_queues = value
end

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.



59642
59643
59644
# File 'lib/ovirtsdk4/types.rb', line 59642

def virtio_scsi_multi_queues_enabled
  @virtio_scsi_multi_queues_enabled
end

#virtio_scsi_multi_queues_enabled=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues_enabled attribute.



59651
59652
59653
# File 'lib/ovirtsdk4/types.rb', line 59651

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.



59660
59661
59662
# File 'lib/ovirtsdk4/types.rb', line 59660

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.



59673
59674
59675
59676
59677
59678
# File 'lib/ovirtsdk4/types.rb', line 59673

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.



59685
59686
59687
# File 'lib/ovirtsdk4/types.rb', line 59685

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.



59698
59699
59700
59701
59702
59703
# File 'lib/ovirtsdk4/types.rb', line 59698

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.



59710
59711
59712
# File 'lib/ovirtsdk4/types.rb', line 59710

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.



59719
59720
59721
59722
59723
59724
59725
59726
59727
59728
59729
# File 'lib/ovirtsdk4/types.rb', line 59719

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