From a130899b30f0e9c826da9553963fb855c1f4b2a7 Mon Sep 17 00:00:00 2001 From: saileshwar-skyflow Date: Thu, 19 Sep 2024 11:36:33 +0530 Subject: [PATCH] SK-1622: Added methods in controllers --- v2/skyflow/client/__init__.py | 2 +- v2/skyflow/client/{skyflow.py => _skyflow.py} | 2 +- v2/skyflow/error/__init__.py | 2 +- v2/skyflow/error/{skyflow_error.py => _skyflow_error.py} | 0 v2/skyflow/utils/enums/__init__.py | 2 +- v2/skyflow/utils/enums/{enums.py => _enums.py} | 0 v2/skyflow/vault/controller/_audit.py | 4 +++- v2/skyflow/vault/controller/_bin_look_up.py | 4 +++- v2/skyflow/vault/controller/_connections.py | 4 +++- v2/skyflow/vault/model/__init__.py | 4 ++-- .../model/{detokenize_request.py => _detokenize_request.py} | 0 .../model/{detokenize_response.py => _detokenize_response.py} | 0 .../vault/model/{insert_request.py => _insert_request.py} | 0 .../vault/model/{insert_response.py => _insert_response.py} | 0 14 files changed, 15 insertions(+), 9 deletions(-) rename v2/skyflow/client/{skyflow.py => _skyflow.py} (96%) rename v2/skyflow/error/{skyflow_error.py => _skyflow_error.py} (100%) rename v2/skyflow/utils/enums/{enums.py => _enums.py} (100%) rename v2/skyflow/vault/model/{detokenize_request.py => _detokenize_request.py} (100%) rename v2/skyflow/vault/model/{detokenize_response.py => _detokenize_response.py} (100%) rename v2/skyflow/vault/model/{insert_request.py => _insert_request.py} (100%) rename v2/skyflow/vault/model/{insert_response.py => _insert_response.py} (100%) diff --git a/v2/skyflow/client/__init__.py b/v2/skyflow/client/__init__.py index 7f40ee0..1e682f1 100644 --- a/v2/skyflow/client/__init__.py +++ b/v2/skyflow/client/__init__.py @@ -1 +1 @@ -from .skyflow import Skyflow \ No newline at end of file +from ._skyflow import Skyflow \ No newline at end of file diff --git a/v2/skyflow/client/skyflow.py b/v2/skyflow/client/_skyflow.py similarity index 96% rename from v2/skyflow/client/skyflow.py rename to v2/skyflow/client/_skyflow.py index 949ae82..639697f 100644 --- a/v2/skyflow/client/skyflow.py +++ b/v2/skyflow/client/_skyflow.py @@ -20,7 +20,7 @@ def __init__(self): self._vault_config = [] self._connection_config = [] self._skyflow_credentials = None - self._log_level = None + self._log_level = LogLevel.ERROR def add_vault_config(self, vault_config): self._vault_config.append(vault_config) diff --git a/v2/skyflow/error/__init__.py b/v2/skyflow/error/__init__.py index 710220a..0306c09 100644 --- a/v2/skyflow/error/__init__.py +++ b/v2/skyflow/error/__init__.py @@ -1 +1 @@ -from skyflow_error import SkyflowError \ No newline at end of file +from _skyflow_error import SkyflowError \ No newline at end of file diff --git a/v2/skyflow/error/skyflow_error.py b/v2/skyflow/error/_skyflow_error.py similarity index 100% rename from v2/skyflow/error/skyflow_error.py rename to v2/skyflow/error/_skyflow_error.py diff --git a/v2/skyflow/utils/enums/__init__.py b/v2/skyflow/utils/enums/__init__.py index 1eb8dbb..e42d7ec 100644 --- a/v2/skyflow/utils/enums/__init__.py +++ b/v2/skyflow/utils/enums/__init__.py @@ -1 +1 @@ -from enums import LogLevel \ No newline at end of file +from _enums import LogLevel \ No newline at end of file diff --git a/v2/skyflow/utils/enums/enums.py b/v2/skyflow/utils/enums/_enums.py similarity index 100% rename from v2/skyflow/utils/enums/enums.py rename to v2/skyflow/utils/enums/_enums.py diff --git a/v2/skyflow/vault/controller/_audit.py b/v2/skyflow/vault/controller/_audit.py index 67ecd6f..96aab2f 100644 --- a/v2/skyflow/vault/controller/_audit.py +++ b/v2/skyflow/vault/controller/_audit.py @@ -2,5 +2,7 @@ class Audit: #members def __init__(self): pass - #methods + + def list(self): + pass \ No newline at end of file diff --git a/v2/skyflow/vault/controller/_bin_look_up.py b/v2/skyflow/vault/controller/_bin_look_up.py index 5e85e08..242cb64 100644 --- a/v2/skyflow/vault/controller/_bin_look_up.py +++ b/v2/skyflow/vault/controller/_bin_look_up.py @@ -2,4 +2,6 @@ class BinLookUp: #members def __init__(self): pass - #methods \ No newline at end of file + + def get(self): + pass \ No newline at end of file diff --git a/v2/skyflow/vault/controller/_connections.py b/v2/skyflow/vault/controller/_connections.py index 0f0caa8..7fb97bb 100644 --- a/v2/skyflow/vault/controller/_connections.py +++ b/v2/skyflow/vault/controller/_connections.py @@ -2,4 +2,6 @@ class Connection: #members def __init__(self): pass - #methods \ No newline at end of file + + def invoke(self): + pass \ No newline at end of file diff --git a/v2/skyflow/vault/model/__init__.py b/v2/skyflow/vault/model/__init__.py index b1c4f2a..ff9c388 100644 --- a/v2/skyflow/vault/model/__init__.py +++ b/v2/skyflow/vault/model/__init__.py @@ -1,7 +1,7 @@ -from v2.skyflow.vault.model.insert_request import ( +from v2.skyflow.vault.model._insert_request import ( InsertRequest ) -from v2.skyflow.vault.model.insert_response import ( +from v2.skyflow.vault.model._insert_response import ( InsertResponse ) \ No newline at end of file diff --git a/v2/skyflow/vault/model/detokenize_request.py b/v2/skyflow/vault/model/_detokenize_request.py similarity index 100% rename from v2/skyflow/vault/model/detokenize_request.py rename to v2/skyflow/vault/model/_detokenize_request.py diff --git a/v2/skyflow/vault/model/detokenize_response.py b/v2/skyflow/vault/model/_detokenize_response.py similarity index 100% rename from v2/skyflow/vault/model/detokenize_response.py rename to v2/skyflow/vault/model/_detokenize_response.py diff --git a/v2/skyflow/vault/model/insert_request.py b/v2/skyflow/vault/model/_insert_request.py similarity index 100% rename from v2/skyflow/vault/model/insert_request.py rename to v2/skyflow/vault/model/_insert_request.py diff --git a/v2/skyflow/vault/model/insert_response.py b/v2/skyflow/vault/model/_insert_response.py similarity index 100% rename from v2/skyflow/vault/model/insert_response.py rename to v2/skyflow/vault/model/_insert_response.py