Class: OvirtSDK4::Template

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

Direct Known Subclasses

InstanceType

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Template

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



47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
# File 'lib/ovirtsdk4/types.rb', line 47846

def initialize(opts = {})
  super(opts)
  self.cdroms = opts[:cdroms]
  self.disk_attachments = opts[:disk_attachments]
  self.graphics_consoles = opts[:graphics_consoles]
  self.nics = opts[:nics]
  self.permissions = opts[:permissions]
  self.status = opts[:status]
  self.tags = opts[:tags]
  self.version = opts[:version]
  self.vm = opts[:vm]
  self.watchdogs = opts[:watchdogs]
end

Instance Method Details

#==(other) ⇒ Object

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



47863
47864
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
# File 'lib/ovirtsdk4/types.rb', line 47863

def ==(other)
  super &&
  @cdroms == other.cdroms &&
  @disk_attachments == other.disk_attachments &&
  @graphics_consoles == other.graphics_consoles &&
  @nics == other.nics &&
  @permissions == other.permissions &&
  @status == other.status &&
  @tags == other.tags &&
  @version == other.version &&
  @vm == other.vm &&
  @watchdogs == other.watchdogs
end

#biosBios

Returns the value of the bios attribute.

Returns:



46463
46464
46465
# File 'lib/ovirtsdk4/types.rb', line 46463

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)


46476
46477
46478
46479
46480
46481
# File 'lib/ovirtsdk4/types.rb', line 46476

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:



46488
46489
46490
# File 'lib/ovirtsdk4/types.rb', line 46488

def cdroms
  @cdroms
end

#cdroms=(list) ⇒ Object

Sets the value of the cdroms attribute.

Parameters:



46497
46498
46499
46500
46501
46502
46503
46504
46505
46506
46507
# File 'lib/ovirtsdk4/types.rb', line 46497

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:



46514
46515
46516
# File 'lib/ovirtsdk4/types.rb', line 46514

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:



46527
46528
46529
46530
46531
46532
# File 'lib/ovirtsdk4/types.rb', line 46527

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)


46539
46540
46541
# File 'lib/ovirtsdk4/types.rb', line 46539

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


46548
46549
46550
# File 'lib/ovirtsdk4/types.rb', line 46548

def comment=(value)
  @comment = value
end

#consoleConsole

Returns the value of the console attribute.

Returns:



46557
46558
46559
# File 'lib/ovirtsdk4/types.rb', line 46557

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:



46570
46571
46572
46573
46574
46575
# File 'lib/ovirtsdk4/types.rb', line 46570

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:



46582
46583
46584
# File 'lib/ovirtsdk4/types.rb', line 46582

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)


46595
46596
46597
46598
46599
46600
# File 'lib/ovirtsdk4/types.rb', line 46595

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:



46607
46608
46609
# File 'lib/ovirtsdk4/types.rb', line 46607

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:



46620
46621
46622
46623
46624
46625
# File 'lib/ovirtsdk4/types.rb', line 46620

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)


46632
46633
46634
# File 'lib/ovirtsdk4/types.rb', line 46632

def cpu_shares
  @cpu_shares
end

#cpu_shares=(value) ⇒ Object

Sets the value of the cpu_shares attribute.

Parameters:

  • value (Integer)


46641
46642
46643
# File 'lib/ovirtsdk4/types.rb', line 46641

def cpu_shares=(value)
  @cpu_shares = value
end

#creation_timeDateTime

Returns the value of the creation_time attribute.

Returns:

  • (DateTime)


46650
46651
46652
# File 'lib/ovirtsdk4/types.rb', line 46650

def creation_time
  @creation_time
end

#creation_time=(value) ⇒ Object

Sets the value of the creation_time attribute.

Parameters:

  • value (DateTime)


46659
46660
46661
# File 'lib/ovirtsdk4/types.rb', line 46659

def creation_time=(value)
  @creation_time = value
end

#custom_compatibility_versionVersion

Returns the value of the custom_compatibility_version attribute.

Returns:



46668
46669
46670
# File 'lib/ovirtsdk4/types.rb', line 46668

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:



46681
46682
46683
46684
46685
46686
# File 'lib/ovirtsdk4/types.rb', line 46681

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)


46693
46694
46695
# File 'lib/ovirtsdk4/types.rb', line 46693

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)


46702
46703
46704
# File 'lib/ovirtsdk4/types.rb', line 46702

def custom_cpu_model=(value)
  @custom_cpu_model = value
end

#custom_emulated_machineString

Returns the value of the custom_emulated_machine attribute.

Returns:

  • (String)


46711
46712
46713
# File 'lib/ovirtsdk4/types.rb', line 46711

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)


46720
46721
46722
# File 'lib/ovirtsdk4/types.rb', line 46720

def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end

#custom_propertiesArray<CustomProperty>

Returns the value of the custom_properties attribute.

Returns:



46729
46730
46731
# File 'lib/ovirtsdk4/types.rb', line 46729

def custom_properties
  @custom_properties
end

#custom_properties=(list) ⇒ Object

Sets the value of the custom_properties attribute.

Parameters:



46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
# File 'lib/ovirtsdk4/types.rb', line 46738

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)


46755
46756
46757
# File 'lib/ovirtsdk4/types.rb', line 46755

def delete_protected
  @delete_protected
end

#delete_protected=(value) ⇒ Object

Sets the value of the delete_protected attribute.

Parameters:

  • value (Boolean)


46764
46765
46766
# File 'lib/ovirtsdk4/types.rb', line 46764

def delete_protected=(value)
  @delete_protected = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


46773
46774
46775
# File 'lib/ovirtsdk4/types.rb', line 46773

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


46782
46783
46784
# File 'lib/ovirtsdk4/types.rb', line 46782

def description=(value)
  @description = value
end

#disk_attachmentsArray<DiskAttachment>

Returns the value of the disk_attachments attribute.

Returns:



46791
46792
46793
# File 'lib/ovirtsdk4/types.rb', line 46791

def disk_attachments
  @disk_attachments
end

#disk_attachments=(list) ⇒ Object

Sets the value of the disk_attachments attribute.

Parameters:



46800
46801
46802
46803
46804
46805
46806
46807
46808
46809
46810
# File 'lib/ovirtsdk4/types.rb', line 46800

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:



46817
46818
46819
# File 'lib/ovirtsdk4/types.rb', line 46817

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:



46830
46831
46832
46833
46834
46835
# File 'lib/ovirtsdk4/types.rb', line 46830

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:



46842
46843
46844
# File 'lib/ovirtsdk4/types.rb', line 46842

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:



46855
46856
46857
46858
46859
46860
# File 'lib/ovirtsdk4/types.rb', line 46855

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:



46867
46868
46869
# File 'lib/ovirtsdk4/types.rb', line 46867

def graphics_consoles
  @graphics_consoles
end

#graphics_consoles=(list) ⇒ Object

Sets the value of the graphics_consoles attribute.

Parameters:



46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
# File 'lib/ovirtsdk4/types.rb', line 46876

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

#hashObject

Generates a hash value for this object.



47880
47881
47882
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
# File 'lib/ovirtsdk4/types.rb', line 47880

def hash
  super +
  @cdroms.hash +
  @disk_attachments.hash +
  @graphics_consoles.hash +
  @nics.hash +
  @permissions.hash +
  @status.hash +
  @tags.hash +
  @version.hash +
  @vm.hash +
  @watchdogs.hash
end

#high_availabilityHighAvailability

Returns the value of the high_availability attribute.

Returns:



46893
46894
46895
# File 'lib/ovirtsdk4/types.rb', line 46893

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:



46906
46907
46908
46909
46910
46911
# File 'lib/ovirtsdk4/types.rb', line 46906

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)


46918
46919
46920
# File 'lib/ovirtsdk4/types.rb', line 46918

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


46927
46928
46929
# File 'lib/ovirtsdk4/types.rb', line 46927

def id=(value)
  @id = value
end

#initializationInitialization

Returns the value of the initialization attribute.

Returns:



46936
46937
46938
# File 'lib/ovirtsdk4/types.rb', line 46936

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:



46949
46950
46951
46952
46953
46954
# File 'lib/ovirtsdk4/types.rb', line 46949

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:



46961
46962
46963
# File 'lib/ovirtsdk4/types.rb', line 46961

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)


46974
46975
46976
46977
46978
46979
# File 'lib/ovirtsdk4/types.rb', line 46974

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:



46986
46987
46988
# File 'lib/ovirtsdk4/types.rb', line 46986

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)


46999
47000
47001
47002
47003
47004
# File 'lib/ovirtsdk4/types.rb', line 46999

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:



47011
47012
47013
# File 'lib/ovirtsdk4/types.rb', line 47011

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:



47024
47025
47026
47027
47028
47029
# File 'lib/ovirtsdk4/types.rb', line 47024

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)


47036
47037
47038
# File 'lib/ovirtsdk4/types.rb', line 47036

def memory
  @memory
end

#memory=(value) ⇒ Object

Sets the value of the memory attribute.

Parameters:

  • value (Integer)


47045
47046
47047
# File 'lib/ovirtsdk4/types.rb', line 47045

def memory=(value)
  @memory = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:



47054
47055
47056
# File 'lib/ovirtsdk4/types.rb', line 47054

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:



47067
47068
47069
47070
47071
47072
# File 'lib/ovirtsdk4/types.rb', line 47067

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:



47079
47080
47081
# File 'lib/ovirtsdk4/types.rb', line 47079

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:



47092
47093
47094
47095
47096
47097
# File 'lib/ovirtsdk4/types.rb', line 47092

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)


47104
47105
47106
# File 'lib/ovirtsdk4/types.rb', line 47104

def migration_downtime
  @migration_downtime
end

#migration_downtime=(value) ⇒ Object

Sets the value of the migration_downtime attribute.

Parameters:

  • value (Integer)


47113
47114
47115
# File 'lib/ovirtsdk4/types.rb', line 47113

def migration_downtime=(value)
  @migration_downtime = value
end

#multi_queues_enabledBoolean

Returns the value of the multi_queues_enabled attribute.

Returns:

  • (Boolean)


47122
47123
47124
# File 'lib/ovirtsdk4/types.rb', line 47122

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)


47131
47132
47133
# File 'lib/ovirtsdk4/types.rb', line 47131

def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


47140
47141
47142
# File 'lib/ovirtsdk4/types.rb', line 47140

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


47149
47150
47151
# File 'lib/ovirtsdk4/types.rb', line 47149

def name=(value)
  @name = value
end

#nicsArray<Nic>

Returns the value of the nics attribute.

Returns:



47158
47159
47160
# File 'lib/ovirtsdk4/types.rb', line 47158

def nics
  @nics
end

#nics=(list) ⇒ Object

Sets the value of the nics attribute.

Parameters:

  • list (Array<Nic>)


47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
# File 'lib/ovirtsdk4/types.rb', line 47167

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)


47184
47185
47186
# File 'lib/ovirtsdk4/types.rb', line 47184

def origin
  @origin
end

#origin=(value) ⇒ Object

Sets the value of the origin attribute.

Parameters:

  • value (String)


47193
47194
47195
# File 'lib/ovirtsdk4/types.rb', line 47193

def origin=(value)
  @origin = value
end

#osOperatingSystem

Returns the value of the os attribute.

Returns:



47202
47203
47204
# File 'lib/ovirtsdk4/types.rb', line 47202

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:



47215
47216
47217
47218
47219
47220
# File 'lib/ovirtsdk4/types.rb', line 47215

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:



47227
47228
47229
# File 'lib/ovirtsdk4/types.rb', line 47227

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
# File 'lib/ovirtsdk4/types.rb', line 47236

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:



47253
47254
47255
# File 'lib/ovirtsdk4/types.rb', line 47253

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:



47266
47267
47268
47269
47270
47271
# File 'lib/ovirtsdk4/types.rb', line 47266

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:



47278
47279
47280
# File 'lib/ovirtsdk4/types.rb', line 47278

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:



47291
47292
47293
47294
47295
47296
# File 'lib/ovirtsdk4/types.rb', line 47291

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:



47303
47304
47305
# File 'lib/ovirtsdk4/types.rb', line 47303

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:



47316
47317
47318
47319
47320
47321
# File 'lib/ovirtsdk4/types.rb', line 47316

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:



47328
47329
47330
# File 'lib/ovirtsdk4/types.rb', line 47328

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:



47341
47342
47343
47344
47345
47346
# File 'lib/ovirtsdk4/types.rb', line 47341

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:



47353
47354
47355
# File 'lib/ovirtsdk4/types.rb', line 47353

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)


47366
47367
47368
47369
47370
47371
# File 'lib/ovirtsdk4/types.rb', line 47366

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)


47378
47379
47380
# File 'lib/ovirtsdk4/types.rb', line 47378

def soundcard_enabled
  @soundcard_enabled
end

#soundcard_enabled=(value) ⇒ Object

Sets the value of the soundcard_enabled attribute.

Parameters:

  • value (Boolean)


47387
47388
47389
# File 'lib/ovirtsdk4/types.rb', line 47387

def soundcard_enabled=(value)
  @soundcard_enabled = value
end

#ssoSso

Returns the value of the sso attribute.

Returns:



47396
47397
47398
# File 'lib/ovirtsdk4/types.rb', line 47396

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)


47409
47410
47411
47412
47413
47414
# File 'lib/ovirtsdk4/types.rb', line 47409

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)


47421
47422
47423
# File 'lib/ovirtsdk4/types.rb', line 47421

def start_paused
  @start_paused
end

#start_paused=(value) ⇒ Object

Sets the value of the start_paused attribute.

Parameters:

  • value (Boolean)


47430
47431
47432
# File 'lib/ovirtsdk4/types.rb', line 47430

def start_paused=(value)
  @start_paused = value
end

#statelessBoolean

Returns the value of the stateless attribute.

Returns:

  • (Boolean)


47439
47440
47441
# File 'lib/ovirtsdk4/types.rb', line 47439

def stateless
  @stateless
end

#stateless=(value) ⇒ Object

Sets the value of the stateless attribute.

Parameters:

  • value (Boolean)


47448
47449
47450
# File 'lib/ovirtsdk4/types.rb', line 47448

def stateless=(value)
  @stateless = value
end

#statusTemplateStatus

Returns the value of the status attribute.

Returns:



47457
47458
47459
# File 'lib/ovirtsdk4/types.rb', line 47457

def status
  @status
end

#status=(value) ⇒ Object

Sets the value of the status attribute.

Parameters:



47466
47467
47468
# File 'lib/ovirtsdk4/types.rb', line 47466

def status=(value)
  @status = value
end

#storage_domainStorageDomain

Returns the value of the storage_domain attribute.

Returns:



47475
47476
47477
# File 'lib/ovirtsdk4/types.rb', line 47475

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:



47488
47489
47490
47491
47492
47493
# File 'lib/ovirtsdk4/types.rb', line 47488

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.



47500
47501
47502
# File 'lib/ovirtsdk4/types.rb', line 47500

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:



47509
47510
47511
# File 'lib/ovirtsdk4/types.rb', line 47509

def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end

#tagsArray<Tag>

Returns the value of the tags attribute.

Returns:



47518
47519
47520
# File 'lib/ovirtsdk4/types.rb', line 47518

def tags
  @tags
end

#tags=(list) ⇒ Object

Sets the value of the tags attribute.

Parameters:

  • list (Array<Tag>)


47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
# File 'lib/ovirtsdk4/types.rb', line 47527

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:



47544
47545
47546
# File 'lib/ovirtsdk4/types.rb', line 47544

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



47557
47558
47559
47560
47561
47562
# File 'lib/ovirtsdk4/types.rb', line 47557

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)


47569
47570
47571
# File 'lib/ovirtsdk4/types.rb', line 47569

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


47578
47579
47580
# File 'lib/ovirtsdk4/types.rb', line 47578

def tunnel_migration=(value)
  @tunnel_migration = value
end

#typeVmType

Returns the value of the type attribute.

Returns:



47587
47588
47589
# File 'lib/ovirtsdk4/types.rb', line 47587

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:



47596
47597
47598
# File 'lib/ovirtsdk4/types.rb', line 47596

def type=(value)
  @type = value
end

#usbUsb

Returns the value of the usb attribute.

Returns:



47605
47606
47607
# File 'lib/ovirtsdk4/types.rb', line 47605

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)


47618
47619
47620
47621
47622
47623
# File 'lib/ovirtsdk4/types.rb', line 47618

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:



47630
47631
47632
# File 'lib/ovirtsdk4/types.rb', line 47630

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

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



47643
47644
47645
47646
47647
47648
# File 'lib/ovirtsdk4/types.rb', line 47643

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:



47655
47656
47657
# File 'lib/ovirtsdk4/types.rb', line 47655

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:



47668
47669
47670
47671
47672
47673
# File 'lib/ovirtsdk4/types.rb', line 47668

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:



47680
47681
47682
# File 'lib/ovirtsdk4/types.rb', line 47680

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)


47693
47694
47695
47696
47697
47698
# File 'lib/ovirtsdk4/types.rb', line 47693

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:



47705
47706
47707
# File 'lib/ovirtsdk4/types.rb', line 47705

def watchdogs
  @watchdogs
end

#watchdogs=(list) ⇒ Object

Sets the value of the watchdogs attribute.

Parameters:



47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724
# File 'lib/ovirtsdk4/types.rb', line 47714

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