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.
26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 |
# File 'lib/ovirtsdk4/types.rb', line 26199 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.
26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 |
# File 'lib/ovirtsdk4/types.rb', line 26221 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.
25766 25767 25768 |
# File 'lib/ovirtsdk4/types.rb', line 25766 def auto_storage_select @auto_storage_select end |
#auto_storage_select=(value) ⇒ Object
Sets the value of the auto_storage_select
attribute.
25775 25776 25777 |
# File 'lib/ovirtsdk4/types.rb', line 25775 def auto_storage_select=(value) @auto_storage_select = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
25784 25785 25786 |
# File 'lib/ovirtsdk4/types.rb', line 25784 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.
25797 25798 25799 25800 25801 25802 |
# File 'lib/ovirtsdk4/types.rb', line 25797 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.
25809 25810 25811 |
# File 'lib/ovirtsdk4/types.rb', line 25809 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
25818 25819 25820 |
# File 'lib/ovirtsdk4/types.rb', line 25818 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
25827 25828 25829 |
# File 'lib/ovirtsdk4/types.rb', line 25827 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
25836 25837 25838 |
# File 'lib/ovirtsdk4/types.rb', line 25836 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
25845 25846 25847 |
# File 'lib/ovirtsdk4/types.rb', line 25845 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.
25858 25859 25860 25861 25862 25863 |
# File 'lib/ovirtsdk4/types.rb', line 25858 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.
26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 |
# File 'lib/ovirtsdk4/types.rb', line 26243 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.
25870 25871 25872 |
# File 'lib/ovirtsdk4/types.rb', line 25870 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
25879 25880 25881 |
# File 'lib/ovirtsdk4/types.rb', line 25879 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
25888 25889 25890 |
# File 'lib/ovirtsdk4/types.rb', line 25888 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.
25901 25902 25903 25904 25905 25906 |
# File 'lib/ovirtsdk4/types.rb', line 25901 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.
25913 25914 25915 |
# File 'lib/ovirtsdk4/types.rb', line 25913 def max_user_vms @max_user_vms end |
#max_user_vms=(value) ⇒ Object
Sets the value of the max_user_vms
attribute.
25922 25923 25924 |
# File 'lib/ovirtsdk4/types.rb', line 25922 def max_user_vms=(value) @max_user_vms = value end |
#name ⇒ String
Returns the value of the name
attribute.
25931 25932 25933 |
# File 'lib/ovirtsdk4/types.rb', line 25931 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
25940 25941 25942 |
# File 'lib/ovirtsdk4/types.rb', line 25940 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
25949 25950 25951 |
# File 'lib/ovirtsdk4/types.rb', line 25949 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 |
# File 'lib/ovirtsdk4/types.rb', line 25958 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.
25975 25976 25977 |
# File 'lib/ovirtsdk4/types.rb', line 25975 def prestarted_vms @prestarted_vms end |
#prestarted_vms=(value) ⇒ Object
Sets the value of the prestarted_vms
attribute.
25984 25985 25986 |
# File 'lib/ovirtsdk4/types.rb', line 25984 def prestarted_vms=(value) @prestarted_vms = value end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device
attribute.
25993 25994 25995 |
# File 'lib/ovirtsdk4/types.rb', line 25993 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.
26006 26007 26008 26009 26010 26011 |
# File 'lib/ovirtsdk4/types.rb', line 26006 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.
26018 26019 26020 |
# File 'lib/ovirtsdk4/types.rb', line 26018 def size @size end |
#size=(value) ⇒ Object
Sets the value of the size
attribute.
26027 26028 26029 |
# File 'lib/ovirtsdk4/types.rb', line 26027 def size=(value) @size = value end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled
attribute.
26036 26037 26038 |
# File 'lib/ovirtsdk4/types.rb', line 26036 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
26045 26046 26047 |
# File 'lib/ovirtsdk4/types.rb', line 26045 def soundcard_enabled=(value) @soundcard_enabled = value end |
#stateful ⇒ Boolean
Returns the value of the stateful
attribute.
26054 26055 26056 |
# File 'lib/ovirtsdk4/types.rb', line 26054 def stateful @stateful end |
#stateful=(value) ⇒ Object
Sets the value of the stateful
attribute.
26063 26064 26065 |
# File 'lib/ovirtsdk4/types.rb', line 26063 def stateful=(value) @stateful = value end |
#template ⇒ Template
Returns the value of the template
attribute.
26072 26073 26074 |
# File 'lib/ovirtsdk4/types.rb', line 26072 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.
26085 26086 26087 26088 26089 26090 |
# File 'lib/ovirtsdk4/types.rb', line 26085 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.
26097 26098 26099 |
# File 'lib/ovirtsdk4/types.rb', line 26097 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
26106 26107 26108 |
# File 'lib/ovirtsdk4/types.rb', line 26106 def type=(value) @type = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version
attribute.
26115 26116 26117 |
# File 'lib/ovirtsdk4/types.rb', line 26115 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.
26124 26125 26126 |
# File 'lib/ovirtsdk4/types.rb', line 26124 def use_latest_template_version=(value) @use_latest_template_version = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
26133 26134 26135 |
# File 'lib/ovirtsdk4/types.rb', line 26133 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.
26146 26147 26148 26149 26150 26151 |
# File 'lib/ovirtsdk4/types.rb', line 26146 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |