class OvirtSDK4::Template

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Template} class.

@param opts [Hash] 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.

@option opts [AutoPinningPolicy] :auto_pinning_policy The value of attribute `auto_pinning_policy`.

@option opts [Bios, Hash] :bios The value of attribute `bios`.

@option opts [Array<Cdrom>, Array<Hash>] :cdroms The values of attribute `cdroms`.

@option opts [Cluster, Hash] :cluster The value of attribute `cluster`.

@option opts [String] :comment The value of attribute `comment`.

@option opts [Console, Hash] :console The value of attribute `console`.

@option opts [Cpu, Hash] :cpu The value of attribute `cpu`.

@option opts [CpuPinningPolicy] :cpu_pinning_policy The value of attribute `cpu_pinning_policy`.

@option opts [CpuProfile, Hash] :cpu_profile The value of attribute `cpu_profile`.

@option opts [Integer] :cpu_shares The value of attribute `cpu_shares`.

@option opts [DateTime] :creation_time The value of attribute `creation_time`.

@option opts [Version, Hash] :custom_compatibility_version The value of attribute `custom_compatibility_version`.

@option opts [String] :custom_cpu_model The value of attribute `custom_cpu_model`.

@option opts [String] :custom_emulated_machine The value of attribute `custom_emulated_machine`.

@option opts [Array<CustomProperty>, Array<Hash>] :custom_properties The values of attribute `custom_properties`.

@option opts [Boolean] :delete_protected The value of attribute `delete_protected`.

@option opts [String] :description The value of attribute `description`.

@option opts [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.

@option opts [Display, Hash] :display The value of attribute `display`.

@option opts [Domain, Hash] :domain The value of attribute `domain`.

@option opts [Array<GraphicsConsole>, Array<Hash>] :graphics_consoles The values of attribute `graphics_consoles`.

@option opts [HighAvailability, Hash] :high_availability The value of attribute `high_availability`.

@option opts [String] :id The value of attribute `id`.

@option opts [Initialization, Hash] :initialization The value of attribute `initialization`.

@option opts [Io, Hash] :io The value of attribute `io`.

@option opts [Icon, Hash] :large_icon The value of attribute `large_icon`.

@option opts [StorageDomainLease, Hash] :lease The value of attribute `lease`.

@option opts [Array<VmMediatedDevice>, Array<Hash>] :mediated_devices The values of attribute `mediated_devices`.

@option opts [Integer] :memory The value of attribute `memory`.

@option opts [MemoryPolicy, Hash] :memory_policy The value of attribute `memory_policy`.

@option opts [MigrationOptions, Hash] :migration The value of attribute `migration`.

@option opts [Integer] :migration_downtime The value of attribute `migration_downtime`.

@option opts [Boolean] :multi_queues_enabled The value of attribute `multi_queues_enabled`.

@option opts [String] :name The value of attribute `name`.

@option opts [Array<Nic>, Array<Hash>] :nics The values of attribute `nics`.

@option opts [String] :origin The value of attribute `origin`.

@option opts [OperatingSystem, Hash] :os The value of attribute `os`.

@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.

@option opts [VmPlacementPolicy, Hash] :placement_policy The value of attribute `placement_policy`.

@option opts [Quota, Hash] :quota The value of attribute `quota`.

@option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.

@option opts [SerialNumber, Hash] :serial_number The value of attribute `serial_number`.

@option opts [Icon, Hash] :small_icon The value of attribute `small_icon`.

@option opts [Boolean] :soundcard_enabled The value of attribute `soundcard_enabled`.

@option opts [Sso, Hash] :sso The value of attribute `sso`.

@option opts [Boolean] :start_paused The value of attribute `start_paused`.

@option opts [Boolean] :stateless The value of attribute `stateless`.

@option opts [TemplateStatus] :status The value of attribute `status`.

@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.

@option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.

@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.

@option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.

@option opts [Boolean] :tpm_enabled The value of attribute `tpm_enabled`.

@option opts [Boolean] :tunnel_migration The value of attribute `tunnel_migration`.

@option opts [VmType] :type The value of attribute `type`.

@option opts [Usb, Hash] :usb The value of attribute `usb`.

@option opts [TemplateVersion, Hash] :version The value of attribute `version`.

@option opts [VirtioScsi, Hash] :virtio_scsi The value of attribute `virtio_scsi`.

@option opts [Integer] :virtio_scsi_multi_queues The value of attribute `virtio_scsi_multi_queues`.

@option opts [Boolean] :virtio_scsi_multi_queues_enabled The value of attribute `virtio_scsi_multi_queues_enabled`.

@option opts [Vm, Hash] :vm The value of attribute `vm`.

@option opts [Array<Watchdog>, Array<Hash>] :watchdogs The values of attribute `watchdogs`.

Calls superclass method OvirtSDK4::VmBase::new
# File lib/ovirtsdk4/types.rb, line 50789
def initialize(opts = {})
  super(opts)
  self.cdroms = opts[:cdroms]
  self.disk_attachments = opts[:disk_attachments]
  self.graphics_consoles = opts[:graphics_consoles]
  self.mediated_devices = opts[:mediated_devices]
  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

Public Instance Methods

==(other) click to toggle source

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

Calls superclass method OvirtSDK4::VmBase#==
# File lib/ovirtsdk4/types.rb, line 50807
def ==(other)
  super &&
  @cdroms == other.cdroms &&
  @disk_attachments == other.disk_attachments &&
  @graphics_consoles == other.graphics_consoles &&
  @mediated_devices == other.mediated_devices &&
  @nics == other.nics &&
  @permissions == other.permissions &&
  @status == other.status &&
  @tags == other.tags &&
  @version == other.version &&
  @vm == other.vm &&
  @watchdogs == other.watchdogs
end
auto_pinning_policy() click to toggle source

Returns the value of the `auto_pinning_policy` attribute.

@return [AutoPinningPolicy]

# File lib/ovirtsdk4/types.rb, line 49278
def auto_pinning_policy
  @auto_pinning_policy
end
auto_pinning_policy=(value) click to toggle source

Sets the value of the `auto_pinning_policy` attribute.

@param value [AutoPinningPolicy]

# File lib/ovirtsdk4/types.rb, line 49287
def auto_pinning_policy=(value)
  @auto_pinning_policy = value
end
bios() click to toggle source

Returns the value of the `bios` attribute.

@return [Bios]

# File lib/ovirtsdk4/types.rb, line 49296
def bios
  @bios
end
bios=(value) click to toggle source

Sets the value of the `bios` attribute.

@param value [Bios, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49309
def bios=(value)
  if value.is_a?(Hash)
    value = Bios.new(value)
  end
  @bios = value
end
cdroms() click to toggle source

Returns the value of the `cdroms` attribute.

@return [Array<Cdrom>]

# File lib/ovirtsdk4/types.rb, line 49321
def cdroms
  @cdroms
end
cdroms=(list) click to toggle source

Sets the value of the `cdroms` attribute.

@param list [Array<Cdrom>]

# File lib/ovirtsdk4/types.rb, line 49330
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
cluster() click to toggle source

Returns the value of the `cluster` attribute.

@return [Cluster]

# File lib/ovirtsdk4/types.rb, line 49347
def cluster
  @cluster
end
cluster=(value) click to toggle source

Sets the value of the `cluster` attribute.

@param value [Cluster, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49360
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 49372
def comment
  @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 49381
def comment=(value)
  @comment = value
end
console() click to toggle source

Returns the value of the `console` attribute.

@return [Console]

# File lib/ovirtsdk4/types.rb, line 49390
def console
  @console
end
console=(value) click to toggle source

Sets the value of the `console` attribute.

@param value [Console, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49403
def console=(value)
  if value.is_a?(Hash)
    value = Console.new(value)
  end
  @console = value
end
cpu() click to toggle source

Returns the value of the `cpu` attribute.

@return [Cpu]

# File lib/ovirtsdk4/types.rb, line 49415
def cpu
  @cpu
end
cpu=(value) click to toggle source

Sets the value of the `cpu` attribute.

@param value [Cpu, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49428
def cpu=(value)
  if value.is_a?(Hash)
    value = Cpu.new(value)
  end
  @cpu = value
end
cpu_pinning_policy() click to toggle source

Returns the value of the `cpu_pinning_policy` attribute.

@return [CpuPinningPolicy]

# File lib/ovirtsdk4/types.rb, line 49440
def cpu_pinning_policy
  @cpu_pinning_policy
end
cpu_pinning_policy=(value) click to toggle source

Sets the value of the `cpu_pinning_policy` attribute.

@param value [CpuPinningPolicy]

# File lib/ovirtsdk4/types.rb, line 49449
def cpu_pinning_policy=(value)
  @cpu_pinning_policy = value
end
cpu_profile() click to toggle source

Returns the value of the `cpu_profile` attribute.

@return [CpuProfile]

# File lib/ovirtsdk4/types.rb, line 49458
def cpu_profile
  @cpu_profile
end
cpu_profile=(value) click to toggle source

Sets the value of the `cpu_profile` attribute.

@param value [CpuProfile, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49471
def cpu_profile=(value)
  if value.is_a?(Hash)
    value = CpuProfile.new(value)
  end
  @cpu_profile = value
end
cpu_shares() click to toggle source

Returns the value of the `cpu_shares` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 49483
def cpu_shares
  @cpu_shares
end
cpu_shares=(value) click to toggle source

Sets the value of the `cpu_shares` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 49492
def cpu_shares=(value)
  @cpu_shares = value
end
creation_time() click to toggle source

Returns the value of the `creation_time` attribute.

@return [DateTime]

# File lib/ovirtsdk4/types.rb, line 49501
def creation_time
  @creation_time
end
creation_time=(value) click to toggle source

Sets the value of the `creation_time` attribute.

@param value [DateTime]

# File lib/ovirtsdk4/types.rb, line 49510
def creation_time=(value)
  @creation_time = value
end
custom_compatibility_version() click to toggle source

Returns the value of the `custom_compatibility_version` attribute.

@return [Version]

# File lib/ovirtsdk4/types.rb, line 49519
def custom_compatibility_version
  @custom_compatibility_version
end
custom_compatibility_version=(value) click to toggle source

Sets the value of the `custom_compatibility_version` attribute.

@param value [Version, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49532
def custom_compatibility_version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @custom_compatibility_version = value
end
custom_cpu_model() click to toggle source

Returns the value of the `custom_cpu_model` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 49544
def custom_cpu_model
  @custom_cpu_model
end
custom_cpu_model=(value) click to toggle source

Sets the value of the `custom_cpu_model` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 49553
def custom_cpu_model=(value)
  @custom_cpu_model = value
end
custom_emulated_machine() click to toggle source

Returns the value of the `custom_emulated_machine` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 49562
def custom_emulated_machine
  @custom_emulated_machine
end
custom_emulated_machine=(value) click to toggle source

Sets the value of the `custom_emulated_machine` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 49571
def custom_emulated_machine=(value)
  @custom_emulated_machine = value
end
custom_properties() click to toggle source

Returns the value of the `custom_properties` attribute.

@return [Array<CustomProperty>]

# File lib/ovirtsdk4/types.rb, line 49580
def custom_properties
  @custom_properties
end
custom_properties=(list) click to toggle source

Sets the value of the `custom_properties` attribute.

@param list [Array<CustomProperty>]

# File lib/ovirtsdk4/types.rb, line 49589
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_protected() click to toggle source

Returns the value of the `delete_protected` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 49606
def delete_protected
  @delete_protected
end
delete_protected=(value) click to toggle source

Sets the value of the `delete_protected` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 49615
def delete_protected=(value)
  @delete_protected = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 49624
def description
  @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 49633
def description=(value)
  @description = value
end
disk_attachments() click to toggle source

Returns the value of the `disk_attachments` attribute.

@return [Array<DiskAttachment>]

# File lib/ovirtsdk4/types.rb, line 49642
def disk_attachments
  @disk_attachments
end
disk_attachments=(list) click to toggle source

Sets the value of the `disk_attachments` attribute.

@param list [Array<DiskAttachment>]

# File lib/ovirtsdk4/types.rb, line 49651
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
display() click to toggle source

Returns the value of the `display` attribute.

@return [Display]

# File lib/ovirtsdk4/types.rb, line 49668
def display
  @display
end
display=(value) click to toggle source

Sets the value of the `display` attribute.

@param value [Display, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49681
def display=(value)
  if value.is_a?(Hash)
    value = Display.new(value)
  end
  @display = value
end
domain() click to toggle source

Returns the value of the `domain` attribute.

@return [Domain]

# File lib/ovirtsdk4/types.rb, line 49693
def domain
  @domain
end
domain=(value) click to toggle source

Sets the value of the `domain` attribute.

@param value [Domain, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49706
def domain=(value)
  if value.is_a?(Hash)
    value = Domain.new(value)
  end
  @domain = value
end
graphics_consoles() click to toggle source

Returns the value of the `graphics_consoles` attribute.

@return [Array<GraphicsConsole>]

# File lib/ovirtsdk4/types.rb, line 49718
def graphics_consoles
  @graphics_consoles
end
graphics_consoles=(list) click to toggle source

Sets the value of the `graphics_consoles` attribute.

@param list [Array<GraphicsConsole>]

# File lib/ovirtsdk4/types.rb, line 49727
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
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::VmBase#hash
# File lib/ovirtsdk4/types.rb, line 50825
def hash
  super +
  @cdroms.hash +
  @disk_attachments.hash +
  @graphics_consoles.hash +
  @mediated_devices.hash +
  @nics.hash +
  @permissions.hash +
  @status.hash +
  @tags.hash +
  @version.hash +
  @vm.hash +
  @watchdogs.hash
end
high_availability() click to toggle source

Returns the value of the `high_availability` attribute.

@return [HighAvailability]

# File lib/ovirtsdk4/types.rb, line 49744
def high_availability
  @high_availability
end
high_availability=(value) click to toggle source

Sets the value of the `high_availability` attribute.

@param value [HighAvailability, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49757
def high_availability=(value)
  if value.is_a?(Hash)
    value = HighAvailability.new(value)
  end
  @high_availability = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 49769
def id
  @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 49778
def id=(value)
  @id = value
end
initialization() click to toggle source

Returns the value of the `initialization` attribute.

@return [Initialization]

# File lib/ovirtsdk4/types.rb, line 49787
def initialization
  @initialization
end
initialization=(value) click to toggle source

Sets the value of the `initialization` attribute.

@param value [Initialization, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 49800
def initialization=(value)
  if value.is_a?(Hash)
    value = Initialization.new(value)
  end
  @initialization = value
end
io() click to toggle source

Returns the value of the `io` attribute.

@return [Io]

# File lib/ovirtsdk4/types.rb, line 49812
def io
  @io
end
io=(value) click to toggle source

Sets the value of the `io` attribute.

@param value [Io, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 49825
def io=(value)
  if value.is_a?(Hash)
    value = Io.new(value)
  end
  @io = value
end
large_icon() click to toggle source

Returns the value of the `large_icon` attribute.

@return [Icon]

# File lib/ovirtsdk4/types.rb, line 49837
def large_icon
  @large_icon
end
large_icon=(value) click to toggle source

Sets the value of the `large_icon` attribute.

@param value [Icon, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 49850
def large_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @large_icon = value
end
lease() click to toggle source

Returns the value of the `lease` attribute.

@return [StorageDomainLease]

# File lib/ovirtsdk4/types.rb, line 49862
def lease
  @lease
end
lease=(value) click to toggle source

Sets the value of the `lease` attribute.

@param value [StorageDomainLease, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 49875
def lease=(value)
  if value.is_a?(Hash)
    value = StorageDomainLease.new(value)
  end
  @lease = value
end
mediated_devices() click to toggle source

Returns the value of the `mediated_devices` attribute.

@return [Array<VmMediatedDevice>]

# File lib/ovirtsdk4/types.rb, line 49887
def mediated_devices
  @mediated_devices
end
mediated_devices=(list) click to toggle source

Sets the value of the `mediated_devices` attribute.

@param list [Array<VmMediatedDevice>]

# File lib/ovirtsdk4/types.rb, line 49896
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
memory() click to toggle source

Returns the value of the `memory` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 49913
def memory
  @memory
end
memory=(value) click to toggle source

Sets the value of the `memory` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 49922
def memory=(value)
  @memory = value
end
memory_policy() click to toggle source

Returns the value of the `memory_policy` attribute.

@return [MemoryPolicy]

# File lib/ovirtsdk4/types.rb, line 49931
def memory_policy
  @memory_policy
end
memory_policy=(value) click to toggle source

Sets the value of the `memory_policy` attribute.

@param value [MemoryPolicy, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49944
def memory_policy=(value)
  if value.is_a?(Hash)
    value = MemoryPolicy.new(value)
  end
  @memory_policy = value
end
migration() click to toggle source

Returns the value of the `migration` attribute.

@return [MigrationOptions]

# File lib/ovirtsdk4/types.rb, line 49956
def migration
  @migration
end
migration=(value) click to toggle source

Sets the value of the `migration` attribute.

@param value [MigrationOptions, Hash]

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

# File lib/ovirtsdk4/types.rb, line 49969
def migration=(value)
  if value.is_a?(Hash)
    value = MigrationOptions.new(value)
  end
  @migration = value
end
migration_downtime() click to toggle source

Returns the value of the `migration_downtime` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 49981
def migration_downtime
  @migration_downtime
end
migration_downtime=(value) click to toggle source

Sets the value of the `migration_downtime` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 49990
def migration_downtime=(value)
  @migration_downtime = value
end
multi_queues_enabled() click to toggle source

Returns the value of the `multi_queues_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 49999
def multi_queues_enabled
  @multi_queues_enabled
end
multi_queues_enabled=(value) click to toggle source

Sets the value of the `multi_queues_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50008
def multi_queues_enabled=(value)
  @multi_queues_enabled = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 50017
def name
  @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 50026
def name=(value)
  @name = value
end
nics() click to toggle source

Returns the value of the `nics` attribute.

@return [Array<Nic>]

# File lib/ovirtsdk4/types.rb, line 50035
def nics
  @nics
end
nics=(list) click to toggle source

Sets the value of the `nics` attribute.

@param list [Array<Nic>]

# File lib/ovirtsdk4/types.rb, line 50044
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
origin() click to toggle source

Returns the value of the `origin` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 50061
def origin
  @origin
end
origin=(value) click to toggle source

Sets the value of the `origin` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 50070
def origin=(value)
  @origin = value
end
os() click to toggle source

Returns the value of the `os` attribute.

@return [OperatingSystem]

# File lib/ovirtsdk4/types.rb, line 50079
def os
  @os
end
os=(value) click to toggle source

Sets the value of the `os` attribute.

@param value [OperatingSystem, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50092
def os=(value)
  if value.is_a?(Hash)
    value = OperatingSystem.new(value)
  end
  @os = value
end
permissions() click to toggle source

Returns the value of the `permissions` attribute.

@return [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 50104
def permissions
  @permissions
end
permissions=(list) click to toggle source

Sets the value of the `permissions` attribute.

@param list [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 50113
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_policy() click to toggle source

Returns the value of the `placement_policy` attribute.

@return [VmPlacementPolicy]

# File lib/ovirtsdk4/types.rb, line 50130
def placement_policy
  @placement_policy
end
placement_policy=(value) click to toggle source

Sets the value of the `placement_policy` attribute.

@param value [VmPlacementPolicy, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50143
def placement_policy=(value)
  if value.is_a?(Hash)
    value = VmPlacementPolicy.new(value)
  end
  @placement_policy = value
end
quota() click to toggle source

Returns the value of the `quota` attribute.

@return [Quota]

# File lib/ovirtsdk4/types.rb, line 50155
def quota
  @quota
end
quota=(value) click to toggle source

Sets the value of the `quota` attribute.

@param value [Quota, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50168
def quota=(value)
  if value.is_a?(Hash)
    value = Quota.new(value)
  end
  @quota = value
end
rng_device() click to toggle source

Returns the value of the `rng_device` attribute.

@return [RngDevice]

# File lib/ovirtsdk4/types.rb, line 50180
def rng_device
  @rng_device
end
rng_device=(value) click to toggle source

Sets the value of the `rng_device` attribute.

@param value [RngDevice, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50193
def rng_device=(value)
  if value.is_a?(Hash)
    value = RngDevice.new(value)
  end
  @rng_device = value
end
serial_number() click to toggle source

Returns the value of the `serial_number` attribute.

@return [SerialNumber]

# File lib/ovirtsdk4/types.rb, line 50205
def serial_number
  @serial_number
end
serial_number=(value) click to toggle source

Sets the value of the `serial_number` attribute.

@param value [SerialNumber, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50218
def serial_number=(value)
  if value.is_a?(Hash)
    value = SerialNumber.new(value)
  end
  @serial_number = value
end
small_icon() click to toggle source

Returns the value of the `small_icon` attribute.

@return [Icon]

# File lib/ovirtsdk4/types.rb, line 50230
def small_icon
  @small_icon
end
small_icon=(value) click to toggle source

Sets the value of the `small_icon` attribute.

@param value [Icon, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50243
def small_icon=(value)
  if value.is_a?(Hash)
    value = Icon.new(value)
  end
  @small_icon = value
end
soundcard_enabled() click to toggle source

Returns the value of the `soundcard_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50255
def soundcard_enabled
  @soundcard_enabled
end
soundcard_enabled=(value) click to toggle source

Sets the value of the `soundcard_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50264
def soundcard_enabled=(value)
  @soundcard_enabled = value
end
sso() click to toggle source

Returns the value of the `sso` attribute.

@return [Sso]

# File lib/ovirtsdk4/types.rb, line 50273
def sso
  @sso
end
sso=(value) click to toggle source

Sets the value of the `sso` attribute.

@param value [Sso, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50286
def sso=(value)
  if value.is_a?(Hash)
    value = Sso.new(value)
  end
  @sso = value
end
start_paused() click to toggle source

Returns the value of the `start_paused` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50298
def start_paused
  @start_paused
end
start_paused=(value) click to toggle source

Sets the value of the `start_paused` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50307
def start_paused=(value)
  @start_paused = value
end
stateless() click to toggle source

Returns the value of the `stateless` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50316
def stateless
  @stateless
end
stateless=(value) click to toggle source

Sets the value of the `stateless` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50325
def stateless=(value)
  @stateless = value
end
status() click to toggle source

Returns the value of the `status` attribute.

@return [TemplateStatus]

# File lib/ovirtsdk4/types.rb, line 50334
def status
  @status
end
status=(value) click to toggle source

Sets the value of the `status` attribute.

@param value [TemplateStatus]

# File lib/ovirtsdk4/types.rb, line 50343
def status=(value)
  @status = value
end
storage_domain() click to toggle source

Returns the value of the `storage_domain` attribute.

@return [StorageDomain]

# File lib/ovirtsdk4/types.rb, line 50352
def storage_domain
  @storage_domain
end
storage_domain=(value) click to toggle source

Sets the value of the `storage_domain` attribute.

@param value [StorageDomain, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50365
def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end
storage_error_resume_behaviour() click to toggle source

Returns the value of the `storage_error_resume_behaviour` attribute.

@return [VmStorageErrorResumeBehaviour]

# File lib/ovirtsdk4/types.rb, line 50377
def storage_error_resume_behaviour
  @storage_error_resume_behaviour
end
storage_error_resume_behaviour=(value) click to toggle source

Sets the value of the `storage_error_resume_behaviour` attribute.

@param value [VmStorageErrorResumeBehaviour]

# File lib/ovirtsdk4/types.rb, line 50386
def storage_error_resume_behaviour=(value)
  @storage_error_resume_behaviour = value
end
tags() click to toggle source

Returns the value of the `tags` attribute.

@return [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 50395
def tags
  @tags
end
tags=(list) click to toggle source

Sets the value of the `tags` attribute.

@param list [Array<Tag>]

# File lib/ovirtsdk4/types.rb, line 50404
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_zone() click to toggle source

Returns the value of the `time_zone` attribute.

@return [TimeZone]

# File lib/ovirtsdk4/types.rb, line 50421
def time_zone
  @time_zone
end
time_zone=(value) click to toggle source

Sets the value of the `time_zone` attribute.

@param value [TimeZone, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50434
def time_zone=(value)
  if value.is_a?(Hash)
    value = TimeZone.new(value)
  end
  @time_zone = value
end
tpm_enabled() click to toggle source

Returns the value of the `tpm_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50446
def tpm_enabled
  @tpm_enabled
end
tpm_enabled=(value) click to toggle source

Sets the value of the `tpm_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50455
def tpm_enabled=(value)
  @tpm_enabled = value
end
tunnel_migration() click to toggle source

Returns the value of the `tunnel_migration` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50464
def tunnel_migration
  @tunnel_migration
end
tunnel_migration=(value) click to toggle source

Sets the value of the `tunnel_migration` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50473
def tunnel_migration=(value)
  @tunnel_migration = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [VmType]

# File lib/ovirtsdk4/types.rb, line 50482
def type
  @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [VmType]

# File lib/ovirtsdk4/types.rb, line 50491
def type=(value)
  @type = value
end
usb() click to toggle source

Returns the value of the `usb` attribute.

@return [Usb]

# File lib/ovirtsdk4/types.rb, line 50500
def usb
  @usb
end
usb=(value) click to toggle source

Sets the value of the `usb` attribute.

@param value [Usb, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50513
def usb=(value)
  if value.is_a?(Hash)
    value = Usb.new(value)
  end
  @usb = value
end
version() click to toggle source

Returns the value of the `version` attribute.

@return [TemplateVersion]

# File lib/ovirtsdk4/types.rb, line 50525
def version
  @version
end
version=(value) click to toggle source

Sets the value of the `version` attribute.

@param value [TemplateVersion, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 50538
def version=(value)
  if value.is_a?(Hash)
    value = TemplateVersion.new(value)
  end
  @version = value
end
virtio_scsi() click to toggle source

Returns the value of the `virtio_scsi` attribute.

@return [VirtioScsi]

# File lib/ovirtsdk4/types.rb, line 50550
def virtio_scsi
  @virtio_scsi
end
virtio_scsi=(value) click to toggle source

Sets the value of the `virtio_scsi` attribute.

@param value [VirtioScsi, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50563
def virtio_scsi=(value)
  if value.is_a?(Hash)
    value = VirtioScsi.new(value)
  end
  @virtio_scsi = value
end
virtio_scsi_multi_queues() click to toggle source

Returns the value of the `virtio_scsi_multi_queues` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 50575
def virtio_scsi_multi_queues
  @virtio_scsi_multi_queues
end
virtio_scsi_multi_queues=(value) click to toggle source

Sets the value of the `virtio_scsi_multi_queues` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 50584
def virtio_scsi_multi_queues=(value)
  @virtio_scsi_multi_queues = value
end
virtio_scsi_multi_queues_enabled() click to toggle source

Returns the value of the `virtio_scsi_multi_queues_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 50593
def virtio_scsi_multi_queues_enabled
  @virtio_scsi_multi_queues_enabled
end
virtio_scsi_multi_queues_enabled=(value) click to toggle source

Sets the value of the `virtio_scsi_multi_queues_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 50602
def virtio_scsi_multi_queues_enabled=(value)
  @virtio_scsi_multi_queues_enabled = value
end
vm() click to toggle source

Returns the value of the `vm` attribute.

@return [Vm]

# File lib/ovirtsdk4/types.rb, line 50611
def vm
  @vm
end
vm=(value) click to toggle source

Sets the value of the `vm` attribute.

@param value [Vm, Hash]

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

# File lib/ovirtsdk4/types.rb, line 50624
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end
watchdogs() click to toggle source

Returns the value of the `watchdogs` attribute.

@return [Array<Watchdog>]

# File lib/ovirtsdk4/types.rb, line 50636
def watchdogs
  @watchdogs
end
watchdogs=(list) click to toggle source

Sets the value of the `watchdogs` attribute.

@param list [Array<Watchdog>]

# File lib/ovirtsdk4/types.rb, line 50645
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