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
true
ifself
andother
have the same attributes and values. -
#auto_storage_select ⇒ Boolean
Returns the value of the
auto_storage_select
attribute. -
#auto_storage_select=(value) ⇒ Object
Sets the value of the
auto_storage_select
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ VmPool
constructor
Creates a new instance of the VmPool class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#max_user_vms ⇒ Integer
Returns the value of the
max_user_vms
attribute. -
#max_user_vms=(value) ⇒ Object
Sets the value of the
max_user_vms
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#prestarted_vms ⇒ Integer
Returns the value of the
prestarted_vms
attribute. -
#prestarted_vms=(value) ⇒ Object
Sets the value of the
prestarted_vms
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#size ⇒ Integer
Returns the value of the
size
attribute. -
#size=(value) ⇒ Object
Sets the value of the
size
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#stateful ⇒ Boolean
Returns the value of the
stateful
attribute. -
#stateful=(value) ⇒ Object
Sets the value of the
stateful
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#type ⇒ VmPoolType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_version
attribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_version
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmPool
Creates a new instance of the OvirtSDK4::VmPool class.
26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 |
# File 'lib/ovirtsdk4/types.rb', line 26324 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.
26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 |
# File 'lib/ovirtsdk4/types.rb', line 26346 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 && @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.
25891 25892 25893 |
# File 'lib/ovirtsdk4/types.rb', line 25891 def auto_storage_select @auto_storage_select end |
#auto_storage_select=(value) ⇒ Object
Sets the value of the auto_storage_select
attribute.
25900 25901 25902 |
# File 'lib/ovirtsdk4/types.rb', line 25900 def auto_storage_select=(value) @auto_storage_select = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
25909 25910 25911 |
# File 'lib/ovirtsdk4/types.rb', line 25909 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.
25922 25923 25924 25925 25926 25927 |
# File 'lib/ovirtsdk4/types.rb', line 25922 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.
25934 25935 25936 |
# File 'lib/ovirtsdk4/types.rb', line 25934 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
25943 25944 25945 |
# File 'lib/ovirtsdk4/types.rb', line 25943 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
25952 25953 25954 |
# File 'lib/ovirtsdk4/types.rb', line 25952 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
25961 25962 25963 |
# File 'lib/ovirtsdk4/types.rb', line 25961 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
25970 25971 25972 |
# File 'lib/ovirtsdk4/types.rb', line 25970 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.
25983 25984 25985 25986 25987 25988 |
# File 'lib/ovirtsdk4/types.rb', line 25983 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.
26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 |
# File 'lib/ovirtsdk4/types.rb', line 26368 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 + @type.hash + @use_latest_template_version.hash + @vm.hash end |
#id ⇒ String
Returns the value of the id
attribute.
25995 25996 25997 |
# File 'lib/ovirtsdk4/types.rb', line 25995 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
26004 26005 26006 |
# File 'lib/ovirtsdk4/types.rb', line 26004 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
26013 26014 26015 |
# File 'lib/ovirtsdk4/types.rb', line 26013 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.
26026 26027 26028 26029 26030 26031 |
# File 'lib/ovirtsdk4/types.rb', line 26026 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.
26038 26039 26040 |
# File 'lib/ovirtsdk4/types.rb', line 26038 def max_user_vms @max_user_vms end |
#max_user_vms=(value) ⇒ Object
Sets the value of the max_user_vms
attribute.
26047 26048 26049 |
# File 'lib/ovirtsdk4/types.rb', line 26047 def max_user_vms=(value) @max_user_vms = value end |
#name ⇒ String
Returns the value of the name
attribute.
26056 26057 26058 |
# File 'lib/ovirtsdk4/types.rb', line 26056 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
26065 26066 26067 |
# File 'lib/ovirtsdk4/types.rb', line 26065 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
26074 26075 26076 |
# File 'lib/ovirtsdk4/types.rb', line 26074 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 |
# File 'lib/ovirtsdk4/types.rb', line 26083 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.
26100 26101 26102 |
# File 'lib/ovirtsdk4/types.rb', line 26100 def prestarted_vms @prestarted_vms end |
#prestarted_vms=(value) ⇒ Object
Sets the value of the prestarted_vms
attribute.
26109 26110 26111 |
# File 'lib/ovirtsdk4/types.rb', line 26109 def prestarted_vms=(value) @prestarted_vms = value end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device
attribute.
26118 26119 26120 |
# File 'lib/ovirtsdk4/types.rb', line 26118 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.
26131 26132 26133 26134 26135 26136 |
# File 'lib/ovirtsdk4/types.rb', line 26131 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.
26143 26144 26145 |
# File 'lib/ovirtsdk4/types.rb', line 26143 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
26152 26153 26154 |
# File 'lib/ovirtsdk4/types.rb', line 26152 def size=(value) @size = value end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled
attribute.
26161 26162 26163 |
# File 'lib/ovirtsdk4/types.rb', line 26161 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
26170 26171 26172 |
# File 'lib/ovirtsdk4/types.rb', line 26170 def soundcard_enabled=(value) @soundcard_enabled = value end |
#stateful ⇒ Boolean
Returns the value of the stateful
attribute.
26179 26180 26181 |
# File 'lib/ovirtsdk4/types.rb', line 26179 def stateful @stateful end |
#stateful=(value) ⇒ Object
Sets the value of the stateful
attribute.
26188 26189 26190 |
# File 'lib/ovirtsdk4/types.rb', line 26188 def stateful=(value) @stateful = value end |
#template ⇒ Template
Returns the value of the template
attribute.
26197 26198 26199 |
# File 'lib/ovirtsdk4/types.rb', line 26197 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.
26210 26211 26212 26213 26214 26215 |
# File 'lib/ovirtsdk4/types.rb', line 26210 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.
26222 26223 26224 |
# File 'lib/ovirtsdk4/types.rb', line 26222 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
26231 26232 26233 |
# File 'lib/ovirtsdk4/types.rb', line 26231 def type=(value) @type = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version
attribute.
26240 26241 26242 |
# File 'lib/ovirtsdk4/types.rb', line 26240 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.
26249 26250 26251 |
# File 'lib/ovirtsdk4/types.rb', line 26249 def use_latest_template_version=(value) @use_latest_template_version = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
26258 26259 26260 |
# File 'lib/ovirtsdk4/types.rb', line 26258 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.
26271 26272 26273 26274 26275 26276 |
# File 'lib/ovirtsdk4/types.rb', line 26271 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |