-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SK-1749: Updated token mode in insert request
- Loading branch information
1 parent
c4e693e
commit 3c3161f
Showing
11 changed files
with
63 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .env import Env, EnvUrls | ||
from .log_level import LogLevel | ||
from .content_types import ContentType | ||
from .token_strict import TokenStrict | ||
from .token_mode import TokenMode | ||
from .method import Method | ||
from .redaction_type import RedactionType |
4 changes: 1 addition & 3 deletions
4
skyflow/utils/enums/token_strict.py → skyflow/utils/enums/token_mode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
from enum import Enum | ||
|
||
from skyflow.generated.rest import V1BYOT | ||
|
||
|
||
class TokenStrict(Enum): | ||
class TokenMode(Enum): | ||
DISABLE = V1BYOT.DISABLE | ||
ENABLE = V1BYOT.ENABLE | ||
ENABLE_STRICT = V1BYOT.ENABLE_STRICT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
from skyflow.utils.enums import TokenStrict | ||
|
||
from skyflow.utils.enums import TokenMode | ||
|
||
class UpdateRequest: | ||
def __init__(self, table, data, tokens = None, return_tokens = False, token_strict = TokenStrict.DISABLE): | ||
def __init__(self, table, data, tokens = None, return_tokens = False, token_mode = TokenMode.DISABLE): | ||
self.table = table | ||
self.data = data | ||
self.tokens = tokens | ||
self.return_tokens = return_tokens | ||
self.token_strict = token_strict | ||
self.token_mode = token_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters