Class: MintPress::Console::Client

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/mintpress-console/lib/mintpress-console/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_passwordObject (readonly)

Returns the value of attribute api_password.

#api_urlObject (readonly)

Returns the value of attribute api_url.

#api_usernameObject (readonly)

Returns the value of attribute api_username.

Instance Method Details

#databagsObject

Data Bags

#environmentsObject

Environments

#full_url(path) ⇒ Object

#get_password(env, key) ⇒ Object

#get_tokenObject

#http_delete(path, headers = {}) ⇒ Object

#http_get(path, headers = {}) ⇒ Object

#http_get_with_token(path, token = nil) ⇒ Object

#http_patch(path, payload = nil, headers = {}) ⇒ Object

#http_post(path, payload, headers = {}) ⇒ Object

#http_post_with_token(path, payload) ⇒ Object

#http_put(path, payload = nil, headers = {}) ⇒ Object

#instancesObject

ServiceCatalog Instances

#nodesObject

Nodes

#providersObject

InfrastructureProviders Instances

#raise_http_exception(caught_exception, path) ⇒ Object

Raises:

  • (exception)

#refreshObject

#request_headers(opts = {}) ⇒ Object

#secretsObject

#servicecatalogObject

#valid_uri?(uri) ⇒ Boolean

Returns:

  • (Boolean)

#validate_client_options!Object

client methods

Raises:

  • (ArgumentError)