Zabbix usergroup objects
use Zabbix::API::UserGroup; my $group = $zabbix->fetch(...); $group->delete;
Handles \s-1CRUD\s0 for Zabbix usergroup objects.
This is a very simple subclass of \*(C`Zabbix::API::CRUDE\*(C'. Only the required methods are implemented (and in a very simple fashion on top of that).
Accessor for the usergroup's name (the \*(L"name\*(R" attribute); returns the empty string if no name is set, for instance if the usergroup has not been created on the server yet.
Mutator for the usergroup's users.
This method handles extraneous \*(C`user => Zabbix::API::User\*(C' attributes in the users array, transforming them into \*(C`userid\*(C' attributes, and pushing the users to the server if they don't exist already. The original user attributes are kept but hidden from the \*(C`CRUDE\*(C' \*(C`push\*(C' method, and restored after the \*(C`pull\*(C' method is called. This means you can put \*(C`Zabbix::API::User\*(C' objects in your data and the module will Do The Right Thing (assuming you agree with my definition of the Right Thing). Users that have been created this way will not be removed from the server if they are removed from the graph, however. Overriden from \*(C`Zabbix::API::CRUDE\*(C'.
Zabbix::API::CRUDE.
Fabrice Gabolde <[email protected]>
Copyright (C) 2013 \s-1SFR\s0
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.