Trusted Activities (DEPRECATED)
Warning
Incydr functionality is deprecated. Use the resources at https://developer.code42.com/ instead.
- class py42.clients.trustedactivities.TrustedActivityType
Bases:
ChoicesConstants available for setting the type of a trusted activity.
DOMAINSLACK
- class py42.clients.trustedactivities.TrustedActivitiesClient(trusted_activities_service)
Bases:
objectA client to expose the trusted activities/data preferences API
- create(type, value, description=None)
Gets all trusted activities with the given type. Rest documentation
- Parameters:
type (str) – Type of the trusted activity. Constants available at
py42.constants.TrustedActivityType.value (str) – The URL of the domain or name of the Slack workspace.
description (str, optional) – Description of the trusted activity.
- Returns:
- delete(id)
Deletes a trusted activity by given resource number. Rest documentation
- Parameters:
id (int) – Resource number of the trusted activity or domain.
- Returns:
- get(id)
Retrieve trusted activity details by given resource number. Rest documentation
- Parameters:
id (int) – Resource number of the trusted activity or domain.
- Returns:
- get_all(type=None, page_size=None)
Gets all trusted activities. Rest documentation
- Parameters:
type (str, optional) – Type of the trusted activity. Defaults to None. Constants available at
py42.constants.TrustedActivityType.page_size (int, optional) – Number of results to return per page. Defaults to 100.
- Returns:
An object that iterates over
py42.response.Py42Responseobjects that each contain a page of cases.- Return type:
generator
- update(id, value=None, description=None)
Updates trusted activity details by given resource number. Rest documentation
- Parameters:
id (int) – Resource number of the trusted activity.
value (str, optional) – The URL of the domain or name of the Slack workspace.
description (str, optional) – Description of the trusted activity.
- Returns: