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.

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


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

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.


56755
56756
56757
56758
56759
56760
56761
56762
56763
# File 'lib/ovirtsdk4/types.rb', line 56755

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:


54554
54555
54556
# File 'lib/ovirtsdk4/types.rb', line 54554

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:


54563
54564
54565
54566
54567
54568
54569
54570
54571
54572
54573
# File 'lib/ovirtsdk4/types.rb', line 54563

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:


54580
54581
54582
# File 'lib/ovirtsdk4/types.rb', line 54580

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:


54589
54590
54591
54592
54593
54594
54595
54596
54597
54598
54599
# File 'lib/ovirtsdk4/types.rb', line 54589

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:


54606
54607
54608
# File 'lib/ovirtsdk4/types.rb', line 54606

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)

54619
54620
54621
54622
54623
54624
# File 'lib/ovirtsdk4/types.rb', line 54619

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:


54631
54632
54633
# File 'lib/ovirtsdk4/types.rb', line 54631

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:


54640
54641
54642
54643
54644
54645
54646
54647
54648
54649
54650
# File 'lib/ovirtsdk4/types.rb', line 54640

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:


54657
54658
54659
# File 'lib/ovirtsdk4/types.rb', line 54657

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:


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

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)

54682
54683
54684
# File 'lib/ovirtsdk4/types.rb', line 54682

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

54691
54692
54693
# File 'lib/ovirtsdk4/types.rb', line 54691

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:


54700
54701
54702
# File 'lib/ovirtsdk4/types.rb', line 54700

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:


54713
54714
54715
54716
54717
54718
# File 'lib/ovirtsdk4/types.rb', line 54713

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:


54725
54726
54727
# File 'lib/ovirtsdk4/types.rb', line 54725

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)

54738
54739
54740
54741
54742
54743
# File 'lib/ovirtsdk4/types.rb', line 54738

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:


54750
54751
54752
# File 'lib/ovirtsdk4/types.rb', line 54750

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:


54763
54764
54765
54766
54767
54768
# File 'lib/ovirtsdk4/types.rb', line 54763

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)

54775
54776
54777
# File 'lib/ovirtsdk4/types.rb', line 54775

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)

54784
54785
54786
# File 'lib/ovirtsdk4/types.rb', line 54784

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)

54793
54794
54795
# File 'lib/ovirtsdk4/types.rb', line 54793

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)

54802
54803
54804
# File 'lib/ovirtsdk4/types.rb', line 54802

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:


54811
54812
54813
# File 'lib/ovirtsdk4/types.rb', line 54811

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:


54824
54825
54826
54827
54828
54829
# File 'lib/ovirtsdk4/types.rb', line 54824

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)

54836
54837
54838
# File 'lib/ovirtsdk4/types.rb', line 54836

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)

54845
54846
54847
# File 'lib/ovirtsdk4/types.rb', line 54845

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)

54854
54855
54856
# File 'lib/ovirtsdk4/types.rb', line 54854

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)

54863
54864
54865
# File 'lib/ovirtsdk4/types.rb', line 54863

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:


54872
54873
54874
# File 'lib/ovirtsdk4/types.rb', line 54872

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:


54881
54882
54883
54884
54885
54886
54887
54888
54889
54890
54891
# File 'lib/ovirtsdk4/types.rb', line 54881

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)

54898
54899
54900
# File 'lib/ovirtsdk4/types.rb', line 54898

def date
  @date
end

#date=(value) ⇒ Object

Sets the value of the date attribute.

Parameters:

  • value (DateTime)

54907
54908
54909
# File 'lib/ovirtsdk4/types.rb', line 54907

def date=(value)
  @date = value
end

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)

54916
54917
54918
# File 'lib/ovirtsdk4/types.rb', line 54916

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)

54925
54926
54927
# File 'lib/ovirtsdk4/types.rb', line 54925

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

54934
54935
54936
# File 'lib/ovirtsdk4/types.rb', line 54934

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

54943
54944
54945
# File 'lib/ovirtsdk4/types.rb', line 54943

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:


54952
54953
54954
# File 'lib/ovirtsdk4/types.rb', line 54952

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:


54961
54962
54963
54964
54965
54966
54967
54968
54969
54970
54971
# File 'lib/ovirtsdk4/types.rb', line 54961

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:


54978
54979
54980
# File 'lib/ovirtsdk4/types.rb', line 54978

def disks
  @disks
end

#disks=(list) ⇒ Object

Sets the value of the disks attribute.

Parameters:

  • list (Array<Disk>)

54987
54988
54989
54990
54991
54992
54993
54994
54995
54996
54997
# File 'lib/ovirtsdk4/types.rb', line 54987

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:


55004
55005
55006
# File 'lib/ovirtsdk4/types.rb', line 55004

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:


55017
55018
55019
55020
55021
55022
# File 'lib/ovirtsdk4/types.rb', line 55017

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:


55029
55030
55031
# File 'lib/ovirtsdk4/types.rb', line 55029

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:


55042
55043
55044
55045
55046
55047
# File 'lib/ovirtsdk4/types.rb', line 55042

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.


55054
55055
55056
# File 'lib/ovirtsdk4/types.rb', line 55054

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:


55067
55068
55069
55070
55071
55072
# File 'lib/ovirtsdk4/types.rb', line 55067

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:


55079
55080
55081
# File 'lib/ovirtsdk4/types.rb', line 55079

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:


55088
55089
55090
55091
55092
55093
55094
55095
55096
55097
55098
# File 'lib/ovirtsdk4/types.rb', line 55088

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)

55105
55106
55107
# File 'lib/ovirtsdk4/types.rb', line 55105

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)

55114
55115
55116
# File 'lib/ovirtsdk4/types.rb', line 55114

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:


55123
55124
55125
# File 'lib/ovirtsdk4/types.rb', line 55123

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:


55132
55133
55134
55135
55136
55137
55138
55139
55140
55141
55142
# File 'lib/ovirtsdk4/types.rb', line 55132

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.


55149
55150
55151
# File 'lib/ovirtsdk4/types.rb', line 55149

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:


55162
55163
55164
55165
55166
55167
# File 'lib/ovirtsdk4/types.rb', line 55162

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:


55174
55175
55176
# File 'lib/ovirtsdk4/types.rb', line 55174

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:


55187
55188
55189
55190
55191
55192
# File 'lib/ovirtsdk4/types.rb', line 55187

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)

55199
55200
55201
# File 'lib/ovirtsdk4/types.rb', line 55199

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)

55208
55209
55210
# File 'lib/ovirtsdk4/types.rb', line 55208

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.


56768
56769
56770
56771
56772
56773
56774
56775
56776
# File 'lib/ovirtsdk4/types.rb', line 56768

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:


55217
55218
55219
# File 'lib/ovirtsdk4/types.rb', line 55217

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:


55230
55231
55232
55233
55234
55235
# File 'lib/ovirtsdk4/types.rb', line 55230

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:


55242
55243
55244
# File 'lib/ovirtsdk4/types.rb', line 55242

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)

55255
55256
55257
55258
55259
55260
# File 'lib/ovirtsdk4/types.rb', line 55255

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:


55267
55268
55269
# File 'lib/ovirtsdk4/types.rb', line 55267

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:


55276
55277
55278
55279
55280
55281
55282
55283
55284
55285
55286
# File 'lib/ovirtsdk4/types.rb', line 55276

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)

55293
55294
55295
# File 'lib/ovirtsdk4/types.rb', line 55293

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

55302
55303
55304
# File 'lib/ovirtsdk4/types.rb', line 55302

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:


55311
55312
55313
# File 'lib/ovirtsdk4/types.rb', line 55311

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:


55324
55325
55326
55327
55328
55329
# File 'lib/ovirtsdk4/types.rb', line 55324

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:


55336
55337
55338
# File 'lib/ovirtsdk4/types.rb', line 55336

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:


55349
55350
55351
55352
55353
55354
# File 'lib/ovirtsdk4/types.rb', line 55349

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:


55361
55362
55363
# File 'lib/ovirtsdk4/types.rb', line 55361

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)

55374
55375
55376
55377
55378
55379
# File 'lib/ovirtsdk4/types.rb', line 55374

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:


55386
55387
55388
# File 'lib/ovirtsdk4/types.rb', line 55386

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:


55395
55396
55397
55398
55399
55400
55401
55402
55403
55404
55405
# File 'lib/ovirtsdk4/types.rb', line 55395

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:


55412
55413
55414
# File 'lib/ovirtsdk4/types.rb', line 55412

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)

55425
55426
55427
55428
55429
55430
# File 'lib/ovirtsdk4/types.rb', line 55425

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:


55437
55438
55439
# File 'lib/ovirtsdk4/types.rb', line 55437

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:


55450
55451
55452
55453
55454
55455
# File 'lib/ovirtsdk4/types.rb', line 55450

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)

55462
55463
55464
# File 'lib/ovirtsdk4/types.rb', line 55462

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)

55471
55472
55473
# File 'lib/ovirtsdk4/types.rb', line 55471

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


55480
55481
55482
# File 'lib/ovirtsdk4/types.rb', line 55480

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:


55493
55494
55495
55496
55497
55498
# File 'lib/ovirtsdk4/types.rb', line 55493

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:


55505
55506
55507
# File 'lib/ovirtsdk4/types.rb', line 55505

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:


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

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)

55530
55531
55532
# File 'lib/ovirtsdk4/types.rb', line 55530

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)

55539
55540
55541
# File 'lib/ovirtsdk4/types.rb', line 55539

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)

55548
55549
55550
# File 'lib/ovirtsdk4/types.rb', line 55548

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)

55557
55558
55559
# File 'lib/ovirtsdk4/types.rb', line 55557

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

55566
55567
55568
# File 'lib/ovirtsdk4/types.rb', line 55566

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

55575
55576
55577
# File 'lib/ovirtsdk4/types.rb', line 55575

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)

55584
55585
55586
# File 'lib/ovirtsdk4/types.rb', line 55584

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)

55593
55594
55595
# File 'lib/ovirtsdk4/types.rb', line 55593

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:


55602
55603
55604
# File 'lib/ovirtsdk4/types.rb', line 55602

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)

55611
55612
55613
55614
55615
55616
55617
55618
55619
55620
55621
# File 'lib/ovirtsdk4/types.rb', line 55611

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:


55628
55629
55630
# File 'lib/ovirtsdk4/types.rb', line 55628

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:


55637
55638
55639
55640
55641
55642
55643
55644
55645
55646
55647
# File 'lib/ovirtsdk4/types.rb', line 55637

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:


55654
55655
55656
# File 'lib/ovirtsdk4/types.rb', line 55654

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:


55663
55664
55665
# File 'lib/ovirtsdk4/types.rb', line 55663

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)

55672
55673
55674
# File 'lib/ovirtsdk4/types.rb', line 55672

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)

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

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:


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

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:


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

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:


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

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:


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

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:


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

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:


55749
55750
55751
55752
55753
55754
55755
55756
55757
55758
55759
# File 'lib/ovirtsdk4/types.rb', line 55749

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:


55766
55767
55768
# File 'lib/ovirtsdk4/types.rb', line 55766

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


55775
55776
55777
55778
55779
55780
55781
55782
55783
55784
55785
# File 'lib/ovirtsdk4/types.rb', line 55775

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)

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

def persist_memorystate
  @persist_memorystate
end

#persist_memorystate=(value) ⇒ Object

Sets the value of the persist_memorystate attribute.

Parameters:

  • value (Boolean)

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

def persist_memorystate=(value)
  @persist_memorystate = value
end

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:


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

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:


55823
55824
55825
55826
55827
55828
# File 'lib/ovirtsdk4/types.rb', line 55823

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:


55835
55836
55837
# File 'lib/ovirtsdk4/types.rb', line 55835

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:


55848
55849
55850
55851
55852
55853
# File 'lib/ovirtsdk4/types.rb', line 55848

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:


55860
55861
55862
# File 'lib/ovirtsdk4/types.rb', line 55860

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:


55869
55870
55871
55872
55873
55874
55875
55876
55877
55878
55879
# File 'lib/ovirtsdk4/types.rb', line 55869

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:


55886
55887
55888
# File 'lib/ovirtsdk4/types.rb', line 55886

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:


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

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)

55911
55912
55913
# File 'lib/ovirtsdk4/types.rb', line 55911

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)

55920
55921
55922
# File 'lib/ovirtsdk4/types.rb', line 55920

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:


55929
55930
55931
# File 'lib/ovirtsdk4/types.rb', line 55929

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:


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

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:


55954
55955
55956
# File 'lib/ovirtsdk4/types.rb', line 55954

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:


55963
55964
55965
55966
55967
55968
55969
55970
55971
55972
55973
# File 'lib/ovirtsdk4/types.rb', line 55963

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:


55980
55981
55982
# File 'lib/ovirtsdk4/types.rb', line 55980

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)

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

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:


56005
56006
56007
# File 'lib/ovirtsdk4/types.rb', line 56005

def snapshot_status
  @snapshot_status
end

#snapshot_status=(value) ⇒ Object

Sets the value of the snapshot_status attribute.

Parameters:


56014
56015
56016
# File 'lib/ovirtsdk4/types.rb', line 56014

def snapshot_status=(value)
  @snapshot_status = value
end

#snapshot_typeSnapshotType

Returns the value of the snapshot_type attribute.

Returns:


56023
56024
56025
# File 'lib/ovirtsdk4/types.rb', line 56023

def snapshot_type
  @snapshot_type
end

#snapshot_type=(value) ⇒ Object

Sets the value of the snapshot_type attribute.

Parameters:


56032
56033
56034
# File 'lib/ovirtsdk4/types.rb', line 56032

def snapshot_type=(value)
  @snapshot_type = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:


56041
56042
56043
# File 'lib/ovirtsdk4/types.rb', line 56041

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:


56050
56051
56052
56053
56054
56055
56056
56057
56058
56059
56060
# File 'lib/ovirtsdk4/types.rb', line 56050

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)

56067
56068
56069
# File 'lib/ovirtsdk4/types.rb', line 56067

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)

56076
56077
56078
# File 'lib/ovirtsdk4/types.rb', line 56076

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:


56085
56086
56087
# File 'lib/ovirtsdk4/types.rb', line 56085

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)

56098
56099
56100
56101
56102
56103
# File 'lib/ovirtsdk4/types.rb', line 56098

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)

56110
56111
56112
# File 'lib/ovirtsdk4/types.rb', line 56110

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)

56119
56120
56121
# File 'lib/ovirtsdk4/types.rb', line 56119

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)

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

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)

56137
56138
56139
# File 'lib/ovirtsdk4/types.rb', line 56137

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)

56146
56147
56148
# File 'lib/ovirtsdk4/types.rb', line 56146

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)

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

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:


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

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:


56173
56174
56175
56176
56177
56178
56179
56180
56181
56182
56183
# File 'lib/ovirtsdk4/types.rb', line 56173

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:


56190
56191
56192
# File 'lib/ovirtsdk4/types.rb', line 56190

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:


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

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)

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

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)

56217
56218
56219
# File 'lib/ovirtsdk4/types.rb', line 56217

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)

56226
56227
56228
# File 'lib/ovirtsdk4/types.rb', line 56226

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)

56235
56236
56237
# File 'lib/ovirtsdk4/types.rb', line 56235

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)

56244
56245
56246
# File 'lib/ovirtsdk4/types.rb', line 56244

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)

56253
56254
56255
# File 'lib/ovirtsdk4/types.rb', line 56253

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:


56262
56263
56264
# File 'lib/ovirtsdk4/types.rb', line 56262

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:


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

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.


56287
56288
56289
# File 'lib/ovirtsdk4/types.rb', line 56287

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:


56296
56297
56298
# File 'lib/ovirtsdk4/types.rb', line 56296

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:


56305
56306
56307
# File 'lib/ovirtsdk4/types.rb', line 56305

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)

56314
56315
56316
56317
56318
56319
56320
56321
56322
56323
56324
# File 'lib/ovirtsdk4/types.rb', line 56314

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:


56331
56332
56333
# File 'lib/ovirtsdk4/types.rb', line 56331

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:


56344
56345
56346
56347
56348
56349
# File 'lib/ovirtsdk4/types.rb', line 56344

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:


56356
56357
56358
# File 'lib/ovirtsdk4/types.rb', line 56356

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:


56369
56370
56371
56372
56373
56374
# File 'lib/ovirtsdk4/types.rb', line 56369

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)

56381
56382
56383
# File 'lib/ovirtsdk4/types.rb', line 56381

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

56390
56391
56392
# File 'lib/ovirtsdk4/types.rb', line 56390

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:


56399
56400
56401
# File 'lib/ovirtsdk4/types.rb', line 56399

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


56408
56409
56410
# File 'lib/ovirtsdk4/types.rb', line 56408

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:


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

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)

56430
56431
56432
56433
56434
56435
# File 'lib/ovirtsdk4/types.rb', line 56430

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)

56442
56443
56444
# File 'lib/ovirtsdk4/types.rb', line 56442

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)

56451
56452
56453
# File 'lib/ovirtsdk4/types.rb', line 56451

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:


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

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:


56473
56474
56475
56476
56477
56478
# File 'lib/ovirtsdk4/types.rb', line 56473

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

#vmVm

Returns the value of the vm attribute.

Returns:


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

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)

56498
56499
56500
56501
56502
56503
# File 'lib/ovirtsdk4/types.rb', line 56498

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:


56510
56511
56512
# File 'lib/ovirtsdk4/types.rb', line 56510

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:


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

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:


56535
56536
56537
# File 'lib/ovirtsdk4/types.rb', line 56535

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:


56544
56545
56546
56547
56548
56549
56550
56551
56552
56553
56554
# File 'lib/ovirtsdk4/types.rb', line 56544

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