Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: instill-ai/protobufs@15febeb
  • Loading branch information
droplet-bot committed Nov 20, 2023
1 parent 3f9fb80 commit 6f118cc
Show file tree
Hide file tree
Showing 8 changed files with 1,963 additions and 343 deletions.
338 changes: 242 additions & 96 deletions core/mgmt/v1alpha/mgmt_pb2.py

Large diffs are not rendered by default.

936 changes: 845 additions & 91 deletions core/mgmt/v1alpha/mgmt_pb2.pyi

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions core/mgmt/v1alpha/mgmt_private_service_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 0 additions & 70 deletions core/mgmt/v1alpha/mgmt_private_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ def __init__(self, channel):
request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminRequest.SerializeToString,
response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminResponse.FromString,
)
self.UpdateUserAdmin = channel.unary_unary(
'/core.mgmt.v1alpha.MgmtPrivateService/UpdateUserAdmin',
request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.SerializeToString,
response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.FromString,
)
self.DeleteUserAdmin = channel.unary_unary(
'/core.mgmt.v1alpha.MgmtPrivateService/DeleteUserAdmin',
request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.SerializeToString,
response_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.FromString,
)
self.LookUpUserAdmin = channel.unary_unary(
'/core.mgmt.v1alpha.MgmtPrivateService/LookUpUserAdmin',
request_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminRequest.SerializeToString,
Expand Down Expand Up @@ -75,22 +65,6 @@ def GetUserAdmin(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def UpdateUserAdmin(self, request, context):
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and
returns a UpdateUserAdminResponse
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def DeleteUserAdmin(self, request, context):
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and
returns a DeleteUserAdminResponse
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def LookUpUserAdmin(self, request, context):
"""LookUpUserAdmin method receives a LookUpUserAdminRequest message and
returns a LookUpUserAdminResponse
Expand All @@ -117,16 +91,6 @@ def add_MgmtPrivateServiceServicer_to_server(servicer, server):
request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminRequest.FromString,
response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.GetUserAdminResponse.SerializeToString,
),
'UpdateUserAdmin': grpc.unary_unary_rpc_method_handler(
servicer.UpdateUserAdmin,
request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.FromString,
response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.SerializeToString,
),
'DeleteUserAdmin': grpc.unary_unary_rpc_method_handler(
servicer.DeleteUserAdmin,
request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.FromString,
response_serializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.SerializeToString,
),
'LookUpUserAdmin': grpc.unary_unary_rpc_method_handler(
servicer.LookUpUserAdmin,
request_deserializer=core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.LookUpUserAdminRequest.FromString,
Expand Down Expand Up @@ -194,40 +158,6 @@ def GetUserAdmin(request,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def UpdateUserAdmin(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/UpdateUserAdmin',
core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminRequest.SerializeToString,
core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.UpdateUserAdminResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def DeleteUserAdmin(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/core.mgmt.v1alpha.MgmtPrivateService/DeleteUserAdmin',
core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminRequest.SerializeToString,
core_dot_mgmt_dot_v1alpha_dot_mgmt__pb2.DeleteUserAdminResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def LookUpUserAdmin(request,
target,
Expand Down
46 changes: 0 additions & 46 deletions core/mgmt/v1alpha/mgmt_private_service_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@ class MgmtPrivateServiceStub:
"""GetUserAdmin method receives a GetUserAdminRequest message and returns
a GetUserAdminResponse message.
"""
UpdateUserAdmin: grpc.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse,
]
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and
returns a UpdateUserAdminResponse
"""
DeleteUserAdmin: grpc.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse,
]
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and
returns a DeleteUserAdminResponse
"""
LookUpUserAdmin: grpc.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse,
Expand Down Expand Up @@ -88,20 +74,6 @@ class MgmtPrivateServiceAsyncStub:
"""GetUserAdmin method receives a GetUserAdminRequest message and returns
a GetUserAdminResponse message.
"""
UpdateUserAdmin: grpc.aio.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse,
]
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and
returns a UpdateUserAdminResponse
"""
DeleteUserAdmin: grpc.aio.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse,
]
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and
returns a DeleteUserAdminResponse
"""
LookUpUserAdmin: grpc.aio.UnaryUnaryMultiCallable[
core.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest,
core.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse,
Expand Down Expand Up @@ -141,24 +113,6 @@ class MgmtPrivateServiceServicer(metaclass=abc.ABCMeta):
a GetUserAdminResponse message.
"""
@abc.abstractmethod
def UpdateUserAdmin(
self,
request: core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest,
context: _ServicerContext,
) -> typing.Union[core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse, collections.abc.Awaitable[core.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse]]:
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and
returns a UpdateUserAdminResponse
"""
@abc.abstractmethod
def DeleteUserAdmin(
self,
request: core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest,
context: _ServicerContext,
) -> typing.Union[core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse, collections.abc.Awaitable[core.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse]]:
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and
returns a DeleteUserAdminResponse
"""
@abc.abstractmethod
def LookUpUserAdmin(
self,
request: core.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest,
Expand Down
Loading

0 comments on commit 6f118cc

Please sign in to comment.