-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgooglevault_consts.py
More file actions
71 lines (66 loc) · 4.54 KB
/
Copy pathgooglevault_consts.py
File metadata and controls
71 lines (66 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File: googlevault_consts.py
#
# Copyright (c) 2019-2026 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
GOOGLE_SCOPE = "https://www.googleapis.com/auth/ediscovery"
GOOGLE_SCOPE_READONLY = "https://www.googleapis.com/auth/ediscovery.readonly"
GOOGLE_ORGANIZATIONS_SCOPE_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"
GOOGLE_SCOPE_GROUP_READONLY = "https://www.googleapis.com/auth/admin.directory.group.readonly"
GSVAULT_INVALID_LIMIT = "Please provide non-zero positive integer in {param}"
GSVAULT_TIME_FORMAT_ERROR = "Please provide date/time in '%Y-%m-%dT%H:%M:%SZ' format"
GSVAULT_TIME_RANGE_ERROR = "The given time range is incorrect"
GSVAULT_CORPUS_GROUPS_ERROR = "You have to provide either group_account_ids or org_unit_id for corpus type GROUPS "
GSVAULT_CORPUS_GROUPS_ERROR += "If you want to create a hold for search method ALL_GROUPS you have to provide org_unit_id of that group"
GSVAULT_CORPUS_GROUPS_ERROR += "and for search method GROUP_ACCOUNT you have to provide group_ids)"
GSVAULT_CORPUS_MAIL_DRIVE_HOLD_ERROR = "You have to provide either email_ids or org_unit_id for corpus type MAIL or DRIVE "
GSVAULT_CORPUS_MAIL_DRIVE_HOLD_ERROR += "If you want to create a hold for search method USER_ACCOUNT you have to provide email_ids of that users"
GSVAULT_CORPUS_MAIL_DRIVE_HOLD_ERROR += "and for search method ORG_UNIT you have to provide org_unit_id)"
GSVAULT_CORPUS_MAIL_DRIVE_EXPORT_ERROR = "You have to provide either ORG_UNIT or ACCOUNT for corpus type MAIL"
CREATE_GOOGLE_VAULT_CLIENT = "Creating Google Vault client..."
TEST_CONNECTIVITY_FAILED = "Test Connectivity Failed"
MAKING_TEST_CALL_GOOGLE_VAULT = "Making test call to Google Vault for fetching the list of matters..."
TEST_CONNECTIVITY_PASSED = "Test Connectivity Passed"
ERROR_WHILE_LISTING_MATTERS = "Error while listing matters"
ERROR_WHILE_CREATING_MATTER = "Error while creating matter"
ERROR_WHILE_FETCHING_MATTER = "Error while fetching matter"
ERROR_WHILE_CLOSING_MATTER = "Error while closing matter"
ERROR_WHILE_DELETING_MATTER = "Error while deleting matter"
ERROR_WHILE_RESTORING_MATTER = "Error while restoring matter"
ERROR_WHILE_REOPENING_MATTER = "Error while reopening matter"
ERROR_WHILE_CREATING_HOLD = "Error while creating hold"
ERROR_WHILE_DELETING_HOLD = "Error while deleting hold"
ERROR_WHILE_LISTING_HOLDS = "Error while listing holds"
ERROR_WHILE_ADDING_HELD_ACCOUNT = "Error while adding held account to hold for given matter ID"
ERROR_WHILE_REMOVING_HELD_ACCOUNT = "Error while removing held account to hold for given matter ID"
ERROR_WHILE_CREATING_EXPORT = "Error while creating export"
ERROR_WHILE_LISTING_EXPORTS = "Error while listing exports"
ERROR_WHILE_FETCHING_EXPORT = "Error while fetching export"
INVALID_INT = "Please provide a valid integer value in the {param}"
ERROR_NEGATIVE_INT_PARAM = "Please provide a valid non-negative integer value in the {param}"
GOOGLE_VAULT_EXCEPTION = "Google vault exception: "
NO_DATA_FOUND = "No data found"
INVALID_ORI_UNI_ID = "Please provide a valid org_unit_id for search method ORG_UNIT"
INVALID_USER_EMAILS = "Please provide a valid list of user emails for search method ACCOUNT"
INVALID_USER_ID = "Please provide a valid list of shared drive ids for search method TEAM_DRIVE"
INVALID_ACCOUNT_SELECT = "Please select ACCOUNT search method for corpus type GROUPS"
INVALID_UNPROCESSED_DATA = "UNPROCESSED_DATA data scope is not allowed for corpus type DRIVE"
INVALID_HELD_DATA = "TEAM_DRIVE search method is not allowed for corpus type DRIVE and data scope HELD_DATA"
INVALID_GROUP_ACC = "Please provide a valid list of group account ID for search method GROUP_ACCOUNT"
INVALID_USER_ACCOUNT = "Please provide a valid list of user emails for search method USER_ACCOUNT"
FAILED_CREATE_GVAULT = "Failed to create the Google Vault client"
SUCCESS_ADDED_HELD_ACCOUNT = "Successfully added held account to {hold_id} hold id for {matter_id} matter id"
SUCCESS_REMOVED_HELD_ACCOUNT = "Successfully removed held account from {hold_id} hold id for {matter_id} matter id"
DEFAULT_LIMIT = 100
DEFAULT_BOOL_STATE = 0
DEFAULT_TIMEOUT = 30
REQUEST_TIMEOUT = 600