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.

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

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

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

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


57728
57729
57730
57731
57732
57733
57734
57735
57736
# File 'lib/ovirtsdk4/types.rb', line 57728

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.


57741
57742
57743
57744
57745
57746
57747
57748
57749
# File 'lib/ovirtsdk4/types.rb', line 57741

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.

Returns:


55520
55521
55522
# File 'lib/ovirtsdk4/types.rb', line 55520

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:


55529
55530
55531
55532
55533
55534
55535
55536
55537
55538
55539
# File 'lib/ovirtsdk4/types.rb', line 55529

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:


55546
55547
55548
# File 'lib/ovirtsdk4/types.rb', line 55546

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:


55555
55556
55557
55558
55559
55560
55561
55562
55563
55564
55565
# File 'lib/ovirtsdk4/types.rb', line 55555

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:


55572
55573
55574
# File 'lib/ovirtsdk4/types.rb', line 55572

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)

55585
55586
55587
55588
55589
55590
# File 'lib/ovirtsdk4/types.rb', line 55585

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:


55597
55598
55599
# File 'lib/ovirtsdk4/types.rb', line 55597

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:


55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
55616
# File 'lib/ovirtsdk4/types.rb', line 55606

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:


55623
55624
55625
# File 'lib/ovirtsdk4/types.rb', line 55623

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:


55636
55637
55638
55639
55640
55641
# File 'lib/ovirtsdk4/types.rb', line 55636

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)

55648
55649
55650
# File 'lib/ovirtsdk4/types.rb', line 55648

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

55657
55658
55659
# File 'lib/ovirtsdk4/types.rb', line 55657

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:


55666
55667
55668
# File 'lib/ovirtsdk4/types.rb', line 55666

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:


55679
55680
55681
55682
55683
55684
# File 'lib/ovirtsdk4/types.rb', line 55679

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:


55691
55692
55693
# File 'lib/ovirtsdk4/types.rb', line 55691

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)

55704
55705
55706
55707
55708
55709
# File 'lib/ovirtsdk4/types.rb', line 55704

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:


55716
55717
55718
# File 'lib/ovirtsdk4/types.rb', line 55716

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:


55729
55730
55731
55732
55733
55734
# File 'lib/ovirtsdk4/types.rb', line 55729

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)

55741
55742
55743
# File 'lib/ovirtsdk4/types.rb', line 55741

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)

55750
55751
55752
# File 'lib/ovirtsdk4/types.rb', line 55750

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)

55759
55760
55761
# File 'lib/ovirtsdk4/types.rb', line 55759

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)

55768
55769
55770
# File 'lib/ovirtsdk4/types.rb', line 55768

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:


55777
55778
55779
# File 'lib/ovirtsdk4/types.rb', line 55777

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:


55790
55791
55792
55793
55794
55795
# File 'lib/ovirtsdk4/types.rb', line 55790

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)

55802
55803
55804
# File 'lib/ovirtsdk4/types.rb', line 55802

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)

55811
55812
55813
# File 'lib/ovirtsdk4/types.rb', line 55811

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)

55820
55821
55822
# File 'lib/ovirtsdk4/types.rb', line 55820

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)

55829
55830
55831
# File 'lib/ovirtsdk4/types.rb', line 55829

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:


55838
55839
55840
# File 'lib/ovirtsdk4/types.rb', line 55838

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:


55847
55848
55849
55850
55851
55852
55853
55854
55855
55856
55857
# File 'lib/ovirtsdk4/types.rb', line 55847

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)

55864
55865
55866
# File 'lib/ovirtsdk4/types.rb', line 55864

def date
  @date
end

#date=(value) ⇒ Object

Sets the value of the date attribute.

Parameters:

  • value (DateTime)

55873
55874
55875
# File 'lib/ovirtsdk4/types.rb', line 55873

def date=(value)
  @date = value
end

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)

55882
55883
55884
# File 'lib/ovirtsdk4/types.rb', line 55882

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)

55891
55892
55893
# File 'lib/ovirtsdk4/types.rb', line 55891

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

55900
55901
55902
# File 'lib/ovirtsdk4/types.rb', line 55900

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

55909
55910
55911
# File 'lib/ovirtsdk4/types.rb', line 55909

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:


55918
55919
55920
# File 'lib/ovirtsdk4/types.rb', line 55918

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:


55927
55928
55929
55930
55931
55932
55933
55934
55935
55936
55937
# File 'lib/ovirtsdk4/types.rb', line 55927

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.

Returns:


55944
55945
55946
# File 'lib/ovirtsdk4/types.rb', line 55944

def disks
  @disks
end

#disks=(list) ⇒ Object

Sets the value of the disks attribute.

Parameters:

  • list (Array<Disk>)

55953
55954
55955
55956
55957
55958
55959
55960
55961
55962
55963
# File 'lib/ovirtsdk4/types.rb', line 55953

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.

Returns:


55970
55971
55972
# File 'lib/ovirtsdk4/types.rb', line 55970

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:


55983
55984
55985
55986
55987
55988
# File 'lib/ovirtsdk4/types.rb', line 55983

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:


55995
55996
55997
# File 'lib/ovirtsdk4/types.rb', line 55995

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:


56008
56009
56010
56011
56012
56013
# File 'lib/ovirtsdk4/types.rb', line 56008

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.


56020
56021
56022
# File 'lib/ovirtsdk4/types.rb', line 56020

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:


56033
56034
56035
56036
56037
56038
# File 'lib/ovirtsdk4/types.rb', line 56033

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:


56045
56046
56047
# File 'lib/ovirtsdk4/types.rb', line 56045

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:


56054
56055
56056
56057
56058
56059
56060
56061
56062
56063
56064
# File 'lib/ovirtsdk4/types.rb', line 56054

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)

56071
56072
56073
# File 'lib/ovirtsdk4/types.rb', line 56071

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)

56080
56081
56082
# File 'lib/ovirtsdk4/types.rb', line 56080

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:


56089
56090
56091
# File 'lib/ovirtsdk4/types.rb', line 56089

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:


56098
56099
56100
56101
56102
56103
56104
56105
56106
56107
56108
# File 'lib/ovirtsdk4/types.rb', line 56098

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.


56115
56116
56117
# File 'lib/ovirtsdk4/types.rb', line 56115

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:


56128
56129
56130
56131
56132
56133
# File 'lib/ovirtsdk4/types.rb', line 56128

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:


56140
56141
56142
# File 'lib/ovirtsdk4/types.rb', line 56140

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:


56153
56154
56155
56156
56157
56158
# File 'lib/ovirtsdk4/types.rb', line 56153

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)

56165
56166
56167
# File 'lib/ovirtsdk4/types.rb', line 56165

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)

56174
56175
56176
# File 'lib/ovirtsdk4/types.rb', line 56174

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.


57754
57755
57756
57757
57758
57759
57760
57761
57762
# File 'lib/ovirtsdk4/types.rb', line 57754

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.

Returns:


56183
56184
56185
# File 'lib/ovirtsdk4/types.rb', line 56183

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:


56196
56197
56198
56199
56200
56201
# File 'lib/ovirtsdk4/types.rb', line 56196

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:


56208
56209
56210
# File 'lib/ovirtsdk4/types.rb', line 56208

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)

56221
56222
56223
56224
56225
56226
# File 'lib/ovirtsdk4/types.rb', line 56221

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:


56233
56234
56235
# File 'lib/ovirtsdk4/types.rb', line 56233

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:


56242
56243
56244
56245
56246
56247
56248
56249
56250
56251
56252
# File 'lib/ovirtsdk4/types.rb', line 56242

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)

56259
56260
56261
# File 'lib/ovirtsdk4/types.rb', line 56259

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

56268
56269
56270
# File 'lib/ovirtsdk4/types.rb', line 56268

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:


56277
56278
56279
# File 'lib/ovirtsdk4/types.rb', line 56277

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:


56290
56291
56292
56293
56294
56295
# File 'lib/ovirtsdk4/types.rb', line 56290

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:


56302
56303
56304
# File 'lib/ovirtsdk4/types.rb', line 56302

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:


56315
56316
56317
56318
56319
56320
# File 'lib/ovirtsdk4/types.rb', line 56315

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:


56327
56328
56329
# File 'lib/ovirtsdk4/types.rb', line 56327

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)

56340
56341
56342
56343
56344
56345
# File 'lib/ovirtsdk4/types.rb', line 56340

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:


56352
56353
56354
# File 'lib/ovirtsdk4/types.rb', line 56352

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:


56361
56362
56363
56364
56365
56366
56367
56368
56369
56370
56371
# File 'lib/ovirtsdk4/types.rb', line 56361

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:


56378
56379
56380
# File 'lib/ovirtsdk4/types.rb', line 56378

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)

56391
56392
56393
56394
56395
56396
# File 'lib/ovirtsdk4/types.rb', line 56391

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:


56403
56404
56405
# File 'lib/ovirtsdk4/types.rb', line 56403

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:


56416
56417
56418
56419
56420
56421
# File 'lib/ovirtsdk4/types.rb', line 56416

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)

56428
56429
56430
# File 'lib/ovirtsdk4/types.rb', line 56428

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)

56437
56438
56439
# File 'lib/ovirtsdk4/types.rb', line 56437

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


56446
56447
56448
# File 'lib/ovirtsdk4/types.rb', line 56446

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:


56459
56460
56461
56462
56463
56464
# File 'lib/ovirtsdk4/types.rb', line 56459

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:


56471
56472
56473
# File 'lib/ovirtsdk4/types.rb', line 56471

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:


56484
56485
56486
56487
56488
56489
# File 'lib/ovirtsdk4/types.rb', line 56484

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)

56496
56497
56498
# File 'lib/ovirtsdk4/types.rb', line 56496

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)

56505
56506
56507
# File 'lib/ovirtsdk4/types.rb', line 56505

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)

56514
56515
56516
# File 'lib/ovirtsdk4/types.rb', line 56514

def multi_queues_enabled
  @multi_queues_enabled
end

#multi_queues_enabled=(value) ⇒ Object

Sets the value of the multi_queues_enabled attribute.

Parameters:

  • value (Boolean)

56523
56524
56525
# File 'lib/ovirtsdk4/types.rb', line 56523

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

56532
56533
56534
# File 'lib/ovirtsdk4/types.rb', line 56532

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

56541
56542
56543
# File 'lib/ovirtsdk4/types.rb', line 56541

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)

56550
56551
56552
# File 'lib/ovirtsdk4/types.rb', line 56550

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)

56559
56560
56561
# File 'lib/ovirtsdk4/types.rb', line 56559

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:


56568
56569
56570
# File 'lib/ovirtsdk4/types.rb', line 56568

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)

56577
56578
56579
56580
56581
56582
56583
56584
56585
56586
56587
# File 'lib/ovirtsdk4/types.rb', line 56577

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:


56594
56595
56596
# File 'lib/ovirtsdk4/types.rb', line 56594

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:


56603
56604
56605
56606
56607
56608
56609
56610
56611
56612
56613
# File 'lib/ovirtsdk4/types.rb', line 56603

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:


56620
56621
56622
# File 'lib/ovirtsdk4/types.rb', line 56620

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:


56629
56630
56631
# File 'lib/ovirtsdk4/types.rb', line 56629

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)

56638
56639
56640
# File 'lib/ovirtsdk4/types.rb', line 56638

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)

56647
56648
56649
# File 'lib/ovirtsdk4/types.rb', line 56647

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:


56656
56657
56658
# File 'lib/ovirtsdk4/types.rb', line 56656

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:


56669
56670
56671
56672
56673
56674
# File 'lib/ovirtsdk4/types.rb', line 56669

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:


56681
56682
56683
# File 'lib/ovirtsdk4/types.rb', line 56681

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:


56694
56695
56696
56697
56698
56699
# File 'lib/ovirtsdk4/types.rb', line 56694

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:


56706
56707
56708
# File 'lib/ovirtsdk4/types.rb', line 56706

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:


56715
56716
56717
56718
56719
56720
56721
56722
56723
56724
56725
# File 'lib/ovirtsdk4/types.rb', line 56715

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:


56732
56733
56734
# File 'lib/ovirtsdk4/types.rb', line 56732

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


56741
56742
56743
56744
56745
56746
56747
56748
56749
56750
56751
# File 'lib/ovirtsdk4/types.rb', line 56741

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)

56758
56759
56760
# File 'lib/ovirtsdk4/types.rb', line 56758

def persist_memorystate
  @persist_memorystate
end

#persist_memorystate=(value) ⇒ Object

Sets the value of the persist_memorystate attribute.

Parameters:

  • value (Boolean)

56767
56768
56769
# File 'lib/ovirtsdk4/types.rb', line 56767

def persist_memorystate=(value)
  @persist_memorystate = value
end

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:


56776
56777
56778
# File 'lib/ovirtsdk4/types.rb', line 56776

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:


56789
56790
56791
56792
56793
56794
# File 'lib/ovirtsdk4/types.rb', line 56789

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:


56801
56802
56803
# File 'lib/ovirtsdk4/types.rb', line 56801

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:


56814
56815
56816
56817
56818
56819
# File 'lib/ovirtsdk4/types.rb', line 56814

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:


56826
56827
56828
# File 'lib/ovirtsdk4/types.rb', line 56826

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:


56835
56836
56837
56838
56839
56840
56841
56842
56843
56844
56845
# File 'lib/ovirtsdk4/types.rb', line 56835

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:


56852
56853
56854
# File 'lib/ovirtsdk4/types.rb', line 56852

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:


56865
56866
56867
56868
56869
56870
# File 'lib/ovirtsdk4/types.rb', line 56865

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)

56877
56878
56879
# File 'lib/ovirtsdk4/types.rb', line 56877

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)

56886
56887
56888
# File 'lib/ovirtsdk4/types.rb', line 56886

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:


56895
56896
56897
# File 'lib/ovirtsdk4/types.rb', line 56895

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:


56908
56909
56910
56911
56912
56913
# File 'lib/ovirtsdk4/types.rb', line 56908

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:


56920
56921
56922
# File 'lib/ovirtsdk4/types.rb', line 56920

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:


56929
56930
56931
56932
56933
56934
56935
56936
56937
56938
56939
# File 'lib/ovirtsdk4/types.rb', line 56929

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:


56946
56947
56948
# File 'lib/ovirtsdk4/types.rb', line 56946

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)

56959
56960
56961
56962
56963
56964
# File 'lib/ovirtsdk4/types.rb', line 56959

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:


56971
56972
56973
# File 'lib/ovirtsdk4/types.rb', line 56971

def snapshot_status
  @snapshot_status
end

#snapshot_status=(value) ⇒ Object

Sets the value of the snapshot_status attribute.

Parameters:


56980
56981
56982
# File 'lib/ovirtsdk4/types.rb', line 56980

def snapshot_status=(value)
  @snapshot_status = value
end

#snapshot_typeSnapshotType

Returns the value of the snapshot_type attribute.

Returns:


56989
56990
56991
# File 'lib/ovirtsdk4/types.rb', line 56989

def snapshot_type
  @snapshot_type
end

#snapshot_type=(value) ⇒ Object

Sets the value of the snapshot_type attribute.

Parameters:


56998
56999
57000
# File 'lib/ovirtsdk4/types.rb', line 56998

def snapshot_type=(value)
  @snapshot_type = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:


57007
57008
57009
# File 'lib/ovirtsdk4/types.rb', line 57007

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:


57016
57017
57018
57019
57020
57021
57022
57023
57024
57025
57026
# File 'lib/ovirtsdk4/types.rb', line 57016

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)

57033
57034
57035
# File 'lib/ovirtsdk4/types.rb', line 57033

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)

57042
57043
57044
# File 'lib/ovirtsdk4/types.rb', line 57042

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:


57051
57052
57053
# File 'lib/ovirtsdk4/types.rb', line 57051

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)

57064
57065
57066
57067
57068
57069
# File 'lib/ovirtsdk4/types.rb', line 57064

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)

57076
57077
57078
# File 'lib/ovirtsdk4/types.rb', line 57076

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)

57085
57086
57087
# File 'lib/ovirtsdk4/types.rb', line 57085

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)

57094
57095
57096
# File 'lib/ovirtsdk4/types.rb', line 57094

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)

57103
57104
57105
# File 'lib/ovirtsdk4/types.rb', line 57103

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)

57112
57113
57114
# File 'lib/ovirtsdk4/types.rb', line 57112

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)

57121
57122
57123
# File 'lib/ovirtsdk4/types.rb', line 57121

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:


57130
57131
57132
# File 'lib/ovirtsdk4/types.rb', line 57130

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:


57139
57140
57141
57142
57143
57144
57145
57146
57147
57148
57149
# File 'lib/ovirtsdk4/types.rb', line 57139

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:


57156
57157
57158
# File 'lib/ovirtsdk4/types.rb', line 57156

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


57165
57166
57167
# File 'lib/ovirtsdk4/types.rb', line 57165

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)

57174
57175
57176
# File 'lib/ovirtsdk4/types.rb', line 57174

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)

57183
57184
57185
# File 'lib/ovirtsdk4/types.rb', line 57183

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)

57192
57193
57194
# File 'lib/ovirtsdk4/types.rb', line 57192

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)

57201
57202
57203
# File 'lib/ovirtsdk4/types.rb', line 57201

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)

57210
57211
57212
# File 'lib/ovirtsdk4/types.rb', line 57210

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)

57219
57220
57221
# File 'lib/ovirtsdk4/types.rb', line 57219

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


57228
57229
57230
# File 'lib/ovirtsdk4/types.rb', line 57228

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:


57241
57242
57243
57244
57245
57246
# File 'lib/ovirtsdk4/types.rb', line 57241

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.


57253
57254
57255
# File 'lib/ovirtsdk4/types.rb', line 57253

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:


57262
57263
57264
# File 'lib/ovirtsdk4/types.rb', line 57262

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:


57271
57272
57273
# File 'lib/ovirtsdk4/types.rb', line 57271

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)

57280
57281
57282
57283
57284
57285
57286
57287
57288
57289
57290
# File 'lib/ovirtsdk4/types.rb', line 57280

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:


57297
57298
57299
# File 'lib/ovirtsdk4/types.rb', line 57297

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:


57310
57311
57312
57313
57314
57315
# File 'lib/ovirtsdk4/types.rb', line 57310

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:


57322
57323
57324
# File 'lib/ovirtsdk4/types.rb', line 57322

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:


57335
57336
57337
57338
57339
57340
# File 'lib/ovirtsdk4/types.rb', line 57335

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)

57347
57348
57349
# File 'lib/ovirtsdk4/types.rb', line 57347

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

57356
57357
57358
# File 'lib/ovirtsdk4/types.rb', line 57356

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:


57365
57366
57367
# File 'lib/ovirtsdk4/types.rb', line 57365

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


57374
57375
57376
# File 'lib/ovirtsdk4/types.rb', line 57374

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:


57383
57384
57385
# File 'lib/ovirtsdk4/types.rb', line 57383

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)

57396
57397
57398
57399
57400
57401
# File 'lib/ovirtsdk4/types.rb', line 57396

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)

57408
57409
57410
# File 'lib/ovirtsdk4/types.rb', line 57408

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)

57417
57418
57419
# File 'lib/ovirtsdk4/types.rb', line 57417

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:


57426
57427
57428
# File 'lib/ovirtsdk4/types.rb', line 57426

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:


57439
57440
57441
57442
57443
57444
# File 'lib/ovirtsdk4/types.rb', line 57439

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

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.

Returns:

  • (Boolean)

57451
57452
57453
# File 'lib/ovirtsdk4/types.rb', line 57451

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.

Parameters:

  • value (Boolean)

57460
57461
57462
# File 'lib/ovirtsdk4/types.rb', line 57460

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.

Returns:


57469
57470
57471
# File 'lib/ovirtsdk4/types.rb', line 57469

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)

57482
57483
57484
57485
57486
57487
# File 'lib/ovirtsdk4/types.rb', line 57482

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:


57494
57495
57496
# File 'lib/ovirtsdk4/types.rb', line 57494

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:


57507
57508
57509
57510
57511
57512
# File 'lib/ovirtsdk4/types.rb', line 57507

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:


57519
57520
57521
# File 'lib/ovirtsdk4/types.rb', line 57519

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:


57528
57529
57530
57531
57532
57533
57534
57535
57536
57537
57538
# File 'lib/ovirtsdk4/types.rb', line 57528

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