models.group module

class models.group.Group(created_time_msecs=None, description=None, domain=None, last_updated_time_msecs=None, name=None, restricted=None, roles=None, sid=None, smb_principals=None, tenant_ids=None, usernames=None, users=None)[source]

Bases: object

Implementation of the ‘Group’ model.

Specifies details about the group.

Attributes:
created_time_msecs (long|int): Specifies the epoch time in

milliseconds when the group was created/added.

description (string): Specifies a description of the group. domain (string): Specifies the domain of the group. last_updated_time_msecs (long|int): Specifies the epoch time in

milliseconds when the group was last modified.

name (string): Specifies the name of the group. restricted (bool): Whether the group is a restricted group. Users

belonging to a restricted group can only view objects they have permissions to.

roles (list of string): Array of Roles. Specifies the Cohesity roles

to associate with the group such as ‘Admin’, ‘Ops’ or ‘View’. The Cohesity roles determine privileges on the Cohesity Cluster for all the users in this group.

sid (string): Specifies the unique Security ID (SID) of the group. smb_principals (list of SmbPrincipal): Specifies the SMB principals.

Principals will be added to this group only if IsSmbPrincipalOnly set to true.

tenant_ids (list of string): Specifies the tenants to which the group

belongs to. If not specified, session user’s tenant id is assumed.

usernames (list of string): Specifies the username of users who are

members of the group. This field is used only for local groups.

users (list of string): Specifies the SID of users who are members of

the group. This field is used only for local groups.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.