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 4143
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

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 4154
def ==(other)
  super &&
  @bytes_read == other.bytes_read &&
  @bytes_written == other.bytes_written &&
  @client_port == other.client_port &&
  @host_name == other.host_name
end
bytes_read() click to toggle source

Returns the value of the `bytes_read` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 4060
def bytes_read
  @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 4069
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 4078
def bytes_written
  @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 4087
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 4096
def client_port
  @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 4105
def client_port=(value)
  @client_port = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 4165
def hash
  super +
  @bytes_read.hash +
  @bytes_written.hash +
  @client_port.hash +
  @host_name.hash
end
host_name() click to toggle source

Returns the value of the `host_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4114
def host_name
  @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 4123
def host_name=(value)
  @host_name = value
end