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.

  • :auto_pinning_policy (AutoPinningPolicy)

    The value of attribute auto_pinning_policy.

  • :bios (Bios, Hash)

    The value of attribute bios.

  • :cdroms (Array<Cdrom>, Array<Hash>)

    The values of attribute cdroms.

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :console (Console, Hash)

    The value of attribute console.

  • :cpu (Cpu, Hash)

    The value of attribute cpu.

  • :cpu_pinning_policy (CpuPinningPolicy)

    The value of attribute cpu_pinning_policy.

  • :cpu_profile (CpuProfile, Hash)

    The value of attribute cpu_profile.

  • :cpu_shares (Integer)

    The value of attribute cpu_shares.

  • :creation_time (DateTime)

    The value of attribute creation_time.

  • :custom_compatibility_version (Version, Hash)

    The value of attribute custom_compatibility_version.

  • :custom_cpu_model (String)

    The value of attribute custom_cpu_model.

  • :custom_emulated_machine (String)

    The value of attribute custom_emulated_machine.

  • :custom_properties (Array<CustomProperty>, Array<Hash>)

    The values of attribute custom_properties.

  • :date (DateTime)

    The value of attribute date.

  • :delete_protected (Boolean)

    The value of attribute delete_protected.

  • :description (String)

    The value of attribute description.

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

    The values of attribute disk_attachments.

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

    The values of attribute disks.

  • :display (Display, Hash)

    The value of attribute display.

  • :domain (Domain, Hash)

    The value of attribute domain.

  • :dynamic_cpu (DynamicCpu, Hash)

    The value of attribute dynamic_cpu.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

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

    The values of attribute floppies.

  • :fqdn (String)

    The value of attribute fqdn.

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

    The values of attribute graphics_consoles.

  • :guest_operating_system (GuestOperatingSystem, Hash)

    The value of attribute guest_operating_system.

  • :guest_time_zone (TimeZone, Hash)

    The value of attribute guest_time_zone.

  • :has_illegal_images (Boolean)

    The value of attribute has_illegal_images.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :host (Host, Hash)

    The value of attribute host.

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

    The values of attribute host_devices.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :io (Io, Hash)

    The value of attribute io.

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

    The values of attribute katello_errata.

  • :large_icon (Icon, Hash)

    The value of attribute large_icon.

  • :lease (StorageDomainLease, Hash)

    The value of attribute lease.

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

    The values of attribute mediated_devices.

  • :memory (Integer)

    The value of attribute memory.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :migration_downtime (Integer)

    The value of attribute migration_downtime.

  • :multi_queues_enabled (Boolean)

    The value of attribute multi_queues_enabled.

  • :name (String)

    The value of attribute name.

  • :next_run_configuration_exists (Boolean)

    The value of attribute next_run_configuration_exists.

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

    The values of attribute nics.

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

    The values of attribute numa_nodes.

  • :numa_tune_mode (NumaTuneMode)

    The value of attribute numa_tune_mode.

  • :origin (String)

    The value of attribute origin.

  • :original_template (Template, Hash)

    The value of attribute original_template.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

    The values of attribute payloads.

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

    The values of attribute permissions.

  • :persist_memorystate (Boolean)

    The value of attribute persist_memorystate.

  • :placement_policy (VmPlacementPolicy, Hash)

    The value of attribute placement_policy.

  • :quota (Quota, Hash)

    The value of attribute quota.

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

    The values of attribute reported_devices.

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :run_once (Boolean)

    The value of attribute run_once.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

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

    The values of attribute sessions.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

  • :snapshot_status (SnapshotStatus)

    The value of attribute snapshot_status.

  • :snapshot_type (SnapshotType)

    The value of attribute snapshot_type.

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

    The values of attribute snapshots.

  • :soundcard_enabled (Boolean)

    The value of attribute soundcard_enabled.

  • :sso (Sso, Hash)

    The value of attribute sso.

  • :start_paused (Boolean)

    The value of attribute start_paused.

  • :start_time (DateTime)

    The value of attribute start_time.

  • :stateless (Boolean)

    The value of attribute stateless.

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

    The values of attribute statistics.

  • :status (VmStatus)

    The value of attribute status.

  • :status_detail (String)

    The value of attribute status_detail.

  • :stop_reason (String)

    The value of attribute stop_reason.

  • :stop_time (DateTime)

    The value of attribute stop_time.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :storage_error_resume_behaviour (VmStorageErrorResumeBehaviour)

    The value of attribute storage_error_resume_behaviour.

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

    The values of attribute tags.

  • :template (Template, Hash)

    The value of attribute template.

  • :time_zone (TimeZone, Hash)

    The value of attribute time_zone.

  • :tpm_enabled (Boolean)

    The value of attribute tpm_enabled.

  • :tunnel_migration (Boolean)

    The value of attribute tunnel_migration.

  • :type (VmType)

    The value of attribute type.

  • :usb (Usb, Hash)

    The value of attribute usb.

  • :use_latest_template_version (Boolean)

    The value of attribute use_latest_template_version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :virtio_scsi_multi_queues (Integer)

    The value of attribute virtio_scsi_multi_queues.

  • :virtio_scsi_multi_queues_enabled (Boolean)

    The value of attribute virtio_scsi_multi_queues_enabled.

  • :vm (Vm, Hash)

    The value of attribute vm.

  • :vm_pool (VmPool, Hash)

    The value of attribute vm_pool.

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

    The values of attribute watchdogs.



59638
59639
59640
59641
59642
59643
59644
59645
59646
# File 'lib/ovirtsdk4/types.rb', line 59638

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.



59651
59652
59653
59654
59655
59656
59657
59658
59659
# File 'lib/ovirtsdk4/types.rb', line 59651

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:



57295
57296
57297
# File 'lib/ovirtsdk4/types.rb', line 57295

def affinity_labels
  @affinity_labels
end

#affinity_labels=(list) ⇒ Object

Sets the value of the affinity_labels attribute.

Parameters:



57304
57305
57306
57307
57308
57309
57310
57311
57312
57313
57314
# File 'lib/ovirtsdk4/types.rb', line 57304

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:



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

def applications
  @applications
end

#applications=(list) ⇒ Object

Sets the value of the applications attribute.

Parameters:



57330
57331
57332
57333
57334
57335
57336
57337
57338
57339
57340
# File 'lib/ovirtsdk4/types.rb', line 57330

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

#auto_pinning_policyAutoPinningPolicy

Returns the value of the auto_pinning_policy attribute.

Returns:



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

def auto_pinning_policy
  @auto_pinning_policy
end

#auto_pinning_policy=(value) ⇒ Object

Sets the value of the auto_pinning_policy attribute.

Parameters:



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

def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end

#biosBios

Returns the value of the bios attribute.

Returns:



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

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)


57378
57379
57380
57381
57382
57383
# File 'lib/ovirtsdk4/types.rb', line 57378

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:



57390
57391
57392
# File 'lib/ovirtsdk4/types.rb', line 57390

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



57399
57400
57401
57402
57403
57404
57405
57406
57407
57408
57409
# File 'lib/ovirtsdk4/types.rb', line 57399

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:



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

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:



57429
57430
57431
57432
57433
57434
# File 'lib/ovirtsdk4/types.rb', line 57429

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)


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

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


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

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



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

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:



57472
57473
57474
57475
57476
57477
# File 'lib/ovirtsdk4/types.rb', line 57472

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:



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

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)


57497
57498
57499
57500
57501
57502
# File 'lib/ovirtsdk4/types.rb', line 57497

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

#cpu_pinning_policyCpuPinningPolicy

Returns the value of the cpu_pinning_policy attribute.

Returns:



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

def cpu_pinning_policy
  @cpu_pinning_policy
end

#cpu_pinning_policy=(value) ⇒ Object

Sets the value of the cpu_pinning_policy attribute.

Parameters:



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

def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end

#cpu_profileCpuProfile

Returns the value of the cpu_profile attribute.

Returns:



57527
57528
57529
# File 'lib/ovirtsdk4/types.rb', line 57527

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:



57540
57541
57542
57543
57544
57545
# File 'lib/ovirtsdk4/types.rb', line 57540

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)


57552
57553
57554
# File 'lib/ovirtsdk4/types.rb', line 57552

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


57561
57562
57563
# File 'lib/ovirtsdk4/types.rb', line 57561

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


57570
57571
57572
# File 'lib/ovirtsdk4/types.rb', line 57570

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


57579
57580
57581
# File 'lib/ovirtsdk4/types.rb', line 57579

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



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

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:



57601
57602
57603
57604
57605
57606
# File 'lib/ovirtsdk4/types.rb', line 57601

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)


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

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)


57622
57623
57624
# File 'lib/ovirtsdk4/types.rb', line 57622

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


57631
57632
57633
# File 'lib/ovirtsdk4/types.rb', line 57631

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)


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

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



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

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



57658
57659
57660
57661
57662
57663
57664
57665
57666
57667
57668
# File 'lib/ovirtsdk4/types.rb', line 57658

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)


57675
57676
57677
# File 'lib/ovirtsdk4/types.rb', line 57675

def date
  @date
end

#date=(value) ⇒ Object

Sets the value of the date attribute.

Parameters:

  • value (DateTime)


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

def date=(value)
  @date = value
end

#delete_protectedBoolean

Returns the value of the delete_protected attribute.

Returns:

  • (Boolean)


57693
57694
57695
# File 'lib/ovirtsdk4/types.rb', line 57693

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


57702
57703
57704
# File 'lib/ovirtsdk4/types.rb', line 57702

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


57711
57712
57713
# File 'lib/ovirtsdk4/types.rb', line 57711

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


57720
57721
57722
# File 'lib/ovirtsdk4/types.rb', line 57720

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



57729
57730
57731
# File 'lib/ovirtsdk4/types.rb', line 57729

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



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

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:



57755
57756
57757
# File 'lib/ovirtsdk4/types.rb', line 57755

def disks
  @disks
end

#disks=(list) ⇒ Object

Sets the value of the disks attribute.

Parameters:

  • list (Array<Disk>)


57764
57765
57766
57767
57768
57769
57770
57771
57772
57773
57774
# File 'lib/ovirtsdk4/types.rb', line 57764

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:



57781
57782
57783
# File 'lib/ovirtsdk4/types.rb', line 57781

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:



57794
57795
57796
57797
57798
57799
# File 'lib/ovirtsdk4/types.rb', line 57794

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:



57806
57807
57808
# File 'lib/ovirtsdk4/types.rb', line 57806

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:



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

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

#dynamic_cpuDynamicCpu

Returns the value of the dynamic_cpu attribute.

Returns:



57831
57832
57833
# File 'lib/ovirtsdk4/types.rb', line 57831

def dynamic_cpu
  @dynamic_cpu
end

#dynamic_cpu=(value) ⇒ Object

Sets the value of the dynamic_cpu attribute.

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

Parameters:



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

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

#external_host_providerExternalHostProvider

Returns the value of the external_host_provider attribute.



57856
57857
57858
# File 'lib/ovirtsdk4/types.rb', line 57856

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:



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

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:



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

def floppies
  @floppies
end

#floppies=(list) ⇒ Object

Sets the value of the floppies attribute.

Parameters:



57890
57891
57892
57893
57894
57895
57896
57897
57898
57899
57900
# File 'lib/ovirtsdk4/types.rb', line 57890

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)


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

def fqdn
  @fqdn
end

#fqdn=(value) ⇒ Object

Sets the value of the fqdn attribute.

Parameters:

  • value (String)


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

def fqdn=(value)
  @fqdn = value
end

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



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

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



57934
57935
57936
57937
57938
57939
57940
57941
57942
57943
57944
# File 'lib/ovirtsdk4/types.rb', line 57934

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.



57951
57952
57953
# File 'lib/ovirtsdk4/types.rb', line 57951

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:



57964
57965
57966
57967
57968
57969
# File 'lib/ovirtsdk4/types.rb', line 57964

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:



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

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:



57989
57990
57991
57992
57993
57994
# File 'lib/ovirtsdk4/types.rb', line 57989

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)


58001
58002
58003
# File 'lib/ovirtsdk4/types.rb', line 58001

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)


58010
58011
58012
# File 'lib/ovirtsdk4/types.rb', line 58010

def has_illegal_images=(value)
  @has_illegal_images = value
end

#hashObject

Generates a hash value for this object.



59664
59665
59666
59667
59668
59669
59670
59671
59672
# File 'lib/ovirtsdk4/types.rb', line 59664

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:



58019
58020
58021
# File 'lib/ovirtsdk4/types.rb', line 58019

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:



58032
58033
58034
58035
58036
58037
# File 'lib/ovirtsdk4/types.rb', line 58032

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:



58044
58045
58046
# File 'lib/ovirtsdk4/types.rb', line 58044

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)


58057
58058
58059
58060
58061
58062
# File 'lib/ovirtsdk4/types.rb', line 58057

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:



58069
58070
58071
# File 'lib/ovirtsdk4/types.rb', line 58069

def host_devices
  @host_devices
end

#host_devices=(list) ⇒ Object

Sets the value of the host_devices attribute.

Parameters:



58078
58079
58080
58081
58082
58083
58084
58085
58086
58087
58088
# File 'lib/ovirtsdk4/types.rb', line 58078

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)


58095
58096
58097
# File 'lib/ovirtsdk4/types.rb', line 58095

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


58104
58105
58106
# File 'lib/ovirtsdk4/types.rb', line 58104

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



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

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:



58126
58127
58128
58129
58130
58131
# File 'lib/ovirtsdk4/types.rb', line 58126

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:



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

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:



58151
58152
58153
58154
58155
58156
# File 'lib/ovirtsdk4/types.rb', line 58151

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:



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

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)


58176
58177
58178
58179
58180
58181
# File 'lib/ovirtsdk4/types.rb', line 58176

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:



58188
58189
58190
# File 'lib/ovirtsdk4/types.rb', line 58188

def katello_errata
  @katello_errata
end

#katello_errata=(list) ⇒ Object

Sets the value of the katello_errata attribute.

Parameters:



58197
58198
58199
58200
58201
58202
58203
58204
58205
58206
58207
# File 'lib/ovirtsdk4/types.rb', line 58197

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:



58214
58215
58216
# File 'lib/ovirtsdk4/types.rb', line 58214

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)


58227
58228
58229
58230
58231
58232
# File 'lib/ovirtsdk4/types.rb', line 58227

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:



58239
58240
58241
# File 'lib/ovirtsdk4/types.rb', line 58239

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:



58252
58253
58254
58255
58256
58257
# File 'lib/ovirtsdk4/types.rb', line 58252

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

#mediated_devicesArray<VmMediatedDevice>

Returns the value of the mediated_devices attribute.

Returns:



58264
58265
58266
# File 'lib/ovirtsdk4/types.rb', line 58264

def mediated_devices
  @mediated_devices
end

#mediated_devices=(list) ⇒ Object

Sets the value of the mediated_devices attribute.

Parameters:



58273
58274
58275
58276
58277
58278
58279
58280
58281
58282
58283
# File 'lib/ovirtsdk4/types.rb', line 58273

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

#memoryInteger

Returns the value of the memory attribute.

Returns:

  • (Integer)


58290
58291
58292
# File 'lib/ovirtsdk4/types.rb', line 58290

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


58299
58300
58301
# File 'lib/ovirtsdk4/types.rb', line 58299

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



58308
58309
58310
# File 'lib/ovirtsdk4/types.rb', line 58308

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:



58321
58322
58323
58324
58325
58326
# File 'lib/ovirtsdk4/types.rb', line 58321

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:



58333
58334
58335
# File 'lib/ovirtsdk4/types.rb', line 58333

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:



58346
58347
58348
58349
58350
58351
# File 'lib/ovirtsdk4/types.rb', line 58346

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)


58358
58359
58360
# File 'lib/ovirtsdk4/types.rb', line 58358

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


58367
58368
58369
# File 'lib/ovirtsdk4/types.rb', line 58367

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


58376
58377
58378
# File 'lib/ovirtsdk4/types.rb', line 58376

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)


58385
58386
58387
# File 'lib/ovirtsdk4/types.rb', line 58385

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


58394
58395
58396
# File 'lib/ovirtsdk4/types.rb', line 58394

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


58403
58404
58405
# File 'lib/ovirtsdk4/types.rb', line 58403

def name=(value)
  @name = value
end

#next_run_configuration_existsBoolean

Returns the value of the next_run_configuration_exists attribute.

Returns:

  • (Boolean)


58412
58413
58414
# File 'lib/ovirtsdk4/types.rb', line 58412

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)


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

def next_run_configuration_exists=(value)
  @next_run_configuration_exists = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



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

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


58439
58440
58441
58442
58443
58444
58445
58446
58447
58448
58449
# File 'lib/ovirtsdk4/types.rb', line 58439

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:



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

def numa_nodes
  @numa_nodes
end

#numa_nodes=(list) ⇒ Object

Sets the value of the numa_nodes attribute.

Parameters:



58465
58466
58467
58468
58469
58470
58471
58472
58473
58474
58475
# File 'lib/ovirtsdk4/types.rb', line 58465

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:



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

def numa_tune_mode
  @numa_tune_mode
end

#numa_tune_mode=(value) ⇒ Object

Sets the value of the numa_tune_mode attribute.

Parameters:



58491
58492
58493
# File 'lib/ovirtsdk4/types.rb', line 58491

def numa_tune_mode=(value)
  @numa_tune_mode = value
end

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


58500
58501
58502
# File 'lib/ovirtsdk4/types.rb', line 58500

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


58509
58510
58511
# File 'lib/ovirtsdk4/types.rb', line 58509

def origin=(value)
  @origin = value
end

#original_templateTemplate

Returns the value of the original_template attribute.

Returns:



58518
58519
58520
# File 'lib/ovirtsdk4/types.rb', line 58518

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:



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

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:



58543
58544
58545
# File 'lib/ovirtsdk4/types.rb', line 58543

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:



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

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:



58568
58569
58570
# File 'lib/ovirtsdk4/types.rb', line 58568

def payloads
  @payloads
end

#payloads=(list) ⇒ Object

Sets the value of the payloads attribute.

Parameters:



58577
58578
58579
58580
58581
58582
58583
58584
58585
58586
58587
# File 'lib/ovirtsdk4/types.rb', line 58577

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:



58594
58595
58596
# File 'lib/ovirtsdk4/types.rb', line 58594

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



58603
58604
58605
58606
58607
58608
58609
58610
58611
58612
58613
# File 'lib/ovirtsdk4/types.rb', line 58603

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)


58620
58621
58622
# File 'lib/ovirtsdk4/types.rb', line 58620

def persist_memorystate
  @persist_memorystate
end

#persist_memorystate=(value) ⇒ Object

Sets the value of the persist_memorystate attribute.

Parameters:

  • value (Boolean)


58629
58630
58631
# File 'lib/ovirtsdk4/types.rb', line 58629

def persist_memorystate=(value)
  @persist_memorystate = value
end

#placement_policyVmPlacementPolicy

Returns the value of the placement_policy attribute.

Returns:



58638
58639
58640
# File 'lib/ovirtsdk4/types.rb', line 58638

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:



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

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:



58663
58664
58665
# File 'lib/ovirtsdk4/types.rb', line 58663

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:



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

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:



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

def reported_devices
  @reported_devices
end

#reported_devices=(list) ⇒ Object

Sets the value of the reported_devices attribute.

Parameters:



58697
58698
58699
58700
58701
58702
58703
58704
58705
58706
58707
# File 'lib/ovirtsdk4/types.rb', line 58697

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:



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

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:



58727
58728
58729
58730
58731
58732
# File 'lib/ovirtsdk4/types.rb', line 58727

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)


58739
58740
58741
# File 'lib/ovirtsdk4/types.rb', line 58739

def run_once
  @run_once
end

#run_once=(value) ⇒ Object

Sets the value of the run_once attribute.

Parameters:

  • value (Boolean)


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

def run_once=(value)
  @run_once = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



58757
58758
58759
# File 'lib/ovirtsdk4/types.rb', line 58757

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:



58770
58771
58772
58773
58774
58775
# File 'lib/ovirtsdk4/types.rb', line 58770

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:



58782
58783
58784
# File 'lib/ovirtsdk4/types.rb', line 58782

def sessions
  @sessions
end

#sessions=(list) ⇒ Object

Sets the value of the sessions attribute.

Parameters:



58791
58792
58793
58794
58795
58796
58797
58798
58799
58800
58801
# File 'lib/ovirtsdk4/types.rb', line 58791

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:



58808
58809
58810
# File 'lib/ovirtsdk4/types.rb', line 58808

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)


58821
58822
58823
58824
58825
58826
# File 'lib/ovirtsdk4/types.rb', line 58821

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:



58833
58834
58835
# File 'lib/ovirtsdk4/types.rb', line 58833

def snapshot_status
  @snapshot_status
end

#snapshot_status=(value) ⇒ Object

Sets the value of the snapshot_status attribute.

Parameters:



58842
58843
58844
# File 'lib/ovirtsdk4/types.rb', line 58842

def snapshot_status=(value)
  @snapshot_status = value
end

#snapshot_typeSnapshotType

Returns the value of the snapshot_type attribute.

Returns:



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

def snapshot_type
  @snapshot_type
end

#snapshot_type=(value) ⇒ Object

Sets the value of the snapshot_type attribute.

Parameters:



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

def snapshot_type=(value)
  @snapshot_type = value
end

#snapshotsArray<Snapshot>

Returns the value of the snapshots attribute.

Returns:



58869
58870
58871
# File 'lib/ovirtsdk4/types.rb', line 58869

def snapshots
  @snapshots
end

#snapshots=(list) ⇒ Object

Sets the value of the snapshots attribute.

Parameters:



58878
58879
58880
58881
58882
58883
58884
58885
58886
58887
58888
# File 'lib/ovirtsdk4/types.rb', line 58878

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)


58895
58896
58897
# File 'lib/ovirtsdk4/types.rb', line 58895

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


58904
58905
58906
# File 'lib/ovirtsdk4/types.rb', line 58904

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



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

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)


58926
58927
58928
58929
58930
58931
# File 'lib/ovirtsdk4/types.rb', line 58926

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)


58938
58939
58940
# File 'lib/ovirtsdk4/types.rb', line 58938

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


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

def start_paused=(value)
  @start_paused = value
end

#start_timeDateTime

Returns the value of the start_time attribute.

Returns:

  • (DateTime)


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

def start_time
  @start_time
end

#start_time=(value) ⇒ Object

Sets the value of the start_time attribute.

Parameters:

  • value (DateTime)


58965
58966
58967
# File 'lib/ovirtsdk4/types.rb', line 58965

def start_time=(value)
  @start_time = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


58974
58975
58976
# File 'lib/ovirtsdk4/types.rb', line 58974

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


58983
58984
58985
# File 'lib/ovirtsdk4/types.rb', line 58983

def stateless=(value)
  @stateless = value
end

#statisticsArray<Statistic>

Returns the value of the statistics attribute.

Returns:



58992
58993
58994
# File 'lib/ovirtsdk4/types.rb', line 58992

def statistics
  @statistics
end

#statistics=(list) ⇒ Object

Sets the value of the statistics attribute.

Parameters:



59001
59002
59003
59004
59005
59006
59007
59008
59009
59010
59011
# File 'lib/ovirtsdk4/types.rb', line 59001

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:



59018
59019
59020
# File 'lib/ovirtsdk4/types.rb', line 59018

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



59027
59028
59029
# File 'lib/ovirtsdk4/types.rb', line 59027

def status=(value)
  @status = value
end

#status_detailString

Returns the value of the status_detail attribute.

Returns:

  • (String)


59036
59037
59038
# File 'lib/ovirtsdk4/types.rb', line 59036

def status_detail
  @status_detail
end

#status_detail=(value) ⇒ Object

Sets the value of the status_detail attribute.

Parameters:

  • value (String)


59045
59046
59047
# File 'lib/ovirtsdk4/types.rb', line 59045

def status_detail=(value)
  @status_detail = value
end

#stop_reasonString

Returns the value of the stop_reason attribute.

Returns:

  • (String)


59054
59055
59056
# File 'lib/ovirtsdk4/types.rb', line 59054

def stop_reason
  @stop_reason
end

#stop_reason=(value) ⇒ Object

Sets the value of the stop_reason attribute.

Parameters:

  • value (String)


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

def stop_reason=(value)
  @stop_reason = value
end

#stop_timeDateTime

Returns the value of the stop_time attribute.

Returns:

  • (DateTime)


59072
59073
59074
# File 'lib/ovirtsdk4/types.rb', line 59072

def stop_time
  @stop_time
end

#stop_time=(value) ⇒ Object

Sets the value of the stop_time attribute.

Parameters:

  • value (DateTime)


59081
59082
59083
# File 'lib/ovirtsdk4/types.rb', line 59081

def stop_time=(value)
  @stop_time = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



59090
59091
59092
# File 'lib/ovirtsdk4/types.rb', line 59090

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:



59103
59104
59105
59106
59107
59108
# File 'lib/ovirtsdk4/types.rb', line 59103

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.



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

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:



59124
59125
59126
# File 'lib/ovirtsdk4/types.rb', line 59124

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



59133
59134
59135
# File 'lib/ovirtsdk4/types.rb', line 59133

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


59142
59143
59144
59145
59146
59147
59148
59149
59150
59151
59152
# File 'lib/ovirtsdk4/types.rb', line 59142

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:



59159
59160
59161
# File 'lib/ovirtsdk4/types.rb', line 59159

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:



59172
59173
59174
59175
59176
59177
# File 'lib/ovirtsdk4/types.rb', line 59172

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:



59184
59185
59186
# File 'lib/ovirtsdk4/types.rb', line 59184

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:



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

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

#tpm_enabledBoolean

Returns the value of the tpm_enabled attribute.

Returns:

  • (Boolean)


59209
59210
59211
# File 'lib/ovirtsdk4/types.rb', line 59209

def tpm_enabled
  @tpm_enabled
end

#tpm_enabled=(value) ⇒ Object

Sets the value of the tpm_enabled attribute.

Parameters:

  • value (Boolean)


59218
59219
59220
# File 'lib/ovirtsdk4/types.rb', line 59218

def tpm_enabled=(value)
  @tpm_enabled = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


59227
59228
59229
# File 'lib/ovirtsdk4/types.rb', line 59227

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


59236
59237
59238
# File 'lib/ovirtsdk4/types.rb', line 59236

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



59245
59246
59247
# File 'lib/ovirtsdk4/types.rb', line 59245

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



59254
59255
59256
# File 'lib/ovirtsdk4/types.rb', line 59254

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



59263
59264
59265
# File 'lib/ovirtsdk4/types.rb', line 59263

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)


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

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)


59288
59289
59290
# File 'lib/ovirtsdk4/types.rb', line 59288

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)


59297
59298
59299
# File 'lib/ovirtsdk4/types.rb', line 59297

def use_latest_template_version=(value)
  @use_latest_template_version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



59306
59307
59308
# File 'lib/ovirtsdk4/types.rb', line 59306

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:



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

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

#virtio_scsi_multi_queuesInteger

Returns the value of the virtio_scsi_multi_queues attribute.

Returns:

  • (Integer)


59331
59332
59333
# File 'lib/ovirtsdk4/types.rb', line 59331

def virtio_scsi_multi_queues
  @virtio_scsi_multi_queues
end

#virtio_scsi_multi_queues=(value) ⇒ Object

Sets the value of the virtio_scsi_multi_queues attribute.

Parameters:

  • value (Integer)


59340
59341
59342
# File 'lib/ovirtsdk4/types.rb', line 59340

def virtio_scsi_multi_queues=(value)
  @virtio_scsi_multi_queues = value
end

#virtio_scsi_multi_queues_enabledBoolean

Returns the value of the virtio_scsi_multi_queues_enabled attribute.

Returns:

  • (Boolean)


59349
59350
59351
# File 'lib/ovirtsdk4/types.rb', line 59349

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)


59358
59359
59360
# File 'lib/ovirtsdk4/types.rb', line 59358

def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end

#vmVm

Returns the value of the vm attribute.

Returns:



59367
59368
59369
# File 'lib/ovirtsdk4/types.rb', line 59367

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)


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

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:



59392
59393
59394
# File 'lib/ovirtsdk4/types.rb', line 59392

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:



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

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:



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

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



59426
59427
59428
59429
59430
59431
59432
59433
59434
59435
59436
# File 'lib/ovirtsdk4/types.rb', line 59426

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