Class: OvirtSDK4::GlusterBrickAdvancedDetails
- Inherits:
-
Device
- Object
- Struct
- Identified
- Device
- OvirtSDK4::GlusterBrickAdvancedDetails
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) device
Returns the value of the
device
attribute. -
- (Object) device=(value)
Sets the value of the
device
attribute. -
- (String) fs_name
Returns the value of the
fs_name
attribute. -
- (Object) fs_name=(value)
Sets the value of the
fs_name
attribute. -
- (Array<GlusterClient>) gluster_clients
Returns the value of the
gluster_clients
attribute. -
- (Object) gluster_clients=(list)
Sets the value of the
gluster_clients
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (GlusterBrickAdvancedDetails) initialize(opts = {})
constructor
Creates a new instance of the GlusterBrickAdvancedDetails class.
-
- (InstanceType) instance_type
Returns the value of the
instance_type
attribute. -
- (Object) instance_type=(value)
Sets the value of the
instance_type
attribute. -
- (Array<GlusterMemoryPool>) memory_pools
Returns the value of the
memory_pools
attribute. -
- (Object) memory_pools=(list)
Sets the value of the
memory_pools
attribute. -
- (String) mnt_options
Returns the value of the
mnt_options
attribute. -
- (Object) mnt_options=(value)
Sets the value of the
mnt_options
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Integer) pid
Returns the value of the
pid
attribute. -
- (Object) pid=(value)
Sets the value of the
pid
attribute. -
- (Integer) port
Returns the value of the
port
attribute. -
- (Object) port=(value)
Sets the value of the
port
attribute. -
- (Template) template
Returns the value of the
template
attribute. -
- (Object) template=(value)
Sets the value of the
template
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute. -
- (Array<Vm>) vms
Returns the value of the
vms
attribute. -
- (Object) vms=(list)
Sets the value of the
vms
attribute.
Methods included from Type
Constructor Details
- (GlusterBrickAdvancedDetails) initialize(opts = {})
Creates a new instance of the OvirtSDK4::GlusterBrickAdvancedDetails class.
30392 30393 30394 30395 30396 30397 30398 30399 30400 30401 30402 30403 30404 30405 30406 30407 30408 30409 |
# File 'lib/ovirtsdk4/types.rb', line 30392 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.device = opts[:device] self.fs_name = opts[:fs_name] self.gluster_clients = opts[:gluster_clients] self.id = opts[:id] self.instance_type = opts[:instance_type] self.memory_pools = opts[:memory_pools] self. = opts[:mnt_options] self.name = opts[:name] self.pid = opts[:pid] self.port = opts[:port] self.template = opts[:template] self.vm = opts[:vm] self.vms = opts[:vms] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
30047 30048 30049 |
# File 'lib/ovirtsdk4/types.rb', line 30047 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
30056 30057 30058 |
# File 'lib/ovirtsdk4/types.rb', line 30056 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
30065 30066 30067 |
# File 'lib/ovirtsdk4/types.rb', line 30065 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
30074 30075 30076 |
# File 'lib/ovirtsdk4/types.rb', line 30074 def description=(value) @description = value end |
- (String) device
Returns the value of the device
attribute.
30083 30084 30085 |
# File 'lib/ovirtsdk4/types.rb', line 30083 def device return @device end |
- (Object) device=(value)
Sets the value of the device
attribute.
30092 30093 30094 |
# File 'lib/ovirtsdk4/types.rb', line 30092 def device=(value) @device = value end |
- (String) fs_name
Returns the value of the fs_name
attribute.
30101 30102 30103 |
# File 'lib/ovirtsdk4/types.rb', line 30101 def fs_name return @fs_name end |
- (Object) fs_name=(value)
Sets the value of the fs_name
attribute.
30110 30111 30112 |
# File 'lib/ovirtsdk4/types.rb', line 30110 def fs_name=(value) @fs_name = value end |
- (Array<GlusterClient>) gluster_clients
Returns the value of the gluster_clients
attribute.
30119 30120 30121 |
# File 'lib/ovirtsdk4/types.rb', line 30119 def gluster_clients return @gluster_clients end |
- (Object) gluster_clients=(list)
Sets the value of the gluster_clients
attribute.
30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 |
# File 'lib/ovirtsdk4/types.rb', line 30127 def gluster_clients=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterClient.new(value) end end end @gluster_clients = list end |
- (String) id
Returns the value of the id
attribute.
30144 30145 30146 |
# File 'lib/ovirtsdk4/types.rb', line 30144 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
30153 30154 30155 |
# File 'lib/ovirtsdk4/types.rb', line 30153 def id=(value) @id = value end |
- (InstanceType) instance_type
Returns the value of the instance_type
attribute.
30162 30163 30164 |
# File 'lib/ovirtsdk4/types.rb', line 30162 def instance_type return @instance_type end |
- (Object) instance_type=(value)
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.
30175 30176 30177 30178 30179 30180 |
# File 'lib/ovirtsdk4/types.rb', line 30175 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
- (Array<GlusterMemoryPool>) memory_pools
Returns the value of the memory_pools
attribute.
30187 30188 30189 |
# File 'lib/ovirtsdk4/types.rb', line 30187 def memory_pools return @memory_pools end |
- (Object) memory_pools=(list)
Sets the value of the memory_pools
attribute.
30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 |
# File 'lib/ovirtsdk4/types.rb', line 30195 def memory_pools=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterMemoryPool.new(value) end end end @memory_pools = list end |
- (String) mnt_options
Returns the value of the mnt_options
attribute.
30212 30213 30214 |
# File 'lib/ovirtsdk4/types.rb', line 30212 def return @mnt_options end |
- (Object) mnt_options=(value)
Sets the value of the mnt_options
attribute.
30221 30222 30223 |
# File 'lib/ovirtsdk4/types.rb', line 30221 def (value) @mnt_options = value end |
- (String) name
Returns the value of the name
attribute.
30230 30231 30232 |
# File 'lib/ovirtsdk4/types.rb', line 30230 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
30239 30240 30241 |
# File 'lib/ovirtsdk4/types.rb', line 30239 def name=(value) @name = value end |
- (Integer) pid
Returns the value of the pid
attribute.
30248 30249 30250 |
# File 'lib/ovirtsdk4/types.rb', line 30248 def pid return @pid end |
- (Object) pid=(value)
Sets the value of the pid
attribute.
30257 30258 30259 |
# File 'lib/ovirtsdk4/types.rb', line 30257 def pid=(value) @pid = value end |
- (Integer) port
Returns the value of the port
attribute.
30266 30267 30268 |
# File 'lib/ovirtsdk4/types.rb', line 30266 def port return @port end |
- (Object) port=(value)
Sets the value of the port
attribute.
30275 30276 30277 |
# File 'lib/ovirtsdk4/types.rb', line 30275 def port=(value) @port = value end |
- (Template) template
Returns the value of the template
attribute.
30284 30285 30286 |
# File 'lib/ovirtsdk4/types.rb', line 30284 def template return @template end |
- (Object) template=(value)
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.
30297 30298 30299 30300 30301 30302 |
# File 'lib/ovirtsdk4/types.rb', line 30297 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
- (Vm) vm
Returns the value of the vm
attribute.
30309 30310 30311 |
# File 'lib/ovirtsdk4/types.rb', line 30309 def vm return @vm end |
- (Object) vm=(value)
Sets the value of the vm
attribute.
The value
parameter can be an instance of 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.
30322 30323 30324 30325 30326 30327 |
# File 'lib/ovirtsdk4/types.rb', line 30322 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
- (Array<Vm>) vms
Returns the value of the vms
attribute.
30334 30335 30336 |
# File 'lib/ovirtsdk4/types.rb', line 30334 def vms return @vms end |
- (Object) vms=(list)
Sets the value of the vms
attribute.
30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 30352 |
# File 'lib/ovirtsdk4/types.rb', line 30342 def vms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Vm.new(value) end end end @vms = list end |