You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INVALID_IDS_TYPE=f"{error_prefix} Validation error. 'ids' has a value of type {{}}. Specify 'ids' as list."
125
-
INVALID_REDACTION_TYPE=f"{error_prefix} Validation error. 'redaction' has a value of type {{}}. Specify 'redaction' as type Skyflow.RedactionType."
125
+
INVALID_REDACTION_TYPE=f"{error_prefix} Validation error. 'redaction_type' has a value of type {{}}. Specify 'redaction_type' as type Skyflow.RedactionType."
126
126
INVALID_COLUMN_NAME=f"{error_prefix} Validation error. column_name has a value of type {{}}. Specify 'column' as a string."
127
127
INVALID_COLUMN_VALUE=f"{error_prefix} Validation error. column_values key has a value of type {{}}. Specify column_values key as list."
128
128
INVALID_COLUMN_VALUES=f"{error_prefix} Validation error. column_values key is an empty list. Specify at least one column value when column_name is passed."
@@ -131,15 +131,15 @@ class Error(Enum):
131
131
INVALID_OFF_SET_VALUE=f"{error_prefix} Validation error. offset key has a value of type {{}}. Specify offset key as integer."
132
132
INVALID_LIMIT_VALUE=f"{error_prefix} Validation error. limit key has a value of type {{}}. Specify limit key as integer."
133
133
INVALID_DOWNLOAD_URL_VALUE=f"{error_prefix} Validation error. download_url key has a value of type {{}}. Specify download_url key as boolean."
134
-
REDACTION_WITH_TOKENS_NOT_SUPPORTED=f"{error_prefix} Validation error. 'redaction' can't be used when tokens are specified. Remove 'redaction' from payload if tokens are specified."
134
+
REDACTION_WITH_TOKENS_NOT_SUPPORTED=f"{error_prefix} Validation error. 'redaction_type' can't be used when tokens are specified. Remove 'redaction_type' from payload if tokens are specified."
135
135
TOKENS_GET_COLUMN_NOT_SUPPORTED=f"{error_prefix} Validation error. Column name and/or column values can't be used when tokens are specified. Remove unique column values or tokens from the payload."
136
136
BOTH_IDS_AND_COLUMN_DETAILS_SPECIFIED=f"{error_prefix} Validation error. Both Skyflow IDs and column details can't be specified. Either specify Skyflow IDs or unique column details."
137
137
INVALID_ORDER_BY_VALUE=f"{error_prefix} Validation error. order_by key has a value of type {{}}. Specify order_by key as Skyflow.OrderBy"
138
138
139
139
UPDATE_FIELD_KEY_ERROR=f"{error_prefix} Validation error. Fields are empty in an update payload. Specify at least one field."
140
140
INVALID_FIELDS_TYPE=f"{error_prefix} Validation error. The 'data' key has a value of type {{}}. Specify 'data' as a dictionary."
141
141
IDS_KEY_ERROR=f"{error_prefix} Validation error. 'ids' key is missing from the payload. Specify an 'ids' key."
142
-
INVALID_TOKENS_LIST_VALUE=f"{error_prefix} Validation error. The 'data' field is invalid. Specify 'data' as a list of dictionaries containing 'token' and 'redaction'."
142
+
INVALID_TOKENS_LIST_VALUE=f"{error_prefix} Validation error. The 'data' field is invalid. Specify 'data' as a list of dictionaries containing 'token' and 'redaction_type'."
143
143
INVALID_DATA_FOR_DETOKENIZE=f"{error_prefix}"
144
144
EMPTY_TOKENS_LIST_VALUE=f"{error_prefix} Validation error. Tokens are empty in detokenize payload. Specify at lease one token"
145
145
INVALID_TOKEN_TYPE=f"{ERROR}: [{error_prefix}] Invalid {{}} request. Tokens should be of type string."
@@ -417,6 +417,9 @@ class HttpStatus(Enum):
417
417
BAD_REQUEST="Bad Request"
418
418
419
419
classWarning(Enum):
420
+
DETOKENIZE_REDACTION_KEY_DEPRECATED= (
421
+
f"{WARN}: [{error_prefix}] 'redaction' key in detokenize data is deprecated and will be removed in a future version. Use 'redaction_type' instead."
422
+
)
420
423
UPDATE_LOG_LEVEL_DEPRECATED= (
421
424
f"{WARN}: [{error_prefix}] Skyflow.update_log_level() is deprecated. "
0 commit comments