Class: OvirtSDK4::GlusterBrickAdvancedDetails

Inherits:
Device show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Direct Known Subclasses

GlusterBrick

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (GlusterBrickAdvancedDetails) initialize(opts = {})

Creates a new instance of the OvirtSDK4::GlusterBrickAdvancedDetails class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :device (String)

    The value of attribute device.

  • :fs_name (String)

    The value of attribute fs_name.

  • :gluster_clients (Array<GlusterClient>, Array<Hash>)

    The values of attribute gluster_clients.

  • :id (String)

    The value of attribute id.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :memory_pools (Array<GlusterMemoryPool>, Array<Hash>)

    The values of attribute memory_pools.

  • :mnt_options (String)

    The value of attribute mnt_options.

  • :name (String)

    The value of attribute name.

  • :pid (Integer)

    The value of attribute pid.

  • :port (Integer)

    The value of attribute port.

  • :template (Template, Hash)

    The value of attribute template.

  • :vm (Vm, Hash)

    The value of attribute vm.

  • :vms (Array<Vm>, Array<Hash>)

    The values of attribute vms.



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.mnt_options = 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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


30212
30213
30214
# File 'lib/ovirtsdk4/types.rb', line 30212

def mnt_options
  return @mnt_options
end

- (Object) mnt_options=(value)

Sets the value of the mnt_options attribute.

Parameters:

  • value (String)


30221
30222
30223
# File 'lib/ovirtsdk4/types.rb', line 30221

def mnt_options=(value)
  @mnt_options = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (Vm, Hash)


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.

Returns:

  • (Array<Vm>)


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.

Parameters:

  • list (Array<Vm>)


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