Class: OracleZFS::Client

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/oracle-zfs-client/lib/oracle-zfs/client.rb

Properties (Read/Write)

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(opts = nil) ⇒ Client

Returns a new instance of Client.

Instance Attribute Details

#api_urlObject (readonly)

Returns the value of attribute api_url.

#passwordObject (readonly)

Returns the value of attribute password.

#usernameObject (readonly)

Returns the value of attribute username.

Instance Method Details

#authenticate!Object

#authenticated?Boolean

Returns:

  • (Boolean)

#full_url(path) ⇒ Object

#hardware_servicesObject

#http_delete(path) ⇒ Object

#http_get(url) ⇒ Object

#http_post(path, payload) ⇒ Object

#http_put(path, payload = nil) ⇒ Object

#raise_http_exception(caught_exception, path) ⇒ Object

Raises:

  • (exception)

#replication_servicesObject

#request_headers(opts = {}) ⇒ Object

#storage_servicesObject

methods to other API objects

#system_commandsObject

#user_servicesObject

#valid_uri?(uri) ⇒ Boolean

Returns:

  • (Boolean)

#validate_client_options!Object

client methods

Raises:

  • (ArgumentError)