Group of Groups Tree

The GroupOfGrouspTre represents a Group of Groups tree.

class newsbinpro_client.groupofgroupstree.GroupOfGroupsTree

Bases: object

Represents a tree structure to manage groups of groups.

Methods:
__init__:

Initializes an instance of the GroupOfGroupsTree class.

group_of_group_names:

Property that returns the names of all the groups of groups.

get_group_of_groups_children:

Retrieves the children (group names) associated with a specific group of groups name.

add:

Adds a new group name under a specific group of groups name.

add(group_of_groups_name: str, group_name: str) None
Parameters:
  • group_of_groups_name – The name of the group of groups where the new group will be added.

  • group_name – The name of the group to be added to the specified group of groups.

Returns:

None

get_group_of_groups_children(group_of_group_name: str) list
Parameters:

group_of_group_name – The name of the group of groups whose children groups are to be retrieved.

Returns:

A list of child groups associated with the specified group of groups, or an empty list if no children exist.

property group_of_group_names
Returns:

A sequence of group names representing the keys of the group_of_groups dictionary.