Skip to content

Commit ee70ea7

Browse files
feat: regenerate proto
1 parent 9595436 commit ee70ea7

32 files changed

+3069
-1176
lines changed

yandex/cloud/gitlab/v1/package_options_pb2.py

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import google.protobuf.descriptor
7+
8+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+
import warnings
5+
6+
7+
GRPC_GENERATED_VERSION = '1.70.0'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in yandex/cloud/gitlab/v1/package_options_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import abc
7+
import collections.abc
8+
import grpc
9+
import grpc.aio
10+
import typing
11+
12+
_T = typing.TypeVar("_T")
13+
14+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15+
16+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17+
...

yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py

Lines changed: 184 additions & 177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.py

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import grpc
44
import warnings
55

6+
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
67
from yandex.cloud.mdb.clickhouse.v1 import cluster_pb2 as yandex_dot_cloud_dot_mdb_dot_clickhouse_dot_v1_dot_cluster__pb2
78
from yandex.cloud.mdb.clickhouse.v1 import cluster_service_pb2 as yandex_dot_cloud_dot_mdb_dot_clickhouse_dot_v1_dot_cluster__service__pb2
89
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
@@ -222,6 +223,21 @@ def __init__(self, channel):
222223
request_serializer=yandex_dot_cloud_dot_mdb_dot_clickhouse_dot_v1_dot_cluster__service__pb2.DeleteClusterExternalDictionaryRequest.SerializeToString,
223224
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
224225
_registered_method=True)
226+
self.ListAccessBindings = channel.unary_unary(
227+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/ListAccessBindings',
228+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
229+
response_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
230+
_registered_method=True)
231+
self.SetAccessBindings = channel.unary_unary(
232+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/SetAccessBindings',
233+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
234+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
235+
_registered_method=True)
236+
self.UpdateAccessBindings = channel.unary_unary(
237+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/UpdateAccessBindings',
238+
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
239+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
240+
_registered_method=True)
225241

226242

227243
class ClusterServiceServicer(object):
@@ -489,6 +505,27 @@ def DeleteExternalDictionary(self, request, context):
489505
context.set_details('Method not implemented!')
490506
raise NotImplementedError('Method not implemented!')
491507

508+
def ListAccessBindings(self, request, context):
509+
"""Retrieves a list of access bindings for the specified ClickHouse cluster.
510+
"""
511+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
512+
context.set_details('Method not implemented!')
513+
raise NotImplementedError('Method not implemented!')
514+
515+
def SetAccessBindings(self, request, context):
516+
"""Sets access bindings for the specified ClickHouse cluster.
517+
"""
518+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
519+
context.set_details('Method not implemented!')
520+
raise NotImplementedError('Method not implemented!')
521+
522+
def UpdateAccessBindings(self, request, context):
523+
"""Updates access bindings for the specified ClickHouse cluster.
524+
"""
525+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
526+
context.set_details('Method not implemented!')
527+
raise NotImplementedError('Method not implemented!')
528+
492529

493530
def add_ClusterServiceServicer_to_server(servicer, server):
494531
rpc_method_handlers = {
@@ -677,6 +714,21 @@ def add_ClusterServiceServicer_to_server(servicer, server):
677714
request_deserializer=yandex_dot_cloud_dot_mdb_dot_clickhouse_dot_v1_dot_cluster__service__pb2.DeleteClusterExternalDictionaryRequest.FromString,
678715
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
679716
),
717+
'ListAccessBindings': grpc.unary_unary_rpc_method_handler(
718+
servicer.ListAccessBindings,
719+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.FromString,
720+
response_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.SerializeToString,
721+
),
722+
'SetAccessBindings': grpc.unary_unary_rpc_method_handler(
723+
servicer.SetAccessBindings,
724+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.FromString,
725+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
726+
),
727+
'UpdateAccessBindings': grpc.unary_unary_rpc_method_handler(
728+
servicer.UpdateAccessBindings,
729+
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.FromString,
730+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
731+
),
680732
}
681733
generic_handler = grpc.method_handlers_generic_handler(
682734
'yandex.cloud.mdb.clickhouse.v1.ClusterService', rpc_method_handlers)
@@ -1687,3 +1739,84 @@ def DeleteExternalDictionary(request,
16871739
timeout,
16881740
metadata,
16891741
_registered_method=True)
1742+
1743+
@staticmethod
1744+
def ListAccessBindings(request,
1745+
target,
1746+
options=(),
1747+
channel_credentials=None,
1748+
call_credentials=None,
1749+
insecure=False,
1750+
compression=None,
1751+
wait_for_ready=None,
1752+
timeout=None,
1753+
metadata=None):
1754+
return grpc.experimental.unary_unary(
1755+
request,
1756+
target,
1757+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/ListAccessBindings',
1758+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
1759+
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
1760+
options,
1761+
channel_credentials,
1762+
insecure,
1763+
call_credentials,
1764+
compression,
1765+
wait_for_ready,
1766+
timeout,
1767+
metadata,
1768+
_registered_method=True)
1769+
1770+
@staticmethod
1771+
def SetAccessBindings(request,
1772+
target,
1773+
options=(),
1774+
channel_credentials=None,
1775+
call_credentials=None,
1776+
insecure=False,
1777+
compression=None,
1778+
wait_for_ready=None,
1779+
timeout=None,
1780+
metadata=None):
1781+
return grpc.experimental.unary_unary(
1782+
request,
1783+
target,
1784+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/SetAccessBindings',
1785+
yandex_dot_cloud_dot_access_dot_access__pb2.SetAccessBindingsRequest.SerializeToString,
1786+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
1787+
options,
1788+
channel_credentials,
1789+
insecure,
1790+
call_credentials,
1791+
compression,
1792+
wait_for_ready,
1793+
timeout,
1794+
metadata,
1795+
_registered_method=True)
1796+
1797+
@staticmethod
1798+
def UpdateAccessBindings(request,
1799+
target,
1800+
options=(),
1801+
channel_credentials=None,
1802+
call_credentials=None,
1803+
insecure=False,
1804+
compression=None,
1805+
wait_for_ready=None,
1806+
timeout=None,
1807+
metadata=None):
1808+
return grpc.experimental.unary_unary(
1809+
request,
1810+
target,
1811+
'/yandex.cloud.mdb.clickhouse.v1.ClusterService/UpdateAccessBindings',
1812+
yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
1813+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
1814+
options,
1815+
channel_credentials,
1816+
insecure,
1817+
call_credentials,
1818+
compression,
1819+
wait_for_ready,
1820+
timeout,
1821+
metadata,
1822+
_registered_method=True)

yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.pyi

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import collections.abc
88
import grpc
99
import grpc.aio
1010
import typing
11+
import yandex.cloud.access.access_pb2
1112
import yandex.cloud.mdb.clickhouse.v1.cluster_pb2
1213
import yandex.cloud.mdb.clickhouse.v1.cluster_service_pb2
1314
import yandex.cloud.operation.operation_pb2
@@ -249,6 +250,24 @@ class ClusterServiceStub:
249250
]
250251
"""Deletes the specified external dictionary."""
251252

253+
ListAccessBindings: grpc.UnaryUnaryMultiCallable[
254+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
255+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
256+
]
257+
"""Retrieves a list of access bindings for the specified ClickHouse cluster."""
258+
259+
SetAccessBindings: grpc.UnaryUnaryMultiCallable[
260+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
261+
yandex.cloud.operation.operation_pb2.Operation,
262+
]
263+
"""Sets access bindings for the specified ClickHouse cluster."""
264+
265+
UpdateAccessBindings: grpc.UnaryUnaryMultiCallable[
266+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
267+
yandex.cloud.operation.operation_pb2.Operation,
268+
]
269+
"""Updates access bindings for the specified ClickHouse cluster."""
270+
252271
class ClusterServiceAsyncStub:
253272
"""A set of methods for managing ClickHouse clusters."""
254273

@@ -478,6 +497,24 @@ class ClusterServiceAsyncStub:
478497
]
479498
"""Deletes the specified external dictionary."""
480499

500+
ListAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
501+
yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
502+
yandex.cloud.access.access_pb2.ListAccessBindingsResponse,
503+
]
504+
"""Retrieves a list of access bindings for the specified ClickHouse cluster."""
505+
506+
SetAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
507+
yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
508+
yandex.cloud.operation.operation_pb2.Operation,
509+
]
510+
"""Sets access bindings for the specified ClickHouse cluster."""
511+
512+
UpdateAccessBindings: grpc.aio.UnaryUnaryMultiCallable[
513+
yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
514+
yandex.cloud.operation.operation_pb2.Operation,
515+
]
516+
"""Updates access bindings for the specified ClickHouse cluster."""
517+
481518
class ClusterServiceServicer(metaclass=abc.ABCMeta):
482519
"""A set of methods for managing ClickHouse clusters."""
483520

@@ -781,4 +818,28 @@ class ClusterServiceServicer(metaclass=abc.ABCMeta):
781818
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
782819
"""Deletes the specified external dictionary."""
783820

821+
@abc.abstractmethod
822+
def ListAccessBindings(
823+
self,
824+
request: yandex.cloud.access.access_pb2.ListAccessBindingsRequest,
825+
context: _ServicerContext,
826+
) -> typing.Union[yandex.cloud.access.access_pb2.ListAccessBindingsResponse, collections.abc.Awaitable[yandex.cloud.access.access_pb2.ListAccessBindingsResponse]]:
827+
"""Retrieves a list of access bindings for the specified ClickHouse cluster."""
828+
829+
@abc.abstractmethod
830+
def SetAccessBindings(
831+
self,
832+
request: yandex.cloud.access.access_pb2.SetAccessBindingsRequest,
833+
context: _ServicerContext,
834+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
835+
"""Sets access bindings for the specified ClickHouse cluster."""
836+
837+
@abc.abstractmethod
838+
def UpdateAccessBindings(
839+
self,
840+
request: yandex.cloud.access.access_pb2.UpdateAccessBindingsRequest,
841+
context: _ServicerContext,
842+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
843+
"""Updates access bindings for the specified ClickHouse cluster."""
844+
784845
def add_ClusterServiceServicer_to_server(servicer: ClusterServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.py

Lines changed: 98 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)