crossplane-function-pythonic 0.6.2__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import warnings
5
5
 
6
6
  from crossplane.pythonic.proto.v1 import run_function_pb2 as crossplane_dot_pythonic_dot_proto_dot_v1_dot_run__function__pb2
7
7
 
8
- GRPC_GENERATED_VERSION = '1.80.0'
8
+ GRPC_GENERATED_VERSION = '1.85.1'
9
9
  GRPC_VERSION = grpc.__version__
10
10
  _version_not_supported = False
11
11
 
@@ -25,7 +25,7 @@ if _version_not_supported:
25
25
  )
26
26
 
27
27
 
28
- class FunctionRunnerServiceStub(object):
28
+ class FunctionRunnerServiceStub:
29
29
  """A FunctionRunnerService is a function.
30
30
  """
31
31
 
@@ -42,7 +42,7 @@ class FunctionRunnerServiceStub(object):
42
42
  _registered_method=True)
43
43
 
44
44
 
45
- class FunctionRunnerServiceServicer(object):
45
+ class FunctionRunnerServiceServicer:
46
46
  """A FunctionRunnerService is a function.
47
47
  """
48
48
 
@@ -69,7 +69,7 @@ def add_FunctionRunnerServiceServicer_to_server(servicer, server):
69
69
 
70
70
 
71
71
  # This class is part of an EXPERIMENTAL API.
72
- class FunctionRunnerService(object):
72
+ class FunctionRunnerService:
73
73
  """A FunctionRunnerService is a function.
74
74
  """
75
75
 
@@ -0,0 +1,64 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ This package defines the RPC for both composition and operation functions.
5
+ Only composition functions are part of the 'apiextensions' API group. In
6
+ retrospect this package should've been crossplane.proto.fn.v1, but it's too
7
+ late to change it now.
8
+
9
+ buf:lint:ignore PACKAGE_DIRECTORY_MATCH
10
+ """
11
+
12
+ from collections import abc as _abc
13
+ from crossplane.pythonic.proto.v1 import run_function_pb2 as _run_function_pb2
14
+ from grpc import aio as _aio
15
+ import abc as _abc_1
16
+ import grpc as _grpc
17
+ import sys
18
+ import typing as _typing
19
+
20
+ if sys.version_info >= (3, 11):
21
+ from typing import Self as _Self
22
+ else:
23
+ from typing_extensions import Self as _Self
24
+
25
+ _T = _typing.TypeVar("_T")
26
+
27
+ class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
28
+
29
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
30
+ ...
31
+
32
+ GRPC_GENERATED_VERSION: str
33
+ GRPC_VERSION: str
34
+
35
+ class FunctionRunnerServiceStub:
36
+ """A FunctionRunnerService is a function."""
37
+
38
+ @_typing.overload
39
+ def __new__(cls, channel: _grpc.Channel) -> _Self: ...
40
+ @_typing.overload
41
+ def __new__(cls, channel: _aio.Channel) -> FunctionRunnerServiceAsyncStub: ...
42
+ RunFunction: _grpc.UnaryUnaryMultiCallable[_run_function_pb2.RunFunctionRequest, _run_function_pb2.RunFunctionResponse]
43
+ """RunFunction runs the function."""
44
+
45
+ @_typing.type_check_only
46
+ class FunctionRunnerServiceAsyncStub(FunctionRunnerServiceStub):
47
+ """A FunctionRunnerService is a function."""
48
+
49
+ def __init__(self, channel: _aio.Channel) -> None: ...
50
+ RunFunction: _aio.UnaryUnaryMultiCallable[_run_function_pb2.RunFunctionRequest, _run_function_pb2.RunFunctionResponse] # type: ignore[assignment]
51
+ """RunFunction runs the function."""
52
+
53
+ class FunctionRunnerServiceServicer(metaclass=_abc_1.ABCMeta):
54
+ """A FunctionRunnerService is a function."""
55
+
56
+ @_abc_1.abstractmethod
57
+ def RunFunction(
58
+ self,
59
+ request: _run_function_pb2.RunFunctionRequest,
60
+ context: _ServicerContext,
61
+ ) -> _typing.Union[_run_function_pb2.RunFunctionResponse, _abc.Awaitable[_run_function_pb2.RunFunctionResponse]]:
62
+ """RunFunction runs the function."""
63
+
64
+ def add_FunctionRunnerServiceServicer_to_server(servicer: FunctionRunnerServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...