You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/12/15 21:30:05 UTC

[incubator-teaclave] branch master updated: Inherant Reqeust class for proper json serde (#592)

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/master by this push:
     new b710a2e  Inherant Reqeust class for proper json serde (#592)
b710a2e is described below

commit b710a2e97b79e356fe15726b3135fa4ef9132a31
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Wed Dec 15 13:30:00 2021 -0800

    Inherant Reqeust class for proper json serde (#592)
---
 sdk/python/teaclave.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sdk/python/teaclave.py b/sdk/python/teaclave.py
index 191b207..3e39f99 100644
--- a/sdk/python/teaclave.py
+++ b/sdk/python/teaclave.py
@@ -258,7 +258,7 @@ class RegisterFunctionRequest(Request):
         self.user_allowlist = user_allowlist
 
 
-class UpdateFunctionRequest:
+class UpdateFunctionRequest(Request):
     def __init__(self, metadata: Metadata, function_id: str, name: str,
                  description: str, executor_type: str, public: bool,
                  payload: List[int], arguments: List[str],
@@ -278,21 +278,21 @@ class UpdateFunctionRequest:
         self.user_allowlist = user_allowlist
 
 
-class ListFunctionsRequest:
+class ListFunctionsRequest(Request):
     def __init__(self, metadata: Metadata, user_id: str):
         self.request = "list_functions"
         self.metadata = metadata
         self.user_id = user_id
 
 
-class DeleteFunctionRequest:
+class DeleteFunctionRequest(Request):
     def __init__(self, metadata: Metadata, function_id: str):
         self.request = "delete_function"
         self.metadata = metadata
         self.function_id = function_id
 
 
-class GetFunctionRequest:
+class GetFunctionRequest(Request):
     def __init__(self, metadata: Metadata, function_id: str):
         self.request = "get_function"
         self.metadata = metadata

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org