google.cloud.forseti.common.gcp_type.groups_settings module

A GroupsSettings object.

See: https://developers.google.com/admin-sdk/groups-settings/v1/reference/groups

class GroupsSettings(email, whoCanAdd=None, whoCanJoin=None, whoCanViewMembership=None, whoCanViewGroup=None, whoCanInvite=None, allowExternalMembers=None, whoCanLeaveGroup=None)[source]

Bases: google.cloud.forseti.common.gcp_type.resource.Resource

Represents the GroupsSettings resource.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 208
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_json(email, settings)[source]

Returns a new GroupsSettingws object from a JSON object.

Parameters:
  • email (str) – The unique Gsuite Group email.
  • settings (str) – JSON string of a GroupsSettings Gsuites API response.
Returns:

A new GroupsSettings object.

Return type:

GroupsSettings