NAME
Net::OpenStack::Client::API::Convert provides type conversion for Net::OpenStack
Public functions
- convert
-
Convert/cast value to type.
If a type is not found in the dispatch table, log a warning and return the value as-is.
Always returns value, dies when dealing with non-convertable type (using 'FATAL numeric').
- check_option
-
Given the (single) option hashref
option
andvalue
, verify the value, convert it and add it towhere
.(Adding to where is required to avoid using intermediadate variables which can cause problems for the internal types).
Returns errormessage (which is undef on success).
- process_args
-
Given the command hashref
cmdhs
and the arguments passed, return Request instance.Command hashref
- endpoint
- method
- templates (optional)
- parameters (optional)
- options (optional)
-
(All options starting with
__
are passed as options toNet::OpenStack::Client::REST::rest
, with__
prefix removed).
Request instance:
- error: an error message in case of failure
- tpls: hashref with templates for endpoint
- params: hashref with parameters for endpoint
- opts: hashref with options
- rest: hashref with options for the REST call
Values are converted using
convert
function.