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.
41964 41965 41966 41967 41968 41969 41970 41971 41972 41973 |
# File 'lib/ovirtsdk4/types.rb', line 41964 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.
41978 41979 41980 41981 41982 41983 41984 41985 41986 41987 |
# File 'lib/ovirtsdk4/types.rb', line 41978 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.
41616 41617 41618 |
# File 'lib/ovirtsdk4/types.rb', line 41616 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
41625 41626 41627 |
# File 'lib/ovirtsdk4/types.rb', line 41625 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
41634 41635 41636 |
# File 'lib/ovirtsdk4/types.rb', line 41634 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
41643 41644 41645 |
# File 'lib/ovirtsdk4/types.rb', line 41643 def description=(value) @description = value end |
#device ⇒ String
Returns the value of the device
attribute.
41652 41653 41654 |
# File 'lib/ovirtsdk4/types.rb', line 41652 def device @device end |
#device=(value) ⇒ Object
Sets the value of the device
attribute.
41661 41662 41663 |
# File 'lib/ovirtsdk4/types.rb', line 41661 def device=(value) @device = value end |
#fs_name ⇒ String
Returns the value of the fs_name
attribute.
41670 41671 41672 |
# File 'lib/ovirtsdk4/types.rb', line 41670 def fs_name @fs_name end |
#fs_name=(value) ⇒ Object
Sets the value of the fs_name
attribute.
41679 41680 41681 |
# File 'lib/ovirtsdk4/types.rb', line 41679 def fs_name=(value) @fs_name = value end |
#gluster_clients ⇒ Array<GlusterClient>
Returns the value of the gluster_clients
attribute.
41688 41689 41690 |
# File 'lib/ovirtsdk4/types.rb', line 41688 def gluster_clients @gluster_clients end |
#gluster_clients=(list) ⇒ Object
Sets the value of the gluster_clients
attribute.
41697 41698 41699 41700 41701 41702 41703 41704 41705 41706 41707 |
# File 'lib/ovirtsdk4/types.rb', line 41697 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.
41992 41993 41994 41995 41996 41997 41998 41999 42000 42001 |
# File 'lib/ovirtsdk4/types.rb', line 41992 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.
41714 41715 41716 |
# File 'lib/ovirtsdk4/types.rb', line 41714 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
41723 41724 41725 |
# File 'lib/ovirtsdk4/types.rb', line 41723 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
41732 41733 41734 |
# File 'lib/ovirtsdk4/types.rb', line 41732 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.
41745 41746 41747 41748 41749 41750 |
# File 'lib/ovirtsdk4/types.rb', line 41745 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.
41757 41758 41759 |
# File 'lib/ovirtsdk4/types.rb', line 41757 def memory_pools @memory_pools end |
#memory_pools=(list) ⇒ Object
Sets the value of the memory_pools
attribute.
41766 41767 41768 41769 41770 41771 41772 41773 41774 41775 41776 |
# File 'lib/ovirtsdk4/types.rb', line 41766 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.
41783 41784 41785 |
# File 'lib/ovirtsdk4/types.rb', line 41783 def @mnt_options end |
#mnt_options=(value) ⇒ Object
Sets the value of the mnt_options
attribute.
41792 41793 41794 |
# File 'lib/ovirtsdk4/types.rb', line 41792 def (value) @mnt_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
41801 41802 41803 |
# File 'lib/ovirtsdk4/types.rb', line 41801 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
41810 41811 41812 |
# File 'lib/ovirtsdk4/types.rb', line 41810 def name=(value) @name = value end |
#pid ⇒ Integer
Returns the value of the pid
attribute.
41819 41820 41821 |
# File 'lib/ovirtsdk4/types.rb', line 41819 def pid @pid end |
#pid=(value) ⇒ Object
Sets the value of the pid
attribute.
41828 41829 41830 |
# File 'lib/ovirtsdk4/types.rb', line 41828 def pid=(value) @pid = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
41837 41838 41839 |
# File 'lib/ovirtsdk4/types.rb', line 41837 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
41846 41847 41848 |
# File 'lib/ovirtsdk4/types.rb', line 41846 def port=(value) @port = value end |
#template ⇒ Template
Returns the value of the template
attribute.
41855 41856 41857 |
# File 'lib/ovirtsdk4/types.rb', line 41855 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.
41868 41869 41870 41871 41872 41873 |
# File 'lib/ovirtsdk4/types.rb', line 41868 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.
41880 41881 41882 |
# File 'lib/ovirtsdk4/types.rb', line 41880 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.
41893 41894 41895 41896 41897 41898 |
# File 'lib/ovirtsdk4/types.rb', line 41893 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.
41905 41906 41907 |
# File 'lib/ovirtsdk4/types.rb', line 41905 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms
attribute.
41914 41915 41916 41917 41918 41919 41920 41921 41922 41923 41924 |
# File 'lib/ovirtsdk4/types.rb', line 41914 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 |