Class: OvirtSDK4::Vm

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

Direct Known Subclasses

Snapshot

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Vm

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

  • :delete_protected (Boolean)

    The value of attribute delete_protected.

  • :description (String)

    The value of attribute description.

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

    The values of attribute disk_attachments.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

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

    The values of attribute floppies.

  • :fqdn (String)

    The value of attribute fqdn.

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

    The values of attribute graphics_consoles.

  • :guest_operating_system (GuestOperatingSystem, Hash)

    The value of attribute guest_operating_system.

  • :guest_time_zone (TimeZone, Hash)

    The value of attribute guest_time_zone.

  • :has_illegal_images (Boolean)

    The value of attribute has_illegal_images.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :host (Host, Hash)

    The value of attribute host.

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

    The values of attribute host_devices.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :io (Io, Hash)

    The value of attribute io.

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

    The values of attribute katello_errata.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

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

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

  • :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_pool (VmPool, Hash)

    The value of attribute vm_pool.

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

    The values of attribute watchdogs.



51646
51647
51648
51649
51650
51651
51652
51653
51654
51655
51656
51657
51658
51659
51660
51661
51662
51663
51664
51665
51666
51667
51668
51669
51670
51671
51672
51673
51674
51675
51676
51677
51678
51679
51680
51681
51682
51683
51684
51685
# File 'lib/ovirtsdk4/types.rb', line 51646

def initialize(opts = {})
  super(opts)
  self.affinity_labels = opts[:affinity_labels]
  self.applications = opts[:applications]
  self.cdroms = opts[:cdroms]
  self.disk_attachments = opts[:disk_attachments]
  self.external_host_provider = opts[:external_host_provider]
  self.floppies = opts[:floppies]
  self.fqdn = opts[:fqdn]
  self.graphics_consoles = opts[:graphics_consoles]
  self.guest_operating_system = opts[:guest_operating_system]
  self.guest_time_zone = opts[:guest_time_zone]
  self.has_illegal_images = opts[:has_illegal_images]
  self.host = opts[:host]
  self.host_devices = opts[:host_devices]
  self.instance_type = opts[:instance_type]
  self.katello_errata = opts[:katello_errata]
  self.next_run_configuration_exists = opts[:next_run_configuration_exists]
  self.nics = opts[:nics]
  self.numa_nodes = opts[:numa_nodes]
  self.numa_tune_mode = opts[:numa_tune_mode]
  self.original_template = opts[:original_template]
  self.payloads = opts[:payloads]
  self.permissions = opts[:permissions]
  self.reported_devices = opts[:reported_devices]
  self.run_once = opts[:run_once]
  self.sessions = opts[:sessions]
  self.snapshots = opts[:snapshots]
  self.start_time = opts[:start_time]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.status_detail = opts[:status_detail]
  self.stop_reason = opts[:stop_reason]
  self.stop_time = opts[:stop_time]
  self.tags = opts[:tags]
  self.template = opts[:template]
  self.use_latest_template_version = opts[:use_latest_template_version]
  self.vm_pool = opts[:vm_pool]
  self.watchdogs = opts[:watchdogs]
end

Instance Method Details

#==(other) ⇒ Object

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



51690
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
# File 'lib/ovirtsdk4/types.rb', line 51690

def ==(other)
  super &&
  @affinity_labels == other.affinity_labels &&
  @applications == other.applications &&
  @cdroms == other.cdroms &&
  @disk_attachments == other.disk_attachments &&
  @external_host_provider == other.external_host_provider &&
  @floppies == other.floppies &&
  @fqdn == other.fqdn &&
  @graphics_consoles == other.graphics_consoles &&
  @guest_operating_system == other.guest_operating_system &&
  @guest_time_zone == other.guest_time_zone &&
  @has_illegal_images == other.has_illegal_images &&
  @host == other.host &&
  @host_devices == other.host_devices &&
  @instance_type == other.instance_type &&
  @katello_errata == other.katello_errata &&
  @next_run_configuration_exists == other.next_run_configuration_exists &&
  @nics == other.nics &&
  @numa_nodes == other.numa_nodes &&
  @numa_tune_mode == other.numa_tune_mode &&
  @original_template == other.original_template &&
  @payloads == other.payloads &&
  @permissions == other.permissions &&
  @reported_devices == other.reported_devices &&
  @run_once == other.run_once &&
  @sessions == other.sessions &&
  @snapshots == other.snapshots &&
  @start_time == other.start_time &&
  @statistics == other.statistics &&
  @status == other.status &&
  @status_detail == other.status_detail &&
  @stop_reason == other.stop_reason &&
  @stop_time == other.stop_time &&
  @tags == other.tags &&
  @template == other.template &&
  @use_latest_template_version == other.use_latest_template_version &&
  @vm_pool == other.vm_pool &&
  @watchdogs == other.watchdogs
end

#affinity_labelsArray<AffinityLabel>

Returns the value of the affinity_labels attribute.

Returns:



49573
49574
49575
# File 'lib/ovirtsdk4/types.rb', line 49573

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



49582
49583
49584
49585
49586
49587
49588
49589
49590
49591
49592
# File 'lib/ovirtsdk4/types.rb', line 49582

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:



49599
49600
49601
# File 'lib/ovirtsdk4/types.rb', line 49599

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:



49608
49609
49610
49611
49612
49613
49614
49615
49616
49617
49618
# File 'lib/ovirtsdk4/types.rb', line 49608

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:



49625
49626
49627
# File 'lib/ovirtsdk4/types.rb', line 49625

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)


49638
49639
49640
49641
49642
49643
# File 'lib/ovirtsdk4/types.rb', line 49638

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:



49650
49651
49652
# File 'lib/ovirtsdk4/types.rb', line 49650

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
# File 'lib/ovirtsdk4/types.rb', line 49659

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:



49676
49677
49678
# File 'lib/ovirtsdk4/types.rb', line 49676

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:



49689
49690
49691
49692
49693
49694
# File 'lib/ovirtsdk4/types.rb', line 49689

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)


49701
49702
49703
# File 'lib/ovirtsdk4/types.rb', line 49701

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


49710
49711
49712
# File 'lib/ovirtsdk4/types.rb', line 49710

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



49719
49720
49721
# File 'lib/ovirtsdk4/types.rb', line 49719

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:



49732
49733
49734
49735
49736
49737
# File 'lib/ovirtsdk4/types.rb', line 49732

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:



49744
49745
49746
# File 'lib/ovirtsdk4/types.rb', line 49744

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)


49757
49758
49759
49760
49761
49762
# File 'lib/ovirtsdk4/types.rb', line 49757

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:



49769
49770
49771
# File 'lib/ovirtsdk4/types.rb', line 49769

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:



49782
49783
49784
49785
49786
49787
# File 'lib/ovirtsdk4/types.rb', line 49782

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)


49794
49795
49796
# File 'lib/ovirtsdk4/types.rb', line 49794

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


49803
49804
49805
# File 'lib/ovirtsdk4/types.rb', line 49803

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


49812
49813
49814
# File 'lib/ovirtsdk4/types.rb', line 49812

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


49821
49822
49823
# File 'lib/ovirtsdk4/types.rb', line 49821

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



49830
49831
49832
# File 'lib/ovirtsdk4/types.rb', line 49830

def custom_compatibility_version
  @custom_compatibility_version
end

#custom_compatibility_version=(value) ⇒ Object

Sets the value of the custom_compatibility_version attribute.

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

Parameters:



49843
49844
49845
49846
49847
49848
# File 'lib/ovirtsdk4/types.rb', line 49843

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)


49855
49856
49857
# File 'lib/ovirtsdk4/types.rb', line 49855

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)


49864
49865
49866
# File 'lib/ovirtsdk4/types.rb', line 49864

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


49873
49874
49875
# File 'lib/ovirtsdk4/types.rb', line 49873

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)


49882
49883
49884
# File 'lib/ovirtsdk4/types.rb', line 49882

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



49891
49892
49893
# File 'lib/ovirtsdk4/types.rb', line 49891

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
# File 'lib/ovirtsdk4/types.rb', line 49900

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

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


49917
49918
49919
# File 'lib/ovirtsdk4/types.rb', line 49917

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


49926
49927
49928
# File 'lib/ovirtsdk4/types.rb', line 49926

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


49935
49936
49937
# File 'lib/ovirtsdk4/types.rb', line 49935

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


49944
49945
49946
# File 'lib/ovirtsdk4/types.rb', line 49944

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



49953
49954
49955
# File 'lib/ovirtsdk4/types.rb', line 49953

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
# File 'lib/ovirtsdk4/types.rb', line 49962

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

#displayDisplay

Returns the value of the display attribute.

Returns:



49979
49980
49981
# File 'lib/ovirtsdk4/types.rb', line 49979

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:



49992
49993
49994
49995
49996
49997
# File 'lib/ovirtsdk4/types.rb', line 49992

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:



50004
50005
50006
# File 'lib/ovirtsdk4/types.rb', line 50004

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:



50017
50018
50019
50020
50021
50022
# File 'lib/ovirtsdk4/types.rb', line 50017

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.



50029
50030
50031
# File 'lib/ovirtsdk4/types.rb', line 50029

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:



50042
50043
50044
50045
50046
50047
# File 'lib/ovirtsdk4/types.rb', line 50042

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:



50054
50055
50056
# File 'lib/ovirtsdk4/types.rb', line 50054

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:



50063
50064
50065
50066
50067
50068
50069
50070
50071
50072
50073
# File 'lib/ovirtsdk4/types.rb', line 50063

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)


50080
50081
50082
# File 'lib/ovirtsdk4/types.rb', line 50080

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)


50089
50090
50091
# File 'lib/ovirtsdk4/types.rb', line 50089

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



50098
50099
50100
# File 'lib/ovirtsdk4/types.rb', line 50098

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
# File 'lib/ovirtsdk4/types.rb', line 50107

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.



50124
50125
50126
# File 'lib/ovirtsdk4/types.rb', line 50124

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:



50137
50138
50139
50140
50141
50142
# File 'lib/ovirtsdk4/types.rb', line 50137

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:



50149
50150
50151
# File 'lib/ovirtsdk4/types.rb', line 50149

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:



50162
50163
50164
50165
50166
50167
# File 'lib/ovirtsdk4/types.rb', line 50162

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)


50174
50175
50176
# File 'lib/ovirtsdk4/types.rb', line 50174

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)


50183
50184
50185
# File 'lib/ovirtsdk4/types.rb', line 50183

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.



51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770
51771
51772
51773
# File 'lib/ovirtsdk4/types.rb', line 51734

def hash
  super +
  @affinity_labels.hash +
  @applications.hash +
  @cdroms.hash +
  @disk_attachments.hash +
  @external_host_provider.hash +
  @floppies.hash +
  @fqdn.hash +
  @graphics_consoles.hash +
  @guest_operating_system.hash +
  @guest_time_zone.hash +
  @has_illegal_images.hash +
  @host.hash +
  @host_devices.hash +
  @instance_type.hash +
  @katello_errata.hash +
  @next_run_configuration_exists.hash +
  @nics.hash +
  @numa_nodes.hash +
  @numa_tune_mode.hash +
  @original_template.hash +
  @payloads.hash +
  @permissions.hash +
  @reported_devices.hash +
  @run_once.hash +
  @sessions.hash +
  @snapshots.hash +
  @start_time.hash +
  @statistics.hash +
  @status.hash +
  @status_detail.hash +
  @stop_reason.hash +
  @stop_time.hash +
  @tags.hash +
  @template.hash +
  @use_latest_template_version.hash +
  @vm_pool.hash +
  @watchdogs.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



50192
50193
50194
# File 'lib/ovirtsdk4/types.rb', line 50192

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:



50205
50206
50207
50208
50209
50210
# File 'lib/ovirtsdk4/types.rb', line 50205

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:



50217
50218
50219
# File 'lib/ovirtsdk4/types.rb', line 50217

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)


50230
50231
50232
50233
50234
50235
# File 'lib/ovirtsdk4/types.rb', line 50230

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:



50242
50243
50244
# File 'lib/ovirtsdk4/types.rb', line 50242

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:



50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
# File 'lib/ovirtsdk4/types.rb', line 50251

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)


50268
50269
50270
# File 'lib/ovirtsdk4/types.rb', line 50268

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


50277
50278
50279
# File 'lib/ovirtsdk4/types.rb', line 50277

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



50286
50287
50288
# File 'lib/ovirtsdk4/types.rb', line 50286

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:



50299
50300
50301
50302
50303
50304
# File 'lib/ovirtsdk4/types.rb', line 50299

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:



50311
50312
50313
# File 'lib/ovirtsdk4/types.rb', line 50311

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:



50324
50325
50326
50327
50328
50329
# File 'lib/ovirtsdk4/types.rb', line 50324

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:



50336
50337
50338
# File 'lib/ovirtsdk4/types.rb', line 50336

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)


50349
50350
50351
50352
50353
50354
# File 'lib/ovirtsdk4/types.rb', line 50349

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:



50361
50362
50363
# File 'lib/ovirtsdk4/types.rb', line 50361

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
# File 'lib/ovirtsdk4/types.rb', line 50370

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:



50387
50388
50389
# File 'lib/ovirtsdk4/types.rb', line 50387

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)


50400
50401
50402
50403
50404
50405
# File 'lib/ovirtsdk4/types.rb', line 50400

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:



50412
50413
50414
# File 'lib/ovirtsdk4/types.rb', line 50412

def lease
  @lease
end

#lease=(value) ⇒ Object

Sets the value of the lease attribute.

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

Parameters:



50425
50426
50427
50428
50429
50430
# File 'lib/ovirtsdk4/types.rb', line 50425

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)


50437
50438
50439
# File 'lib/ovirtsdk4/types.rb', line 50437

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


50446
50447
50448
# File 'lib/ovirtsdk4/types.rb', line 50446

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



50455
50456
50457
# File 'lib/ovirtsdk4/types.rb', line 50455

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:



50468
50469
50470
50471
50472
50473
# File 'lib/ovirtsdk4/types.rb', line 50468

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:



50480
50481
50482
# File 'lib/ovirtsdk4/types.rb', line 50480

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:



50493
50494
50495
50496
50497
50498
# File 'lib/ovirtsdk4/types.rb', line 50493

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)


50505
50506
50507
# File 'lib/ovirtsdk4/types.rb', line 50505

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


50514
50515
50516
# File 'lib/ovirtsdk4/types.rb', line 50514

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


50523
50524
50525
# File 'lib/ovirtsdk4/types.rb', line 50523

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)


50532
50533
50534
# File 'lib/ovirtsdk4/types.rb', line 50532

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


50541
50542
50543
# File 'lib/ovirtsdk4/types.rb', line 50541

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


50550
50551
50552
# File 'lib/ovirtsdk4/types.rb', line 50550

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)


50559
50560
50561
# File 'lib/ovirtsdk4/types.rb', line 50559

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)


50568
50569
50570
# File 'lib/ovirtsdk4/types.rb', line 50568

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



50577
50578
50579
# File 'lib/ovirtsdk4/types.rb', line 50577

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


50586
50587
50588
50589
50590
50591
50592
50593
50594
50595
50596
# File 'lib/ovirtsdk4/types.rb', line 50586

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:



50603
50604
50605
# File 'lib/ovirtsdk4/types.rb', line 50603

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



50612
50613
50614
50615
50616
50617
50618
50619
50620
50621
50622
# File 'lib/ovirtsdk4/types.rb', line 50612

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:



50629
50630
50631
# File 'lib/ovirtsdk4/types.rb', line 50629

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:



50638
50639
50640
# File 'lib/ovirtsdk4/types.rb', line 50638

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


50647
50648
50649
# File 'lib/ovirtsdk4/types.rb', line 50647

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


50656
50657
50658
# File 'lib/ovirtsdk4/types.rb', line 50656

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:



50665
50666
50667
# File 'lib/ovirtsdk4/types.rb', line 50665

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:



50678
50679
50680
50681
50682
50683
# File 'lib/ovirtsdk4/types.rb', line 50678

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:



50690
50691
50692
# File 'lib/ovirtsdk4/types.rb', line 50690

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:



50703
50704
50705
50706
50707
50708
# File 'lib/ovirtsdk4/types.rb', line 50703

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:



50715
50716
50717
# File 'lib/ovirtsdk4/types.rb', line 50715

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:



50724
50725
50726
50727
50728
50729
50730
50731
50732
50733
50734
# File 'lib/ovirtsdk4/types.rb', line 50724

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:



50741
50742
50743
# File 'lib/ovirtsdk4/types.rb', line 50741

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
# File 'lib/ovirtsdk4/types.rb', line 50750

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

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:



50767
50768
50769
# File 'lib/ovirtsdk4/types.rb', line 50767

def placement_policy
  @placement_policy
end

#placement_policy=(value) ⇒ Object

Sets the value of the placement_policy attribute.

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

Parameters:



50780
50781
50782
50783
50784
50785
# File 'lib/ovirtsdk4/types.rb', line 50780

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:



50792
50793
50794
# File 'lib/ovirtsdk4/types.rb', line 50792

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:



50805
50806
50807
50808
50809
50810
# File 'lib/ovirtsdk4/types.rb', line 50805

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:



50817
50818
50819
# File 'lib/ovirtsdk4/types.rb', line 50817

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:



50826
50827
50828
50829
50830
50831
50832
50833
50834
50835
50836
# File 'lib/ovirtsdk4/types.rb', line 50826

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:



50843
50844
50845
# File 'lib/ovirtsdk4/types.rb', line 50843

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:



50856
50857
50858
50859
50860
50861
# File 'lib/ovirtsdk4/types.rb', line 50856

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)


50868
50869
50870
# File 'lib/ovirtsdk4/types.rb', line 50868

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)


50877
50878
50879
# File 'lib/ovirtsdk4/types.rb', line 50877

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



50886
50887
50888
# File 'lib/ovirtsdk4/types.rb', line 50886

def serial_number
  @serial_number
end

#serial_number=(value) ⇒ Object

Sets the value of the serial_number attribute.

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

Parameters:



50899
50900
50901
50902
50903
50904
# File 'lib/ovirtsdk4/types.rb', line 50899

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:



50911
50912
50913
# File 'lib/ovirtsdk4/types.rb', line 50911

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:



50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
# File 'lib/ovirtsdk4/types.rb', line 50920

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:



50937
50938
50939
# File 'lib/ovirtsdk4/types.rb', line 50937

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)


50950
50951
50952
50953
50954
50955
# File 'lib/ovirtsdk4/types.rb', line 50950

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

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:



50962
50963
50964
# File 'lib/ovirtsdk4/types.rb', line 50962

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:



50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
# File 'lib/ovirtsdk4/types.rb', line 50971

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)


50988
50989
50990
# File 'lib/ovirtsdk4/types.rb', line 50988

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


50997
50998
50999
# File 'lib/ovirtsdk4/types.rb', line 50997

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



51006
51007
51008
# File 'lib/ovirtsdk4/types.rb', line 51006

def sso
  @sso
end

#sso=(value) ⇒ Object

Sets the value of the sso attribute.

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

Parameters:

  • value (Sso, Hash)


51019
51020
51021
51022
51023
51024
# File 'lib/ovirtsdk4/types.rb', line 51019

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)


51031
51032
51033
# File 'lib/ovirtsdk4/types.rb', line 51031

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


51040
51041
51042
# File 'lib/ovirtsdk4/types.rb', line 51040

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)


51049
51050
51051
# File 'lib/ovirtsdk4/types.rb', line 51049

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)


51058
51059
51060
# File 'lib/ovirtsdk4/types.rb', line 51058

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


51067
51068
51069
# File 'lib/ovirtsdk4/types.rb', line 51067

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


51076
51077
51078
# File 'lib/ovirtsdk4/types.rb', line 51076

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



51085
51086
51087
# File 'lib/ovirtsdk4/types.rb', line 51085

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
# File 'lib/ovirtsdk4/types.rb', line 51094

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:



51111
51112
51113
# File 'lib/ovirtsdk4/types.rb', line 51111

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



51120
51121
51122
# File 'lib/ovirtsdk4/types.rb', line 51120

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


51129
51130
51131
# File 'lib/ovirtsdk4/types.rb', line 51129

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


51138
51139
51140
# File 'lib/ovirtsdk4/types.rb', line 51138

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)


51147
51148
51149
# File 'lib/ovirtsdk4/types.rb', line 51147

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)


51156
51157
51158
# File 'lib/ovirtsdk4/types.rb', line 51156

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)


51165
51166
51167
# File 'lib/ovirtsdk4/types.rb', line 51165

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)


51174
51175
51176
# File 'lib/ovirtsdk4/types.rb', line 51174

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



51183
51184
51185
# File 'lib/ovirtsdk4/types.rb', line 51183

def storage_domain
  @storage_domain
end

#storage_domain=(value) ⇒ Object

Sets the value of the storage_domain attribute.

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

Parameters:



51196
51197
51198
51199
51200
51201
# File 'lib/ovirtsdk4/types.rb', line 51196

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.



51208
51209
51210
# File 'lib/ovirtsdk4/types.rb', line 51208

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:



51217
51218
51219
# File 'lib/ovirtsdk4/types.rb', line 51217

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



51226
51227
51228
# File 'lib/ovirtsdk4/types.rb', line 51226

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


51235
51236
51237
51238
51239
51240
51241
51242
51243
51244
51245
# File 'lib/ovirtsdk4/types.rb', line 51235

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:



51252
51253
51254
# File 'lib/ovirtsdk4/types.rb', line 51252

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:



51265
51266
51267
51268
51269
51270
# File 'lib/ovirtsdk4/types.rb', line 51265

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:



51277
51278
51279
# File 'lib/ovirtsdk4/types.rb', line 51277

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:



51290
51291
51292
51293
51294
51295
# File 'lib/ovirtsdk4/types.rb', line 51290

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)


51302
51303
51304
# File 'lib/ovirtsdk4/types.rb', line 51302

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


51311
51312
51313
# File 'lib/ovirtsdk4/types.rb', line 51311

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



51320
51321
51322
# File 'lib/ovirtsdk4/types.rb', line 51320

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



51329
51330
51331
# File 'lib/ovirtsdk4/types.rb', line 51329

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



51338
51339
51340
# File 'lib/ovirtsdk4/types.rb', line 51338

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)


51351
51352
51353
51354
51355
51356
# File 'lib/ovirtsdk4/types.rb', line 51351

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)


51363
51364
51365
# File 'lib/ovirtsdk4/types.rb', line 51363

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)


51372
51373
51374
# File 'lib/ovirtsdk4/types.rb', line 51372

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



51381
51382
51383
# File 'lib/ovirtsdk4/types.rb', line 51381

def virtio_scsi
  @virtio_scsi
end

#virtio_scsi=(value) ⇒ Object

Sets the value of the virtio_scsi attribute.

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

Parameters:



51394
51395
51396
51397
51398
51399
# File 'lib/ovirtsdk4/types.rb', line 51394

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)


51406
51407
51408
# File 'lib/ovirtsdk4/types.rb', line 51406

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)


51415
51416
51417
# File 'lib/ovirtsdk4/types.rb', line 51415

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vm_poolVmPool

Returns the value of the vm_pool attribute.

Returns:



51424
51425
51426
# File 'lib/ovirtsdk4/types.rb', line 51424

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



51437
51438
51439
51440
51441
51442
# File 'lib/ovirtsdk4/types.rb', line 51437

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:



51449
51450
51451
# File 'lib/ovirtsdk4/types.rb', line 51449

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



51458
51459
51460
51461
51462
51463
51464
51465
51466
51467
51468
# File 'lib/ovirtsdk4/types.rb', line 51458

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