Skip to content

Commit

Permalink
refactor: update StorageSchema.py function names
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr authored Jun 25, 2024
1 parent 86c987a commit 581a8dd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions naas_python/domains/storage/StorageSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,43 +86,43 @@ class IStorageDomain(metaclass=ABCMeta):
#TODO to be validated

@abstractmethod
def create_workspace_storage(self,
def create(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
) -> dict:
raise NotImplementedError

@abstractmethod
def delete_workspace_storage(self,
def delete(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
) -> dict:
raise NotImplementedError

@abstractmethod
def list_workspace_storage(self,
def list(self,
workspace_id: str,
) -> dict:
raise NotImplementedError

@abstractmethod
def list_workspace_storage_object(self,
def list_objects(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
storage_prefix: Object.__fields__['prefix'],
) -> dict:
raise NotImplementedError

@abstractmethod
def delete_workspace_storage_object(self,
def delete_object(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
object_name: Object.__fields__['name'],
) -> dict:
raise NotImplementedError

@abstractmethod
def post_workspace_storage_object(self,
def post_object(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
src_file: str,
Expand All @@ -131,7 +131,7 @@ def post_workspace_storage_object(self,
raise NotImplementedError

@abstractmethod
def get_workspace_storage_object(self,
def get_object(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
src_file: str,
Expand All @@ -141,7 +141,7 @@ def get_workspace_storage_object(self,


@abstractmethod
def create_workspace_storage_credentials(self,
def create_credentials(self,
workspace_id: str,
storage_name: Storage.__fields__['name'],
) -> dict:
Expand Down Expand Up @@ -213,4 +213,4 @@ class ServiceAuthenticationError(NaasException):
class ServiceStatusError(NaasException):
pass
class ObjectAlreadyExists(NaasException):
pass
pass

0 comments on commit 581a8dd

Please sign in to comment.