-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
triggered by commit: instill-ai/protobufs@aaf9e56
- Loading branch information
1 parent
3ec9301
commit afe7772
Showing
76 changed files
with
14,895 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar('_T') | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): | ||
... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore | ||
... |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
This is the POC for metric-backend service that supports | ||
1. receiving usage reports from pipeline-backend and model-backend clients | ||
2. uploading usage to InfluxDB | ||
3. uploading usage to Stripe | ||
4. responding usage/price enquiries from clients | ||
""" | ||
import google.protobuf.descriptor | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar('_T') | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): | ||
... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore | ||
... |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar('_T') | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): | ||
... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore | ||
... |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import google.protobuf.descriptor | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
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 |
---|---|---|
@@ -0,0 +1,171 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import abc | ||
import base.mgmt.v1alpha.mgmt_pb2 | ||
import collections.abc | ||
import grpc | ||
import grpc.aio | ||
import typing | ||
|
||
_T = typing.TypeVar('_T') | ||
|
||
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): | ||
... | ||
|
||
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore | ||
... | ||
|
||
class MgmtPrivateServiceStub: | ||
"""Mgmt service responds to internal access""" | ||
|
||
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... | ||
ListUsersAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminResponse, | ||
] | ||
"""ListUsersAdmin method receives a ListUsersAdminRequest message and returns | ||
a ListUsersAdminResponse message. | ||
""" | ||
CreateUserAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminResponse, | ||
] | ||
"""CreateUserAdmin receives a CreateUserAdminRequest message and returns a | ||
a GetUserAdminResponse | ||
""" | ||
GetUserAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.GetUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.GetUserAdminResponse, | ||
] | ||
"""GetUserAdmin method receives a GetUserAdminRequest message and returns | ||
a GetUserAdminResponse message. | ||
""" | ||
UpdateUserAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse, | ||
] | ||
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and | ||
returns a UpdateUserAdminResponse | ||
""" | ||
DeleteUserAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse, | ||
] | ||
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and | ||
returns a DeleteUserAdminResponse | ||
""" | ||
LookUpUserAdmin: grpc.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse, | ||
] | ||
"""LookUpUserAdmin method receives a LookUpUserAdminRequest message and | ||
returns a LookUpUserAdminResponse | ||
""" | ||
|
||
class MgmtPrivateServiceAsyncStub: | ||
"""Mgmt service responds to internal access""" | ||
|
||
ListUsersAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminResponse, | ||
] | ||
"""ListUsersAdmin method receives a ListUsersAdminRequest message and returns | ||
a ListUsersAdminResponse message. | ||
""" | ||
CreateUserAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminResponse, | ||
] | ||
"""CreateUserAdmin receives a CreateUserAdminRequest message and returns a | ||
a GetUserAdminResponse | ||
""" | ||
GetUserAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.GetUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.GetUserAdminResponse, | ||
] | ||
"""GetUserAdmin method receives a GetUserAdminRequest message and returns | ||
a GetUserAdminResponse message. | ||
""" | ||
UpdateUserAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse, | ||
] | ||
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and | ||
returns a UpdateUserAdminResponse | ||
""" | ||
DeleteUserAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse, | ||
] | ||
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and | ||
returns a DeleteUserAdminResponse | ||
""" | ||
LookUpUserAdmin: grpc.aio.UnaryUnaryMultiCallable[ | ||
base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest, | ||
base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse, | ||
] | ||
"""LookUpUserAdmin method receives a LookUpUserAdminRequest message and | ||
returns a LookUpUserAdminResponse | ||
""" | ||
|
||
class MgmtPrivateServiceServicer(metaclass=abc.ABCMeta): | ||
"""Mgmt service responds to internal access""" | ||
|
||
@abc.abstractmethod | ||
def ListUsersAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.ListUsersAdminResponse]]: | ||
"""ListUsersAdmin method receives a ListUsersAdminRequest message and returns | ||
a ListUsersAdminResponse message. | ||
""" | ||
@abc.abstractmethod | ||
def CreateUserAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.CreateUserAdminResponse]]: | ||
"""CreateUserAdmin receives a CreateUserAdminRequest message and returns a | ||
a GetUserAdminResponse | ||
""" | ||
@abc.abstractmethod | ||
def GetUserAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.GetUserAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.GetUserAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.GetUserAdminResponse]]: | ||
"""GetUserAdmin method receives a GetUserAdminRequest message and returns | ||
a GetUserAdminResponse message. | ||
""" | ||
@abc.abstractmethod | ||
def UpdateUserAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.UpdateUserAdminResponse]]: | ||
"""UpdateUserAdmin method receives a UpdateUserAdminRequest message and | ||
returns a UpdateUserAdminResponse | ||
""" | ||
@abc.abstractmethod | ||
def DeleteUserAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.DeleteUserAdminResponse]]: | ||
"""DeleteUserAdmin method receives a DeleteUserAdminRequest message and | ||
returns a DeleteUserAdminResponse | ||
""" | ||
@abc.abstractmethod | ||
def LookUpUserAdmin( | ||
self, | ||
request: base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminRequest, | ||
context: _ServicerContext, | ||
) -> typing.Union[base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse, collections.abc.Awaitable[base.mgmt.v1alpha.mgmt_pb2.LookUpUserAdminResponse]]: | ||
"""LookUpUserAdmin method receives a LookUpUserAdminRequest message and | ||
returns a LookUpUserAdminResponse | ||
""" | ||
|
||
def add_MgmtPrivateServiceServicer_to_server(servicer: MgmtPrivateServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
""" | ||
@generated by mypy-protobuf. Do not edit manually! | ||
isort:skip_file | ||
""" | ||
import google.protobuf.descriptor | ||
|
||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
Oops, something went wrong.