class OvirtSDK4::VmPool
Public Class Methods
Creates a new instance of the {VmPool} 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 [Cluster, Hash] :cluster The value of attribute `cluster`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [Display, Hash] :display The value of attribute `display`.
@option opts [String] :id The value of attribute `id`.
@option opts [InstanceType, Hash] :instance_type The value of attribute `instance_type`.
@option opts [Integer] :max_user_vms The value of attribute `max_user_vms`.
@option opts [String] :name The value of attribute `name`.
@option opts [Integer] :prestarted_vms The value of attribute `prestarted_vms`.
@option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
@option opts [Integer] :size The value of attribute `size`.
@option opts [Boolean] :soundcard_enabled The value of attribute `soundcard_enabled`.
@option opts [Template, Hash] :template The value of attribute `template`.
@option opts [VmPoolType] :type The value of attribute `type`.
@option opts [Boolean] :use_latest_template_version The value of attribute `use_latest_template_version`.
@option opts [Vm, Hash] :vm The value of attribute `vm`.
# File lib/ovirtsdk4/types.rb, line 19311 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.comment = opts[:comment] self.description = opts[:description] self.display = opts[:display] self.id = opts[:id] self.instance_type = opts[:instance_type] self.max_user_vms = opts[:max_user_vms] self.name = opts[:name] self.prestarted_vms = opts[:prestarted_vms] self.rng_device = opts[:rng_device] self.size = opts[:size] self.soundcard_enabled = opts[:soundcard_enabled] self.template = opts[:template] self.type = opts[:type] self.use_latest_template_version = opts[:use_latest_template_version] self.vm = opts[:vm] end
Public Instance Methods
Returns the value of the `cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 18946 def cluster return @cluster end
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 18959 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 18971 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 18980 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 18989 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 18998 def description=(value) @description = value end
Returns the value of the `display` attribute.
@return [Display]
# File lib/ovirtsdk4/types.rb, line 19007 def display return @display end
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 19020 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 19032 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 19041 def id=(value) @id = value end
Returns the value of the `instance_type` attribute.
@return [InstanceType]
# File lib/ovirtsdk4/types.rb, line 19050 def instance_type return @instance_type end
Sets the value of the `instance_type` attribute.
@param value [InstanceType, Hash]
The `value` parameter can be an instance of {OvirtSDK4::InstanceType} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 19063 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end
Returns the value of the `max_user_vms` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 19075 def max_user_vms return @max_user_vms end
Sets the value of the `max_user_vms` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 19084 def max_user_vms=(value) @max_user_vms = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 19093 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 19102 def name=(value) @name = value end
Returns the value of the `prestarted_vms` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 19111 def prestarted_vms return @prestarted_vms end
Sets the value of the `prestarted_vms` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 19120 def prestarted_vms=(value) @prestarted_vms = value end
Returns the value of the `rng_device` attribute.
@return [RngDevice]
# File lib/ovirtsdk4/types.rb, line 19129 def rng_device return @rng_device end
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 19142 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end
Returns the value of the `size` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 19154 def size return @size end
Sets the value of the `size` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 19163 def size=(value) @size = value end
Returns the value of the `soundcard_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 19172 def soundcard_enabled return @soundcard_enabled end
Sets the value of the `soundcard_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 19181 def soundcard_enabled=(value) @soundcard_enabled = value end
Returns the value of the `template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 19190 def template return @template end
Sets the value of the `template` attribute.
@param value [Template, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Template} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 19203 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end
Returns the value of the `type` attribute.
@return [VmPoolType]
# File lib/ovirtsdk4/types.rb, line 19215 def type return @type end
Sets the value of the `type` attribute.
@param value [VmPoolType]
# File lib/ovirtsdk4/types.rb, line 19224 def type=(value) @type = value end
Returns the value of the `use_latest_template_version` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 19233 def use_latest_template_version return @use_latest_template_version end
Sets the value of the `use_latest_template_version` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 19242 def use_latest_template_version=(value) @use_latest_template_version = value end
Returns the value of the `vm` attribute.
@return [Vm]
# File lib/ovirtsdk4/types.rb, line 19251 def vm return @vm end
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 19264 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end