Class: OvirtSDK4::GlusterClient

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (GlusterClient) initialize(opts = {})

Creates a new instance of the OvirtSDK4::GlusterClient 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):

  • :bytes_read (Integer)

    The value of attribute bytes_read.

  • :bytes_written (Integer)

    The value of attribute bytes_written.

  • :client_port (Integer)

    The value of attribute client_port.

  • :host_name (String)

    The value of attribute host_name.



2953
2954
2955
2956
2957
2958
2959
# File 'lib/ovirtsdk4/types.rb', line 2953

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

Instance Method Details

- (Integer) bytes_read

Returns the value of the bytes_read attribute.

Returns:

  • (Integer)


2870
2871
2872
# File 'lib/ovirtsdk4/types.rb', line 2870

def bytes_read
  return @bytes_read
end

- (Object) bytes_read=(value)

Sets the value of the bytes_read attribute.

Parameters:

  • value (Integer)


2879
2880
2881
# File 'lib/ovirtsdk4/types.rb', line 2879

def bytes_read=(value)
  @bytes_read = value
end

- (Integer) bytes_written

Returns the value of the bytes_written attribute.

Returns:

  • (Integer)


2888
2889
2890
# File 'lib/ovirtsdk4/types.rb', line 2888

def bytes_written
  return @bytes_written
end

- (Object) bytes_written=(value)

Sets the value of the bytes_written attribute.

Parameters:

  • value (Integer)


2897
2898
2899
# File 'lib/ovirtsdk4/types.rb', line 2897

def bytes_written=(value)
  @bytes_written = value
end

- (Integer) client_port

Returns the value of the client_port attribute.

Returns:

  • (Integer)


2906
2907
2908
# File 'lib/ovirtsdk4/types.rb', line 2906

def client_port
  return @client_port
end

- (Object) client_port=(value)

Sets the value of the client_port attribute.

Parameters:

  • value (Integer)


2915
2916
2917
# File 'lib/ovirtsdk4/types.rb', line 2915

def client_port=(value)
  @client_port = value
end

- (String) host_name

Returns the value of the host_name attribute.

Returns:

  • (String)


2924
2925
2926
# File 'lib/ovirtsdk4/types.rb', line 2924

def host_name
  return @host_name
end

- (Object) host_name=(value)

Sets the value of the host_name attribute.

Parameters:

  • value (String)


2933
2934
2935
# File 'lib/ovirtsdk4/types.rb', line 2933

def host_name=(value)
  @host_name = value
end