0.7.0 - 2020-04-10
Removed
- Parameter
classification
removed fromOrgClient.create_org()
- Parameter
legal_hold_membership_uid
removed fromLegalHoldClient.get_all_matter_custodians()
- Removed
ArchiveClient
. UseArchiveModule
. - Removed function
ArchiveModule.get_data_key_token()
. - Removed function
ArchiveModule.get_web_restore_info()
. - Parameter
classification
removed fromOrgClient.create_org()
. - Parameter
legal_hold_membership_uid
removed fromLegalHoldClient.get_all_matter_custodians()
. - Removed
SecurityClient
. UseSecurityModule
.
Changed
- Parameter
active_state
was renamed toactive
and now accepts (True, False, or None)
instead of ("ACTIVE", "INACTIVE", or "ALL") on the followingLegalHoldClient
methods:get_all_matters()
get_all_matter_custodians()
- Parameter
storageaccess
was removed fromSDKClient
. To restore files, just use
SDKClient.archive.stream_from_backup()
. - Parameter
active_state
was renamed toactive
and now accepts (True, False, or None)
instead of ("ACTIVE", "INACTIVE", or "ALL") on the followingLegalHoldClient
methods:get_all_matters()
get_all_matter_custodians()
py42.sdk.archive.stream_from_backup()
now raisesPy42ArchiveFileNotFoundError
when it does not find a file.py42.sdk.alerts
andpy42.sdk.detectionlists
raisePy42SessionInitializationError
if they are unable to
connect to the necessary microservice andPy42FeatureUnavailableError
if their environment does not support
the microservice.py42.sdk.securitydata.get_security_plan_storage_info_list()
raisesPy42SecurityPlanConnectionError
if it can't
connect to get plan info.- Storage node connection issues may raise
Py42StorageSessionInitializationError
. - All requests may raise a subclass of
Py42HTTPError
denoting which type of HTTP error it is:Py42BadRequestError
Py42UnauthorizedError
Py42ForbiddenError
Py42NotFoundError
Py42InternalServerError
py42.modules.ArchiveModule
methods:get_all_device_restore_history()
(formerlyget_restore_history_by_device_id()
)get_all_user_restore_history()
(formerlyget_restore_history_by_user_id()
)get_all_org_restore_history()
(formerlyget_restore_history_by_org_id()
)
now all return generator objects that handle paging through restore history.
- Renamed
AlertClient.get_query_details()
toAlertClient.get_details()
. - Renamed
SecurityModule.get_plan_security_events()
toget_all_plan_security_events()
. - Renamed
SecurityModule.get_user_security_events()
toget_all_user_security_events()
.
Added
- py42 specific exceptions at new module
py42.sdk.exceptions
:Py42Error
Py42ArchiveFileNotFoundError
Py42SessionInitializationError
Py42FeatureUnavailableError
Py42SecurityPlanConnectionError
Py42HTTPError
Py42BadRequestError
Py42UnauthorizedError
Py42ForbiddenError
Py42NotFoundError
Py42InternalServerError
- Parameters
archive_password
andencryption_key
added toArchiveModule.stream_from_backup()
.