Class: OvirtSDK4::VmPool
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::VmPool
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#auto_storage_select ⇒ Boolean
Returns the value of the
auto_storage_selectattribute. -
#auto_storage_select=(value) ⇒ Object
Sets the value of the
auto_storage_selectattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ VmPool
constructor
Creates a new instance of the VmPool class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#max_user_vms ⇒ Integer
Returns the value of the
max_user_vmsattribute. -
#max_user_vms=(value) ⇒ Object
Sets the value of the
max_user_vmsattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#prestarted_vms ⇒ Integer
Returns the value of the
prestarted_vmsattribute. -
#prestarted_vms=(value) ⇒ Object
Sets the value of the
prestarted_vmsattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#size ⇒ Integer
Returns the value of the
sizeattribute. -
#size=(value) ⇒ Object
Sets the value of the
sizeattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#stateful ⇒ Boolean
Returns the value of the
statefulattribute. -
#stateful=(value) ⇒ Object
Sets the value of the
statefulattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabledattribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabledattribute. -
#type ⇒ VmPoolType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_versionattribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_versionattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmPool
Creates a new instance of the OvirtSDK4::VmPool class.
27730 27731 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 27742 27743 27744 27745 27746 27747 27748 |
# File 'lib/ovirtsdk4/types.rb', line 27730 def initialize(opts = {}) super(opts) self.auto_storage_select = opts[:auto_storage_select] self.cluster = opts[:cluster] self.display = opts[:display] self.instance_type = opts[:instance_type] self.max_user_vms = opts[:max_user_vms] self. = opts[:permissions] self.prestarted_vms = opts[:prestarted_vms] self.rng_device = opts[:rng_device] self.size = opts[:size] self.soundcard_enabled = opts[:soundcard_enabled] self.stateful = opts[:stateful] self.template = opts[:template] self.tpm_enabled = opts[:tpm_enabled] self.type = opts[:type] self.use_latest_template_version = opts[:use_latest_template_version] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 |
# File 'lib/ovirtsdk4/types.rb', line 27753 def ==(other) super && @auto_storage_select == other.auto_storage_select && @cluster == other.cluster && @display == other.display && @instance_type == other.instance_type && @max_user_vms == other.max_user_vms && @permissions == other. && @prestarted_vms == other.prestarted_vms && @rng_device == other.rng_device && @size == other.size && @soundcard_enabled == other.soundcard_enabled && @stateful == other.stateful && @template == other.template && @tpm_enabled == other.tpm_enabled && @type == other.type && @use_latest_template_version == other.use_latest_template_version && @vm == other.vm end |
#auto_storage_select ⇒ Boolean
Returns the value of the auto_storage_select attribute.
27277 27278 27279 |
# File 'lib/ovirtsdk4/types.rb', line 27277 def auto_storage_select @auto_storage_select end |
#auto_storage_select=(value) ⇒ Object
Sets the value of the auto_storage_select attribute.
27286 27287 27288 |
# File 'lib/ovirtsdk4/types.rb', line 27286 def auto_storage_select=(value) @auto_storage_select = value end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
27295 27296 27297 |
# File 'lib/ovirtsdk4/types.rb', line 27295 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.
27308 27309 27310 27311 27312 27313 |
# File 'lib/ovirtsdk4/types.rb', line 27308 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment attribute.
27320 27321 27322 |
# File 'lib/ovirtsdk4/types.rb', line 27320 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
27329 27330 27331 |
# File 'lib/ovirtsdk4/types.rb', line 27329 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
27338 27339 27340 |
# File 'lib/ovirtsdk4/types.rb', line 27338 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
27347 27348 27349 |
# File 'lib/ovirtsdk4/types.rb', line 27347 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
27356 27357 27358 |
# File 'lib/ovirtsdk4/types.rb', line 27356 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.
27369 27370 27371 27372 27373 27374 |
# File 'lib/ovirtsdk4/types.rb', line 27369 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end |
#hash ⇒ Object
Generates a hash value for this object.
27776 27777 27778 27779 27780 27781 27782 27783 27784 27785 27786 27787 27788 27789 27790 27791 27792 27793 27794 |
# File 'lib/ovirtsdk4/types.rb', line 27776 def hash super + @auto_storage_select.hash + @cluster.hash + @display.hash + @instance_type.hash + @max_user_vms.hash + @permissions.hash + @prestarted_vms.hash + @rng_device.hash + @size.hash + @soundcard_enabled.hash + @stateful.hash + @template.hash + @tpm_enabled.hash + @type.hash + @use_latest_template_version.hash + @vm.hash end |
#id ⇒ String
Returns the value of the id attribute.
27381 27382 27383 |
# File 'lib/ovirtsdk4/types.rb', line 27381 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
27390 27391 27392 |
# File 'lib/ovirtsdk4/types.rb', line 27390 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
27399 27400 27401 |
# File 'lib/ovirtsdk4/types.rb', line 27399 def instance_type @instance_type end |
#instance_type=(value) ⇒ Object
Sets the value of the instance_type attribute.
The value parameter can be an instance of InstanceType or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
27412 27413 27414 27415 27416 27417 |
# File 'lib/ovirtsdk4/types.rb', line 27412 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#max_user_vms ⇒ Integer
Returns the value of the max_user_vms attribute.
27424 27425 27426 |
# File 'lib/ovirtsdk4/types.rb', line 27424 def max_user_vms @max_user_vms end |
#max_user_vms=(value) ⇒ Object
Sets the value of the max_user_vms attribute.
27433 27434 27435 |
# File 'lib/ovirtsdk4/types.rb', line 27433 def max_user_vms=(value) @max_user_vms = value end |
#name ⇒ String
Returns the value of the name attribute.
27442 27443 27444 |
# File 'lib/ovirtsdk4/types.rb', line 27442 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
27451 27452 27453 |
# File 'lib/ovirtsdk4/types.rb', line 27451 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
27460 27461 27462 |
# File 'lib/ovirtsdk4/types.rb', line 27460 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 |
# File 'lib/ovirtsdk4/types.rb', line 27469 def (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 |
#prestarted_vms ⇒ Integer
Returns the value of the prestarted_vms attribute.
27486 27487 27488 |
# File 'lib/ovirtsdk4/types.rb', line 27486 def prestarted_vms @prestarted_vms end |
#prestarted_vms=(value) ⇒ Object
Sets the value of the prestarted_vms attribute.
27495 27496 27497 |
# File 'lib/ovirtsdk4/types.rb', line 27495 def prestarted_vms=(value) @prestarted_vms = value end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device attribute.
27504 27505 27506 |
# File 'lib/ovirtsdk4/types.rb', line 27504 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.
27517 27518 27519 27520 27521 27522 |
# File 'lib/ovirtsdk4/types.rb', line 27517 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end |
#size ⇒ Integer
Returns the value of the size attribute.
27529 27530 27531 |
# File 'lib/ovirtsdk4/types.rb', line 27529 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size attribute.
27538 27539 27540 |
# File 'lib/ovirtsdk4/types.rb', line 27538 def size=(value) @size = value end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled attribute.
27547 27548 27549 |
# File 'lib/ovirtsdk4/types.rb', line 27547 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
27556 27557 27558 |
# File 'lib/ovirtsdk4/types.rb', line 27556 def soundcard_enabled=(value) @soundcard_enabled = value end |
#stateful ⇒ Boolean
Returns the value of the stateful attribute.
27565 27566 27567 |
# File 'lib/ovirtsdk4/types.rb', line 27565 def stateful @stateful end |
#stateful=(value) ⇒ Object
Sets the value of the stateful attribute.
27574 27575 27576 |
# File 'lib/ovirtsdk4/types.rb', line 27574 def stateful=(value) @stateful = value end |
#template ⇒ Template
Returns the value of the template attribute.
27583 27584 27585 |
# File 'lib/ovirtsdk4/types.rb', line 27583 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template attribute.
The value parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
27596 27597 27598 27599 27600 27601 |
# File 'lib/ovirtsdk4/types.rb', line 27596 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#tpm_enabled ⇒ Boolean
Returns the value of the tpm_enabled attribute.
27608 27609 27610 |
# File 'lib/ovirtsdk4/types.rb', line 27608 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled attribute.
27617 27618 27619 |
# File 'lib/ovirtsdk4/types.rb', line 27617 def tpm_enabled=(value) @tpm_enabled = value end |
#type ⇒ VmPoolType
Returns the value of the type attribute.
27626 27627 27628 |
# File 'lib/ovirtsdk4/types.rb', line 27626 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
27635 27636 27637 |
# File 'lib/ovirtsdk4/types.rb', line 27635 def type=(value) @type = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version attribute.
27644 27645 27646 |
# File 'lib/ovirtsdk4/types.rb', line 27644 def use_latest_template_version @use_latest_template_version end |
#use_latest_template_version=(value) ⇒ Object
Sets the value of the use_latest_template_version attribute.
27653 27654 27655 |
# File 'lib/ovirtsdk4/types.rb', line 27653 def use_latest_template_version=(value) @use_latest_template_version = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
27662 27663 27664 |
# File 'lib/ovirtsdk4/types.rb', line 27662 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
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.
27675 27676 27677 27678 27679 27680 |
# File 'lib/ovirtsdk4/types.rb', line 27675 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |