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
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#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. -
#device ⇒ String
Returns the value of the
device
attribute. -
#device=(value) ⇒ Object
Sets the value of the
device
attribute. -
#fs_name ⇒ String
Returns the value of the
fs_name
attribute. -
#fs_name=(value) ⇒ Object
Sets the value of the
fs_name
attribute. -
#gluster_clients ⇒ Array<GlusterClient>
Returns the value of the
gluster_clients
attribute. -
#gluster_clients=(list) ⇒ Object
Sets the value of the
gluster_clients
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 = {}) ⇒ GlusterBrickAdvancedDetails
constructor
Creates a new instance of the GlusterBrickAdvancedDetails class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#memory_pools ⇒ Array<GlusterMemoryPool>
Returns the value of the
memory_pools
attribute. -
#memory_pools=(list) ⇒ Object
Sets the value of the
memory_pools
attribute. -
#mnt_options ⇒ String
Returns the value of the
mnt_options
attribute. -
#mnt_options=(value) ⇒ Object
Sets the value of the
mnt_options
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#pid ⇒ Integer
Returns the value of the
pid
attribute. -
#pid=(value) ⇒ Object
Sets the value of the
pid
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vms
attribute. -
#vms=(list) ⇒ Object
Sets the value of the
vms
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterBrickAdvancedDetails
Creates a new instance of the OvirtSDK4::GlusterBrickAdvancedDetails class.
38808 38809 38810 38811 38812 38813 38814 38815 38816 38817 |
# File 'lib/ovirtsdk4/types.rb', line 38808 def initialize(opts = {}) super(opts) self.device = opts[:device] self.fs_name = opts[:fs_name] self.gluster_clients = opts[:gluster_clients] self.memory_pools = opts[:memory_pools] self. = opts[:mnt_options] self.pid = opts[:pid] self.port = opts[:port] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
38822 38823 38824 38825 38826 38827 38828 38829 38830 38831 |
# File 'lib/ovirtsdk4/types.rb', line 38822 def ==(other) super && @device == other.device && @fs_name == other.fs_name && @gluster_clients == other.gluster_clients && @memory_pools == other.memory_pools && @mnt_options == other. && @pid == other.pid && @port == other.port end |
#comment ⇒ String
Returns the value of the comment
attribute.
38460 38461 38462 |
# File 'lib/ovirtsdk4/types.rb', line 38460 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
38469 38470 38471 |
# File 'lib/ovirtsdk4/types.rb', line 38469 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
38478 38479 38480 |
# File 'lib/ovirtsdk4/types.rb', line 38478 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
38487 38488 38489 |
# File 'lib/ovirtsdk4/types.rb', line 38487 def description=(value) @description = value end |
#device ⇒ String
Returns the value of the device
attribute.
38496 38497 38498 |
# File 'lib/ovirtsdk4/types.rb', line 38496 def device @device end |
#device=(value) ⇒ Object
Sets the value of the device
attribute.
38505 38506 38507 |
# File 'lib/ovirtsdk4/types.rb', line 38505 def device=(value) @device = value end |
#fs_name ⇒ String
Returns the value of the fs_name
attribute.
38514 38515 38516 |
# File 'lib/ovirtsdk4/types.rb', line 38514 def fs_name @fs_name end |
#fs_name=(value) ⇒ Object
Sets the value of the fs_name
attribute.
38523 38524 38525 |
# File 'lib/ovirtsdk4/types.rb', line 38523 def fs_name=(value) @fs_name = value end |
#gluster_clients ⇒ Array<GlusterClient>
Returns the value of the gluster_clients
attribute.
38532 38533 38534 |
# File 'lib/ovirtsdk4/types.rb', line 38532 def gluster_clients @gluster_clients end |
#gluster_clients=(list) ⇒ Object
Sets the value of the gluster_clients
attribute.
38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 |
# File 'lib/ovirtsdk4/types.rb', line 38541 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 |
#hash ⇒ Object
Generates a hash value for this object.
38836 38837 38838 38839 38840 38841 38842 38843 38844 38845 |
# File 'lib/ovirtsdk4/types.rb', line 38836 def hash super + @device.hash + @fs_name.hash + @gluster_clients.hash + @memory_pools.hash + @mnt_options.hash + @pid.hash + @port.hash end |
#id ⇒ String
Returns the value of the id
attribute.
38558 38559 38560 |
# File 'lib/ovirtsdk4/types.rb', line 38558 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
38567 38568 38569 |
# File 'lib/ovirtsdk4/types.rb', line 38567 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
38576 38577 38578 |
# File 'lib/ovirtsdk4/types.rb', line 38576 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.
38589 38590 38591 38592 38593 38594 |
# File 'lib/ovirtsdk4/types.rb', line 38589 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#memory_pools ⇒ Array<GlusterMemoryPool>
Returns the value of the memory_pools
attribute.
38601 38602 38603 |
# File 'lib/ovirtsdk4/types.rb', line 38601 def memory_pools @memory_pools end |
#memory_pools=(list) ⇒ Object
Sets the value of the memory_pools
attribute.
38610 38611 38612 38613 38614 38615 38616 38617 38618 38619 38620 |
# File 'lib/ovirtsdk4/types.rb', line 38610 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 |
#mnt_options ⇒ String
Returns the value of the mnt_options
attribute.
38627 38628 38629 |
# File 'lib/ovirtsdk4/types.rb', line 38627 def @mnt_options end |
#mnt_options=(value) ⇒ Object
Sets the value of the mnt_options
attribute.
38636 38637 38638 |
# File 'lib/ovirtsdk4/types.rb', line 38636 def (value) @mnt_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
38645 38646 38647 |
# File 'lib/ovirtsdk4/types.rb', line 38645 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
38654 38655 38656 |
# File 'lib/ovirtsdk4/types.rb', line 38654 def name=(value) @name = value end |
#pid ⇒ Integer
Returns the value of the pid
attribute.
38663 38664 38665 |
# File 'lib/ovirtsdk4/types.rb', line 38663 def pid @pid end |
#pid=(value) ⇒ Object
Sets the value of the pid
attribute.
38672 38673 38674 |
# File 'lib/ovirtsdk4/types.rb', line 38672 def pid=(value) @pid = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
38681 38682 38683 |
# File 'lib/ovirtsdk4/types.rb', line 38681 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
38690 38691 38692 |
# File 'lib/ovirtsdk4/types.rb', line 38690 def port=(value) @port = value end |
#template ⇒ Template
Returns the value of the template
attribute.
38699 38700 38701 |
# File 'lib/ovirtsdk4/types.rb', line 38699 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.
38712 38713 38714 38715 38716 38717 |
# File 'lib/ovirtsdk4/types.rb', line 38712 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.
38724 38725 38726 |
# File 'lib/ovirtsdk4/types.rb', line 38724 def vm @vm end |
#vm=(value) ⇒ Object
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.
38737 38738 38739 38740 38741 38742 |
# File 'lib/ovirtsdk4/types.rb', line 38737 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vms ⇒ Array<Vm>
Returns the value of the vms
attribute.
38749 38750 38751 |
# File 'lib/ovirtsdk4/types.rb', line 38749 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 |
# File 'lib/ovirtsdk4/types.rb', line 38758 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 |