Skip to content

Commit 58e16eb

Browse files
feat: regenerate proto
1 parent 2808764 commit 58e16eb

34 files changed

+1317
-306
lines changed

yandex/cloud/cic/v1/private_connection_service_pb2.py

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

yandex/cloud/cic/v1/private_connection_service_pb2.pyi

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,46 @@ class RemoveStaticRouteMetadata(google.protobuf.message.Message):
420420

421421
global___RemoveStaticRouteMetadata = RemoveStaticRouteMetadata
422422

423+
@typing.final
424+
class MovePrivateConnectionRequest(google.protobuf.message.Message):
425+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
426+
427+
PRIVATE_CONNECTION_ID_FIELD_NUMBER: builtins.int
428+
DESTINATION_FOLDER_ID_FIELD_NUMBER: builtins.int
429+
private_connection_id: builtins.str
430+
"""ID of the PrivateConnection resource to move.
431+
To get the privateConnection ID use a [PrivateConnectionService.List] request.
432+
"""
433+
destination_folder_id: builtins.str
434+
"""ID of the folder to which privateConnection will be moved.
435+
To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
436+
"""
437+
def __init__(
438+
self,
439+
*,
440+
private_connection_id: builtins.str = ...,
441+
destination_folder_id: builtins.str = ...,
442+
) -> None: ...
443+
def ClearField(self, field_name: typing.Literal["destination_folder_id", b"destination_folder_id", "private_connection_id", b"private_connection_id"]) -> None: ...
444+
445+
global___MovePrivateConnectionRequest = MovePrivateConnectionRequest
446+
447+
@typing.final
448+
class MovePrivateConnectionMetadata(google.protobuf.message.Message):
449+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
450+
451+
PRIVATE_CONNECTION_ID_FIELD_NUMBER: builtins.int
452+
private_connection_id: builtins.str
453+
"""ID of the privateConnection that is being moved."""
454+
def __init__(
455+
self,
456+
*,
457+
private_connection_id: builtins.str = ...,
458+
) -> None: ...
459+
def ClearField(self, field_name: typing.Literal["private_connection_id", b"private_connection_id"]) -> None: ...
460+
461+
global___MovePrivateConnectionMetadata = MovePrivateConnectionMetadata
462+
423463
@typing.final
424464
class ListPrivateConnectionOperationsRequest(google.protobuf.message.Message):
425465
DESCRIPTOR: google.protobuf.descriptor.Descriptor

yandex/cloud/cic/v1/private_connection_service_pb2_grpc.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ def __init__(self, channel):
7272
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.RemoveStaticRouteRequest.SerializeToString,
7373
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
7474
_registered_method=True)
75+
self.Move = channel.unary_unary(
76+
'/yandex.cloud.cic.v1.PrivateConnectionService/Move',
77+
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.MovePrivateConnectionRequest.SerializeToString,
78+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
79+
_registered_method=True)
7580
self.ListOperations = channel.unary_unary(
7681
'/yandex.cloud.cic.v1.PrivateConnectionService/ListOperations',
7782
request_serializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionOperationsRequest.SerializeToString,
@@ -139,6 +144,13 @@ def RemoveStaticRoute(self, request, context):
139144
context.set_details('Method not implemented!')
140145
raise NotImplementedError('Method not implemented!')
141146

147+
def Move(self, request, context):
148+
"""Moves the specified PrivateConnection to another folder.
149+
"""
150+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
151+
context.set_details('Method not implemented!')
152+
raise NotImplementedError('Method not implemented!')
153+
142154
def ListOperations(self, request, context):
143155
"""Lists operations for the specified PrivateConnection.
144156
"""
@@ -184,6 +196,11 @@ def add_PrivateConnectionServiceServicer_to_server(servicer, server):
184196
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.RemoveStaticRouteRequest.FromString,
185197
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
186198
),
199+
'Move': grpc.unary_unary_rpc_method_handler(
200+
servicer.Move,
201+
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.MovePrivateConnectionRequest.FromString,
202+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
203+
),
187204
'ListOperations': grpc.unary_unary_rpc_method_handler(
188205
servicer.ListOperations,
189206
request_deserializer=yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.ListPrivateConnectionOperationsRequest.FromString,
@@ -390,6 +407,33 @@ def RemoveStaticRoute(request,
390407
metadata,
391408
_registered_method=True)
392409

410+
@staticmethod
411+
def Move(request,
412+
target,
413+
options=(),
414+
channel_credentials=None,
415+
call_credentials=None,
416+
insecure=False,
417+
compression=None,
418+
wait_for_ready=None,
419+
timeout=None,
420+
metadata=None):
421+
return grpc.experimental.unary_unary(
422+
request,
423+
target,
424+
'/yandex.cloud.cic.v1.PrivateConnectionService/Move',
425+
yandex_dot_cloud_dot_cic_dot_v1_dot_private__connection__service__pb2.MovePrivateConnectionRequest.SerializeToString,
426+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
427+
options,
428+
channel_credentials,
429+
insecure,
430+
call_credentials,
431+
compression,
432+
wait_for_ready,
433+
timeout,
434+
metadata,
435+
_registered_method=True)
436+
393437
@staticmethod
394438
def ListOperations(request,
395439
target,

yandex/cloud/cic/v1/private_connection_service_pb2_grpc.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ class PrivateConnectionServiceStub:
7878
Method starts an asynchronous operation that can be cancelled while it is in progress.
7979
"""
8080

81+
Move: grpc.UnaryUnaryMultiCallable[
82+
yandex.cloud.cic.v1.private_connection_service_pb2.MovePrivateConnectionRequest,
83+
yandex.cloud.operation.operation_pb2.Operation,
84+
]
85+
"""Moves the specified PrivateConnection to another folder."""
86+
8187
ListOperations: grpc.UnaryUnaryMultiCallable[
8288
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionOperationsRequest,
8389
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionOperationsResponse,
@@ -142,6 +148,12 @@ class PrivateConnectionServiceAsyncStub:
142148
Method starts an asynchronous operation that can be cancelled while it is in progress.
143149
"""
144150

151+
Move: grpc.aio.UnaryUnaryMultiCallable[
152+
yandex.cloud.cic.v1.private_connection_service_pb2.MovePrivateConnectionRequest,
153+
yandex.cloud.operation.operation_pb2.Operation,
154+
]
155+
"""Moves the specified PrivateConnection to another folder."""
156+
145157
ListOperations: grpc.aio.UnaryUnaryMultiCallable[
146158
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionOperationsRequest,
147159
yandex.cloud.cic.v1.private_connection_service_pb2.ListPrivateConnectionOperationsResponse,
@@ -220,6 +232,14 @@ class PrivateConnectionServiceServicer(metaclass=abc.ABCMeta):
220232
Method starts an asynchronous operation that can be cancelled while it is in progress.
221233
"""
222234

235+
@abc.abstractmethod
236+
def Move(
237+
self,
238+
request: yandex.cloud.cic.v1.private_connection_service_pb2.MovePrivateConnectionRequest,
239+
context: _ServicerContext,
240+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
241+
"""Moves the specified PrivateConnection to another folder."""
242+
223243
@abc.abstractmethod
224244
def ListOperations(
225245
self,

yandex/cloud/cic/v1/public_connection_service_pb2.py

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

yandex/cloud/cic/v1/public_connection_service_pb2.pyi

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,43 @@ class ListPublicConnectionsResponse(google.protobuf.message.Message):
9999
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "public_connections", b"public_connections"]) -> None: ...
100100

101101
global___ListPublicConnectionsResponse = ListPublicConnectionsResponse
102+
103+
@typing.final
104+
class MovePublicConnectionRequest(google.protobuf.message.Message):
105+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
106+
107+
PUBLIC_CONNECTION_ID_FIELD_NUMBER: builtins.int
108+
DESTINATION_FOLDER_ID_FIELD_NUMBER: builtins.int
109+
public_connection_id: builtins.str
110+
"""ID of the PublicConnection resource to move.
111+
To get the publicConnection ID use a [PublicConnectionService.List] request.
112+
"""
113+
destination_folder_id: builtins.str
114+
"""ID of the folder to which publicConnections will be moved.
115+
To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
116+
"""
117+
def __init__(
118+
self,
119+
*,
120+
public_connection_id: builtins.str = ...,
121+
destination_folder_id: builtins.str = ...,
122+
) -> None: ...
123+
def ClearField(self, field_name: typing.Literal["destination_folder_id", b"destination_folder_id", "public_connection_id", b"public_connection_id"]) -> None: ...
124+
125+
global___MovePublicConnectionRequest = MovePublicConnectionRequest
126+
127+
@typing.final
128+
class MovePublicConnectionMetadata(google.protobuf.message.Message):
129+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
130+
131+
PUBLIC_CONNECTION_ID_FIELD_NUMBER: builtins.int
132+
public_connection_id: builtins.str
133+
"""ID of the publicConnection that is being moved."""
134+
def __init__(
135+
self,
136+
*,
137+
public_connection_id: builtins.str = ...,
138+
) -> None: ...
139+
def ClearField(self, field_name: typing.Literal["public_connection_id", b"public_connection_id"]) -> None: ...
140+
141+
global___MovePublicConnectionMetadata = MovePublicConnectionMetadata

0 commit comments

Comments
 (0)