Sort according to parent attribute.
Sort arrayref of names with data from items using parent attr.
names
items
attr
Convenience wrapper for direct REST calls for method, operation and options ropts.
method
operation
ropts
Return the ID of an operation. If the name is an ID, return the ID without a lookup. If the operation is 'region', return the name.
Options
Function to initialise tagstore or return cached version based on tagstore project name.
Function to postprocess sync operations when a tagstore is used.
For an operation (like user, group, service, ...), given an hashref of items (key is the name), compare it with all existing items:
user
group
service
Returns a hasref with responses for the created items. The keys are create, update and delete and the values an arrayref of responses.
create
update
delete
For endpoint operations, as they have no name, use the <<interface_<url>>> as the name for the items hashref.
endpoint
<<interface
Following options are supported:
Retrieve and augment an item with name from hashref items.
name
Modification to the data
Helper function for all 3 sync phases
res is updated in place.
res
Returns 1 on success, undef otherwise (and reports an error).
Create operation items in arrayref tocreate from configured items (using name attriute nameattr), with result hashref res. res is updated in place.
tocreate
nameattr
postprocess is a anonymous function called after a succesful REST call, and is passed following arguments:
postprocess
Update operation items in arrayref checkupdate from found items with configured items, with result hashref res. res is updated in place.
checkupdate
found
Delete (or disable) operation items in arrayref toremove from found existing items, with options opts (for delete and ignore) and result hashref res. res is updated in place.
toremove
opts
ignore
When ignore option is true, nothing will happen. When delete is true, items will be delete; when items will be disabled.
Add missing roles for project/domain and group/user, and delete any when tagstore is used.
The roles are defined with a nested hashref, like the url is structured (with an arrayref of roles as value). E.g. $roles = { domain => { dom1 => { user => { user1 => [role1 role2], ... }, group => { ... }, }, ... project => { ... }, }
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.