class OvirtSDK4::GlusterClient

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {GlusterClient} class.

@param opts [Hash] 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.

@option opts [Integer] :bytes_read The value of attribute `bytes_read`.

@option opts [Integer] :bytes_written The value of attribute `bytes_written`.

@option opts [Integer] :client_port The value of attribute `client_port`.

@option opts [String] :host_name The value of attribute `host_name`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 3322
def initialize(opts = {})
  super(opts)
  self.bytes_read = opts[:bytes_read]
  self.bytes_written = opts[:bytes_written]
  self.client_port = opts[:client_port]
  self.host_name = opts[:host_name]
end

Public Instance Methods

bytes_read() click to toggle source

Returns the value of the `bytes_read` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 3239
def bytes_read
  return @bytes_read
end
bytes_read=(value) click to toggle source

Sets the value of the `bytes_read` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 3248
def bytes_read=(value)
  @bytes_read = value
end
bytes_written() click to toggle source

Returns the value of the `bytes_written` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 3257
def bytes_written
  return @bytes_written
end
bytes_written=(value) click to toggle source

Sets the value of the `bytes_written` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 3266
def bytes_written=(value)
  @bytes_written = value
end
client_port() click to toggle source

Returns the value of the `client_port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 3275
def client_port
  return @client_port
end
client_port=(value) click to toggle source

Sets the value of the `client_port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 3284
def client_port=(value)
  @client_port = value
end
host_name() click to toggle source

Returns the value of the `host_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3293
def host_name
  return @host_name
end
host_name=(value) click to toggle source

Sets the value of the `host_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3302
def host_name=(value)
  @host_name = value
end