Class: OvirtSDK4::InstanceType

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

Instance Method Summary collapse

Methods inherited from Template

#==, #hash

Methods inherited from VmBase

#==, #hash

Methods inherited from Identified

#==, #hash

Methods inherited from Struct

#==, #hash

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ InstanceType

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

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

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

    The values of attribute graphics_consoles.

  • :high_availability (HighAvailability, Hash)

    The value of attribute high_availability.

  • :id (String)

    The value of attribute id.

  • :initialization (Initialization, Hash)

    The value of attribute initialization.

  • :io (Io, Hash)

    The value of attribute io.

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

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

    The values of attribute nics.

  • :origin (String)

    The value of attribute origin.

  • :os (OperatingSystem, Hash)

    The value of attribute os.

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

  • :rng_device (RngDevice, Hash)

    The value of attribute rng_device.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :small_icon (Icon, Hash)

    The value of attribute small_icon.

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

  • :stateless (Boolean)

    The value of attribute stateless.

  • :status (TemplateStatus)

    The value of attribute status.

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

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

  • :version (TemplateVersion, Hash)

    The value of attribute version.

  • :virtio_scsi (VirtioScsi, Hash)

    The value of attribute virtio_scsi.

  • :vm (Vm, Hash)

    The value of attribute vm.

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

    The values of attribute watchdogs.



52889
52890
52891
# File 'lib/ovirtsdk4/types.rb', line 52889

def initialize(opts = {})
  super(opts)
end

Instance Method Details

#biosBios

Returns the value of the bios attribute.

Returns:



51506
51507
51508
# File 'lib/ovirtsdk4/types.rb', line 51506

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)


51519
51520
51521
51522
51523
51524
# File 'lib/ovirtsdk4/types.rb', line 51519

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:



51531
51532
51533
# File 'lib/ovirtsdk4/types.rb', line 51531

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



51540
51541
51542
51543
51544
51545
51546
51547
51548
51549
51550
# File 'lib/ovirtsdk4/types.rb', line 51540

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:



51557
51558
51559
# File 'lib/ovirtsdk4/types.rb', line 51557

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:



51570
51571
51572
51573
51574
51575
# File 'lib/ovirtsdk4/types.rb', line 51570

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)


51582
51583
51584
# File 'lib/ovirtsdk4/types.rb', line 51582

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


51591
51592
51593
# File 'lib/ovirtsdk4/types.rb', line 51591

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



51600
51601
51602
# File 'lib/ovirtsdk4/types.rb', line 51600

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:



51613
51614
51615
51616
51617
51618
# File 'lib/ovirtsdk4/types.rb', line 51613

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:



51625
51626
51627
# File 'lib/ovirtsdk4/types.rb', line 51625

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)


51638
51639
51640
51641
51642
51643
# File 'lib/ovirtsdk4/types.rb', line 51638

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:



51650
51651
51652
# File 'lib/ovirtsdk4/types.rb', line 51650

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:



51663
51664
51665
51666
51667
51668
# File 'lib/ovirtsdk4/types.rb', line 51663

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)


51675
51676
51677
# File 'lib/ovirtsdk4/types.rb', line 51675

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


51684
51685
51686
# File 'lib/ovirtsdk4/types.rb', line 51684

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


51693
51694
51695
# File 'lib/ovirtsdk4/types.rb', line 51693

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


51702
51703
51704
# File 'lib/ovirtsdk4/types.rb', line 51702

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



51711
51712
51713
# File 'lib/ovirtsdk4/types.rb', line 51711

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:



51724
51725
51726
51727
51728
51729
# File 'lib/ovirtsdk4/types.rb', line 51724

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)


51736
51737
51738
# File 'lib/ovirtsdk4/types.rb', line 51736

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)


51745
51746
51747
# File 'lib/ovirtsdk4/types.rb', line 51745

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


51754
51755
51756
# File 'lib/ovirtsdk4/types.rb', line 51754

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)


51763
51764
51765
# File 'lib/ovirtsdk4/types.rb', line 51763

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



51772
51773
51774
# File 'lib/ovirtsdk4/types.rb', line 51772

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



51781
51782
51783
51784
51785
51786
51787
51788
51789
51790
51791
# File 'lib/ovirtsdk4/types.rb', line 51781

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)


51798
51799
51800
# File 'lib/ovirtsdk4/types.rb', line 51798

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


51807
51808
51809
# File 'lib/ovirtsdk4/types.rb', line 51807

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


51816
51817
51818
# File 'lib/ovirtsdk4/types.rb', line 51816

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


51825
51826
51827
# File 'lib/ovirtsdk4/types.rb', line 51825

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



51834
51835
51836
# File 'lib/ovirtsdk4/types.rb', line 51834

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



51843
51844
51845
51846
51847
51848
51849
51850
51851
51852
51853
# File 'lib/ovirtsdk4/types.rb', line 51843

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:



51860
51861
51862
# File 'lib/ovirtsdk4/types.rb', line 51860

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:



51873
51874
51875
51876
51877
51878
# File 'lib/ovirtsdk4/types.rb', line 51873

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:



51885
51886
51887
# File 'lib/ovirtsdk4/types.rb', line 51885

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:



51898
51899
51900
51901
51902
51903
# File 'lib/ovirtsdk4/types.rb', line 51898

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

#graphics_consolesArray<GraphicsConsole>

Returns the value of the graphics_consoles attribute.

Returns:



51910
51911
51912
# File 'lib/ovirtsdk4/types.rb', line 51910

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



51919
51920
51921
51922
51923
51924
51925
51926
51927
51928
51929
# File 'lib/ovirtsdk4/types.rb', line 51919

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

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



51936
51937
51938
# File 'lib/ovirtsdk4/types.rb', line 51936

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:



51949
51950
51951
51952
51953
51954
# File 'lib/ovirtsdk4/types.rb', line 51949

def high_availability=(value)
  if value.is_a?(Hash)
    value = HighAvailability.new(value)
  end
  @high_availability = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


51961
51962
51963
# File 'lib/ovirtsdk4/types.rb', line 51961

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


51970
51971
51972
# File 'lib/ovirtsdk4/types.rb', line 51970

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



51979
51980
51981
# File 'lib/ovirtsdk4/types.rb', line 51979

def initialization
  @initialization
end

#initialization=(value) ⇒ Object

Sets the value of the initialization attribute.

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



51992
51993
51994
51995
51996
51997
# File 'lib/ovirtsdk4/types.rb', line 51992

def initialization=(value)
  if value.is_a?(Hash)
    value = Initialization.new(value)
  end
  @initialization = value
end

#ioIo

Returns the value of the io attribute.

Returns:



52004
52005
52006
# File 'lib/ovirtsdk4/types.rb', line 52004

def io
  @io
end

#io=(value) ⇒ Object

Sets the value of the io attribute.

The value parameter can be an instance of OvirtSDK4::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)


52017
52018
52019
52020
52021
52022
# File 'lib/ovirtsdk4/types.rb', line 52017

def io=(value)
  if value.is_a?(Hash)
    value = Io.new(value)
  end
  @io = value
end

#large_iconIcon

Returns the value of the large_icon attribute.

Returns:



52029
52030
52031
# File 'lib/ovirtsdk4/types.rb', line 52029

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


52042
52043
52044
52045
52046
52047
# File 'lib/ovirtsdk4/types.rb', line 52042

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:



52054
52055
52056
# File 'lib/ovirtsdk4/types.rb', line 52054

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:



52067
52068
52069
52070
52071
52072
# File 'lib/ovirtsdk4/types.rb', line 52067

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)


52079
52080
52081
# File 'lib/ovirtsdk4/types.rb', line 52079

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


52088
52089
52090
# File 'lib/ovirtsdk4/types.rb', line 52088

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



52097
52098
52099
# File 'lib/ovirtsdk4/types.rb', line 52097

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:



52110
52111
52112
52113
52114
52115
# File 'lib/ovirtsdk4/types.rb', line 52110

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:



52122
52123
52124
# File 'lib/ovirtsdk4/types.rb', line 52122

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:



52135
52136
52137
52138
52139
52140
# File 'lib/ovirtsdk4/types.rb', line 52135

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)


52147
52148
52149
# File 'lib/ovirtsdk4/types.rb', line 52147

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


52156
52157
52158
# File 'lib/ovirtsdk4/types.rb', line 52156

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


52165
52166
52167
# File 'lib/ovirtsdk4/types.rb', line 52165

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)


52174
52175
52176
# File 'lib/ovirtsdk4/types.rb', line 52174

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


52183
52184
52185
# File 'lib/ovirtsdk4/types.rb', line 52183

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


52192
52193
52194
# File 'lib/ovirtsdk4/types.rb', line 52192

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



52201
52202
52203
# File 'lib/ovirtsdk4/types.rb', line 52201

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


52210
52211
52212
52213
52214
52215
52216
52217
52218
52219
52220
# File 'lib/ovirtsdk4/types.rb', line 52210

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

#originString

Returns the value of the origin attribute.

Returns:

  • (String)


52227
52228
52229
# File 'lib/ovirtsdk4/types.rb', line 52227

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


52236
52237
52238
# File 'lib/ovirtsdk4/types.rb', line 52236

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



52245
52246
52247
# File 'lib/ovirtsdk4/types.rb', line 52245

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:



52258
52259
52260
52261
52262
52263
# File 'lib/ovirtsdk4/types.rb', line 52258

def os=(value)
  if value.is_a?(Hash)
    value = OperatingSystem.new(value)
  end
  @os = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



52270
52271
52272
# File 'lib/ovirtsdk4/types.rb', line 52270

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
# File 'lib/ovirtsdk4/types.rb', line 52279

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:



52296
52297
52298
# File 'lib/ovirtsdk4/types.rb', line 52296

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:



52309
52310
52311
52312
52313
52314
# File 'lib/ovirtsdk4/types.rb', line 52309

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:



52321
52322
52323
# File 'lib/ovirtsdk4/types.rb', line 52321

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:



52334
52335
52336
52337
52338
52339
# File 'lib/ovirtsdk4/types.rb', line 52334

def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end

#rng_deviceRngDevice

Returns the value of the rng_device attribute.

Returns:



52346
52347
52348
# File 'lib/ovirtsdk4/types.rb', line 52346

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:



52359
52360
52361
52362
52363
52364
# File 'lib/ovirtsdk4/types.rb', line 52359

def rng_device=(value)
  if value.is_a?(Hash)
    value = RngDevice.new(value)
  end
  @rng_device = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:



52371
52372
52373
# File 'lib/ovirtsdk4/types.rb', line 52371

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:



52384
52385
52386
52387
52388
52389
# File 'lib/ovirtsdk4/types.rb', line 52384

def serial_number=(value)
  if value.is_a?(Hash)
    value = SerialNumber.new(value)
  end
  @serial_number = value
end

#small_iconIcon

Returns the value of the small_icon attribute.

Returns:



52396
52397
52398
# File 'lib/ovirtsdk4/types.rb', line 52396

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


52409
52410
52411
52412
52413
52414
# File 'lib/ovirtsdk4/types.rb', line 52409

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

#soundcard_enabledBoolean

Returns the value of the soundcard_enabled attribute.

Returns:

  • (Boolean)


52421
52422
52423
# File 'lib/ovirtsdk4/types.rb', line 52421

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


52430
52431
52432
# File 'lib/ovirtsdk4/types.rb', line 52430

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



52439
52440
52441
# File 'lib/ovirtsdk4/types.rb', line 52439

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)


52452
52453
52454
52455
52456
52457
# File 'lib/ovirtsdk4/types.rb', line 52452

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)


52464
52465
52466
# File 'lib/ovirtsdk4/types.rb', line 52464

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


52473
52474
52475
# File 'lib/ovirtsdk4/types.rb', line 52473

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


52482
52483
52484
# File 'lib/ovirtsdk4/types.rb', line 52482

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


52491
52492
52493
# File 'lib/ovirtsdk4/types.rb', line 52491

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



52500
52501
52502
# File 'lib/ovirtsdk4/types.rb', line 52500

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



52509
52510
52511
# File 'lib/ovirtsdk4/types.rb', line 52509

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



52518
52519
52520
# File 'lib/ovirtsdk4/types.rb', line 52518

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:



52531
52532
52533
52534
52535
52536
# File 'lib/ovirtsdk4/types.rb', line 52531

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.



52543
52544
52545
# File 'lib/ovirtsdk4/types.rb', line 52543

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:



52552
52553
52554
# File 'lib/ovirtsdk4/types.rb', line 52552

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



52561
52562
52563
# File 'lib/ovirtsdk4/types.rb', line 52561

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
# File 'lib/ovirtsdk4/types.rb', line 52570

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

#time_zoneTimeZone

Returns the value of the time_zone attribute.

Returns:



52587
52588
52589
# File 'lib/ovirtsdk4/types.rb', line 52587

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:



52600
52601
52602
52603
52604
52605
# File 'lib/ovirtsdk4/types.rb', line 52600

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)


52612
52613
52614
# File 'lib/ovirtsdk4/types.rb', line 52612

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


52621
52622
52623
# File 'lib/ovirtsdk4/types.rb', line 52621

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



52630
52631
52632
# File 'lib/ovirtsdk4/types.rb', line 52630

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



52639
52640
52641
# File 'lib/ovirtsdk4/types.rb', line 52639

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



52648
52649
52650
# File 'lib/ovirtsdk4/types.rb', line 52648

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)


52661
52662
52663
52664
52665
52666
# File 'lib/ovirtsdk4/types.rb', line 52661

def usb=(value)
  if value.is_a?(Hash)
    value = Usb.new(value)
  end
  @usb = value
end

#versionTemplateVersion

Returns the value of the version attribute.

Returns:



52673
52674
52675
# File 'lib/ovirtsdk4/types.rb', line 52673

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

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



52686
52687
52688
52689
52690
52691
# File 'lib/ovirtsdk4/types.rb', line 52686

def version=(value)
  if value.is_a?(Hash)
    value = TemplateVersion.new(value)
  end
  @version = value
end

#virtio_scsiVirtioScsi

Returns the value of the virtio_scsi attribute.

Returns:



52698
52699
52700
# File 'lib/ovirtsdk4/types.rb', line 52698

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:



52711
52712
52713
52714
52715
52716
# File 'lib/ovirtsdk4/types.rb', line 52711

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

#vmVm

Returns the value of the vm attribute.

Returns:



52723
52724
52725
# File 'lib/ovirtsdk4/types.rb', line 52723

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)


52736
52737
52738
52739
52740
52741
# File 'lib/ovirtsdk4/types.rb', line 52736

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end

#watchdogsArray<Watchdog>

Returns the value of the watchdogs attribute.

Returns:



52748
52749
52750
# File 'lib/ovirtsdk4/types.rb', line 52748

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767
# File 'lib/ovirtsdk4/types.rb', line 52757

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