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. -
#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.
26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 |
# File 'lib/ovirtsdk4/types.rb', line 26100 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.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.
26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 |
# File 'lib/ovirtsdk4/types.rb', line 26122 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 && == 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 && @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.
25667 25668 25669 |
# File 'lib/ovirtsdk4/types.rb', line 25667 def auto_storage_select @auto_storage_select end |
#auto_storage_select=(value) ⇒ Object
Sets the value of the auto_storage_select attribute.
25676 25677 25678 |
# File 'lib/ovirtsdk4/types.rb', line 25676 def auto_storage_select=(value) @auto_storage_select = value end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
25685 25686 25687 |
# File 'lib/ovirtsdk4/types.rb', line 25685 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.
25698 25699 25700 25701 25702 25703 |
# File 'lib/ovirtsdk4/types.rb', line 25698 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.
25710 25711 25712 |
# File 'lib/ovirtsdk4/types.rb', line 25710 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
25719 25720 25721 |
# File 'lib/ovirtsdk4/types.rb', line 25719 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
25728 25729 25730 |
# File 'lib/ovirtsdk4/types.rb', line 25728 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
25737 25738 25739 |
# File 'lib/ovirtsdk4/types.rb', line 25737 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
25746 25747 25748 |
# File 'lib/ovirtsdk4/types.rb', line 25746 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.
25759 25760 25761 25762 25763 25764 |
# File 'lib/ovirtsdk4/types.rb', line 25759 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.
26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 |
# File 'lib/ovirtsdk4/types.rb', line 26144 def hash super + @auto_storage_select.hash + @cluster.hash + @display.hash + @instance_type.hash + @max_user_vms.hash + .hash + @prestarted_vms.hash + @rng_device.hash + @size.hash + @soundcard_enabled.hash + @stateful.hash + @template.hash + @type.hash + @use_latest_template_version.hash + @vm.hash end |
#id ⇒ String
Returns the value of the id attribute.
25771 25772 25773 |
# File 'lib/ovirtsdk4/types.rb', line 25771 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
25780 25781 25782 |
# File 'lib/ovirtsdk4/types.rb', line 25780 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
25789 25790 25791 |
# File 'lib/ovirtsdk4/types.rb', line 25789 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.
25802 25803 25804 25805 25806 25807 |
# File 'lib/ovirtsdk4/types.rb', line 25802 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.
25814 25815 25816 |
# File 'lib/ovirtsdk4/types.rb', line 25814 def max_user_vms @max_user_vms end |
#max_user_vms=(value) ⇒ Object
Sets the value of the max_user_vms attribute.
25823 25824 25825 |
# File 'lib/ovirtsdk4/types.rb', line 25823 def max_user_vms=(value) @max_user_vms = value end |
#name ⇒ String
Returns the value of the name attribute.
25832 25833 25834 |
# File 'lib/ovirtsdk4/types.rb', line 25832 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
25841 25842 25843 |
# File 'lib/ovirtsdk4/types.rb', line 25841 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
25850 25851 25852 |
# File 'lib/ovirtsdk4/types.rb', line 25850 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 |
# File 'lib/ovirtsdk4/types.rb', line 25859 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 = list end |
#prestarted_vms ⇒ Integer
Returns the value of the prestarted_vms attribute.
25876 25877 25878 |
# File 'lib/ovirtsdk4/types.rb', line 25876 def prestarted_vms @prestarted_vms end |
#prestarted_vms=(value) ⇒ Object
Sets the value of the prestarted_vms attribute.
25885 25886 25887 |
# File 'lib/ovirtsdk4/types.rb', line 25885 def prestarted_vms=(value) @prestarted_vms = value end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device attribute.
25894 25895 25896 |
# File 'lib/ovirtsdk4/types.rb', line 25894 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.
25907 25908 25909 25910 25911 25912 |
# File 'lib/ovirtsdk4/types.rb', line 25907 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.
25919 25920 25921 |
# File 'lib/ovirtsdk4/types.rb', line 25919 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size attribute.
25928 25929 25930 |
# File 'lib/ovirtsdk4/types.rb', line 25928 def size=(value) @size = value end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled attribute.
25937 25938 25939 |
# File 'lib/ovirtsdk4/types.rb', line 25937 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
25946 25947 25948 |
# File 'lib/ovirtsdk4/types.rb', line 25946 def soundcard_enabled=(value) @soundcard_enabled = value end |
#stateful ⇒ Boolean
Returns the value of the stateful attribute.
25955 25956 25957 |
# File 'lib/ovirtsdk4/types.rb', line 25955 def stateful @stateful end |
#stateful=(value) ⇒ Object
Sets the value of the stateful attribute.
25964 25965 25966 |
# File 'lib/ovirtsdk4/types.rb', line 25964 def stateful=(value) @stateful = value end |
#template ⇒ Template
Returns the value of the template attribute.
25973 25974 25975 |
# File 'lib/ovirtsdk4/types.rb', line 25973 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.
25986 25987 25988 25989 25990 25991 |
# File 'lib/ovirtsdk4/types.rb', line 25986 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#type ⇒ VmPoolType
Returns the value of the type attribute.
25998 25999 26000 |
# File 'lib/ovirtsdk4/types.rb', line 25998 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
26007 26008 26009 |
# File 'lib/ovirtsdk4/types.rb', line 26007 def type=(value) @type = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version attribute.
26016 26017 26018 |
# File 'lib/ovirtsdk4/types.rb', line 26016 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.
26025 26026 26027 |
# File 'lib/ovirtsdk4/types.rb', line 26025 def use_latest_template_version=(value) @use_latest_template_version = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
26034 26035 26036 |
# File 'lib/ovirtsdk4/types.rb', line 26034 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.
26047 26048 26049 26050 26051 26052 |
# File 'lib/ovirtsdk4/types.rb', line 26047 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |