Class: MintPress::Console::Client
- Inherits:
-
Object
- Object
- MintPress::Console::Client
- 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
-
#api_password ⇒ Object
readonly
Returns the value of attribute api_password.
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
-
#api_username ⇒ Object
readonly
Returns the value of attribute api_username.
Instance Method Summary collapse
-
#databags ⇒ Object
Data Bags.
-
#environments ⇒ Object
Environments.
- #full_url(path) ⇒ Object
- #get_password(env, key) ⇒ Object
- #get_token ⇒ Object
- #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
-
#initialize(opts = nil) ⇒ Client
constructor
A new instance of Client.
-
#instances ⇒ Object
ServiceCatalog Instances.
-
#nodes ⇒ Object
Nodes.
-
#providers ⇒ Object
InfrastructureProviders Instances.
- #raise_http_exception(caught_exception, path) ⇒ Object
- #refresh ⇒ Object
- #request_headers(opts = {}) ⇒ Object
- #secrets ⇒ Object
- #servicecatalog ⇒ Object
- #valid_uri?(uri) ⇒ Boolean
-
#validate_client_options! ⇒ Object
client methods.
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_password ⇒ Object (readonly)
Returns the value of attribute api_password.
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url.
#api_username ⇒ Object (readonly)
Returns the value of attribute api_username.
Instance Method Details
#databags ⇒ Object
Data Bags
#environments ⇒ Object
Environments
#full_url(path) ⇒ Object
#get_password(env, key) ⇒ Object
#get_token ⇒ Object
#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
#instances ⇒ Object
ServiceCatalog Instances
#nodes ⇒ Object
Nodes
#providers ⇒ Object
InfrastructureProviders Instances
#raise_http_exception(caught_exception, path) ⇒ Object
#refresh ⇒ Object
#request_headers(opts = {}) ⇒ Object
#secrets ⇒ Object
#servicecatalog ⇒ Object
#valid_uri?(uri) ⇒ Boolean
#validate_client_options! ⇒ Object
client methods