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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#device ⇒ String
Returns the value of the
deviceattribute. -
#device=(value) ⇒ Object
Sets the value of the
deviceattribute. -
#fs_name ⇒ String
Returns the value of the
fs_nameattribute. -
#fs_name=(value) ⇒ Object
Sets the value of the
fs_nameattribute. -
#gluster_clients ⇒ Array<GlusterClient>
Returns the value of the
gluster_clientsattribute. -
#gluster_clients=(list) ⇒ Object
Sets the value of the
gluster_clientsattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ GlusterBrickAdvancedDetails
constructor
Creates a new instance of the GlusterBrickAdvancedDetails class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#memory_pools ⇒ Array<GlusterMemoryPool>
Returns the value of the
memory_poolsattribute. -
#memory_pools=(list) ⇒ Object
Sets the value of the
memory_poolsattribute. -
#mnt_options ⇒ String
Returns the value of the
mnt_optionsattribute. -
#mnt_options=(value) ⇒ Object
Sets the value of the
mnt_optionsattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#pid ⇒ Integer
Returns the value of the
pidattribute. -
#pid=(value) ⇒ Object
Sets the value of the
pidattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#vms ⇒ Array<Vm>
Returns the value of the
vmsattribute. -
#vms=(list) ⇒ Object
Sets the value of the
vmsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterBrickAdvancedDetails
Creates a new instance of the OvirtSDK4::GlusterBrickAdvancedDetails class.
42257 42258 42259 42260 42261 42262 42263 42264 42265 42266 |
# File 'lib/ovirtsdk4/types.rb', line 42257 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.
42271 42272 42273 42274 42275 42276 42277 42278 42279 42280 |
# File 'lib/ovirtsdk4/types.rb', line 42271 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.
41909 41910 41911 |
# File 'lib/ovirtsdk4/types.rb', line 41909 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
41918 41919 41920 |
# File 'lib/ovirtsdk4/types.rb', line 41918 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
41927 41928 41929 |
# File 'lib/ovirtsdk4/types.rb', line 41927 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
41936 41937 41938 |
# File 'lib/ovirtsdk4/types.rb', line 41936 def description=(value) @description = value end |
#device ⇒ String
Returns the value of the device attribute.
41945 41946 41947 |
# File 'lib/ovirtsdk4/types.rb', line 41945 def device @device end |
#device=(value) ⇒ Object
Sets the value of the device attribute.
41954 41955 41956 |
# File 'lib/ovirtsdk4/types.rb', line 41954 def device=(value) @device = value end |
#fs_name ⇒ String
Returns the value of the fs_name attribute.
41963 41964 41965 |
# File 'lib/ovirtsdk4/types.rb', line 41963 def fs_name @fs_name end |
#fs_name=(value) ⇒ Object
Sets the value of the fs_name attribute.
41972 41973 41974 |
# File 'lib/ovirtsdk4/types.rb', line 41972 def fs_name=(value) @fs_name = value end |
#gluster_clients ⇒ Array<GlusterClient>
Returns the value of the gluster_clients attribute.
41981 41982 41983 |
# File 'lib/ovirtsdk4/types.rb', line 41981 def gluster_clients @gluster_clients end |
#gluster_clients=(list) ⇒ Object
Sets the value of the gluster_clients attribute.
41990 41991 41992 41993 41994 41995 41996 41997 41998 41999 42000 |
# File 'lib/ovirtsdk4/types.rb', line 41990 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.
42285 42286 42287 42288 42289 42290 42291 42292 42293 42294 |
# File 'lib/ovirtsdk4/types.rb', line 42285 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.
42007 42008 42009 |
# File 'lib/ovirtsdk4/types.rb', line 42007 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
42016 42017 42018 |
# File 'lib/ovirtsdk4/types.rb', line 42016 def id=(value) @id = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type attribute.
42025 42026 42027 |
# File 'lib/ovirtsdk4/types.rb', line 42025 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.
42038 42039 42040 42041 42042 42043 |
# File 'lib/ovirtsdk4/types.rb', line 42038 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.
42050 42051 42052 |
# File 'lib/ovirtsdk4/types.rb', line 42050 def memory_pools @memory_pools end |
#memory_pools=(list) ⇒ Object
Sets the value of the memory_pools attribute.
42059 42060 42061 42062 42063 42064 42065 42066 42067 42068 42069 |
# File 'lib/ovirtsdk4/types.rb', line 42059 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.
42076 42077 42078 |
# File 'lib/ovirtsdk4/types.rb', line 42076 def @mnt_options end |
#mnt_options=(value) ⇒ Object
Sets the value of the mnt_options attribute.
42085 42086 42087 |
# File 'lib/ovirtsdk4/types.rb', line 42085 def (value) @mnt_options = value end |
#name ⇒ String
Returns the value of the name attribute.
42094 42095 42096 |
# File 'lib/ovirtsdk4/types.rb', line 42094 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
42103 42104 42105 |
# File 'lib/ovirtsdk4/types.rb', line 42103 def name=(value) @name = value end |
#pid ⇒ Integer
Returns the value of the pid attribute.
42112 42113 42114 |
# File 'lib/ovirtsdk4/types.rb', line 42112 def pid @pid end |
#pid=(value) ⇒ Object
Sets the value of the pid attribute.
42121 42122 42123 |
# File 'lib/ovirtsdk4/types.rb', line 42121 def pid=(value) @pid = value end |
#port ⇒ Integer
Returns the value of the port attribute.
42130 42131 42132 |
# File 'lib/ovirtsdk4/types.rb', line 42130 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
42139 42140 42141 |
# File 'lib/ovirtsdk4/types.rb', line 42139 def port=(value) @port = value end |
#template ⇒ Template
Returns the value of the template attribute.
42148 42149 42150 |
# File 'lib/ovirtsdk4/types.rb', line 42148 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.
42161 42162 42163 42164 42165 42166 |
# File 'lib/ovirtsdk4/types.rb', line 42161 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.
42173 42174 42175 |
# File 'lib/ovirtsdk4/types.rb', line 42173 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.
42186 42187 42188 42189 42190 42191 |
# File 'lib/ovirtsdk4/types.rb', line 42186 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.
42198 42199 42200 |
# File 'lib/ovirtsdk4/types.rb', line 42198 def vms @vms end |
#vms=(list) ⇒ Object
Sets the value of the vms attribute.
42207 42208 42209 42210 42211 42212 42213 42214 42215 42216 42217 |
# File 'lib/ovirtsdk4/types.rb', line 42207 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 |