Net::OpenStack::Client::Request is an request class for Net::OpenStack.
Boolean logic is overloaded using _boolean method (as inverse of is_error).
_boolean
is_error
A Net::OpenStack::Client::Request factory
Net::OpenStack::Client::Request
Parse endpoint and look for templates and parameters.
endpoint
Return (possibly modified) endpoint, arrayref of template names and arrayref of parameter names.
If logger is passed, report an error and return; else die on failure.
logger
Create new request instance from options for command endpoint and REST HTTP method.
method
The endpoint is the URL to use (can be templated with tpls)
tpls
Options
Parses the endpoint attribute, look for any templates, and replace them with values from tpls attribute hashref. Any parameters defined in the endpoint are removed, and only those that are present in the params attribute are readded with the values from the attribute.
params
The data can contain more keys than what is required for templating, those keys and their values will be ignored.
This does not modify the endpoint attribute.
Return templated endpoint on success or undef on failure.
If host is defined, try to make a full URL
Generate hashref from options, to be used for JSON encoding. If raw attribute is defined, ignore all options and return it.
raw
Returns empty hasref, even if no options existed.
Return headers for the request.
Supported options:
Test if this is an error or not (based on error attribute).
To install Net::OpenStack::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OpenStack::Client
CPAN shell
perl -MCPAN -e shell install Net::OpenStack::Client
For more information on module installation, please visit the detailed CPAN module installation guide.