The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::FreeIPA::Convert provides type conversion for Net::FreeIPA

Public methods

rpc_api

Before calling the rpc, convert args and option to their respective JSON type

Arguments are

command: the RPC command (passed to rpc method)
args: arrayref with arguments
args_names: arrayref with argument names (same order as args)
args_types: arrayref with argument types (same order as args)
opts: hashref with the options
opts_keys: arrayref with valid option keys. (All options starting with __ are passed as options to Net::FreeIPA::RPC::rpc, with __ prefix removed).
opts_types: arrayref with option types (same order as opts_keys).

Calls rpc with args refarray and opts hashref after conversion.

convert

Convert/cast value to type

If a type is not found in the dispatch tabel, log a warning and return the value as-is.