Skip to content

Commit 0b76570

Browse files
feat: regenerate proto
1 parent 5b4dac1 commit 0b76570

14 files changed

+419
-62
lines changed

yandex/cloud/backup/v1/backup_service_pb2.py

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

yandex/cloud/backup/v1/backup_service_pb2.pyi

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class ListBackupsRequest(google.protobuf.message.Message):
108108
ORDER_BY_FIELD_NUMBER: builtins.int
109109
FILTER_FIELD_NUMBER: builtins.int
110110
TYPE_FIELD_NUMBER: builtins.int
111+
PAGE_SIZE_FIELD_NUMBER: builtins.int
112+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
111113
compute_instance_id: builtins.str
112114
"""List backups that belongs to specific Compute Cloud instance."""
113115
folder_id: builtins.str
@@ -130,6 +132,10 @@ class ListBackupsRequest(google.protobuf.message.Message):
130132
"""
131133
type: yandex.cloud.backup.v1.resource_pb2.ResourceType.ValueType
132134
"""Type of resource. Could be compute VM or baremetal server."""
135+
page_size: builtins.int
136+
"""Number of results per page."""
137+
page_token: builtins.str
138+
"""Token for the results page. Not allowed to use if listing is performed by specific policy ID."""
133139
@property
134140
def archive(self) -> global___ListBackupsRequest.ArchiveParameters:
135141
"""List backups that belongs to specific archive of specific folder."""
@@ -150,9 +156,11 @@ class ListBackupsRequest(google.protobuf.message.Message):
150156
order_by: builtins.str = ...,
151157
filter: builtins.str = ...,
152158
type: yandex.cloud.backup.v1.resource_pb2.ResourceType.ValueType = ...,
159+
page_size: builtins.int = ...,
160+
page_token: builtins.str = ...,
153161
) -> None: ...
154162
def HasField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "policy_id", b"policy_id", "resource_id", b"resource_id"]) -> builtins.bool: ...
155-
def ClearField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "filter", b"filter", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "order_by", b"order_by", "policy_id", b"policy_id", "resource_id", b"resource_id", "type", b"type"]) -> None: ...
163+
def ClearField(self, field_name: typing.Literal["archive", b"archive", "compute_instance_id", b"compute_instance_id", "filter", b"filter", "folder_id", b"folder_id", "id", b"id", "instance_policy", b"instance_policy", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token", "policy_id", b"policy_id", "resource_id", b"resource_id", "type", b"type"]) -> None: ...
156164
def WhichOneof(self, oneof_group: typing.Literal["id", b"id"]) -> typing.Literal["compute_instance_id", "archive", "folder_id", "instance_policy", "resource_id", "policy_id"] | None: ...
157165

158166
global___ListBackupsRequest = ListBackupsRequest
@@ -162,14 +170,18 @@ class ListBackupsResponse(google.protobuf.message.Message):
162170
DESCRIPTOR: google.protobuf.descriptor.Descriptor
163171

164172
BACKUPS_FIELD_NUMBER: builtins.int
173+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
174+
next_page_token: builtins.str
175+
"""Token for the next results page."""
165176
@property
166177
def backups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.backup.v1.backup_pb2.Backup]: ...
167178
def __init__(
168179
self,
169180
*,
170181
backups: collections.abc.Iterable[yandex.cloud.backup.v1.backup_pb2.Backup] | None = ...,
182+
next_page_token: builtins.str = ...,
171183
) -> None: ...
172-
def ClearField(self, field_name: typing.Literal["backups", b"backups"]) -> None: ...
184+
def ClearField(self, field_name: typing.Literal["backups", b"backups", "next_page_token", b"next_page_token"]) -> None: ...
173185

174186
global___ListBackupsResponse = ListBackupsResponse
175187

yandex/cloud/iam/v1/key_service_pb2.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class ListKeysRequest(google.protobuf.message.Message):
7373
"""ID of the service account to list key pairs for.
7474
To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
7575
If not specified, it defaults to the subject that made the request.
76-
use userAccount identity if this not set
7776
"""
7877
page_size: builtins.int
7978
"""The maximum number of results per page to return. If the number of available
@@ -138,7 +137,6 @@ class CreateKeyRequest(google.protobuf.message.Message):
138137
"""ID of the service account to create a key pair for.
139138
To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
140139
If not specified, it defaults to the subject that made the request.
141-
use userAccount identity if this not set
142140
"""
143141
description: builtins.str
144142
"""Description of the key pair."""

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

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

yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,3 +1893,89 @@ class UpdateAuthSettingsMetadata(google.protobuf.message.Message):
18931893
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id"]) -> None: ...
18941894

18951895
global___UpdateAuthSettingsMetadata = UpdateAuthSettingsMetadata
1896+
1897+
@typing.final
1898+
class RestartOpenSearchRequest(google.protobuf.message.Message):
1899+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1900+
1901+
CLUSTER_ID_FIELD_NUMBER: builtins.int
1902+
HOST_FIELD_NUMBER: builtins.int
1903+
cluster_id: builtins.str
1904+
"""Required. ID of the OpenSearch cluster."""
1905+
host: builtins.str
1906+
"""Required. Host to restart OpenSearch service on."""
1907+
def __init__(
1908+
self,
1909+
*,
1910+
cluster_id: builtins.str = ...,
1911+
host: builtins.str = ...,
1912+
) -> None: ...
1913+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "host", b"host"]) -> None: ...
1914+
1915+
global___RestartOpenSearchRequest = RestartOpenSearchRequest
1916+
1917+
@typing.final
1918+
class RestartOpenSearchMetadata(google.protobuf.message.Message):
1919+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1920+
1921+
CLUSTER_ID_FIELD_NUMBER: builtins.int
1922+
HOST_FIELD_NUMBER: builtins.int
1923+
cluster_id: builtins.str
1924+
"""Required. ID of the OpenSearch cluster."""
1925+
host: builtins.str
1926+
"""Required. Host where OpenSearch will be restarted."""
1927+
def __init__(
1928+
self,
1929+
*,
1930+
cluster_id: builtins.str = ...,
1931+
host: builtins.str = ...,
1932+
) -> None: ...
1933+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "host", b"host"]) -> None: ...
1934+
1935+
global___RestartOpenSearchMetadata = RestartOpenSearchMetadata
1936+
1937+
@typing.final
1938+
class SwitchMasterRequest(google.protobuf.message.Message):
1939+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1940+
1941+
CLUSTER_ID_FIELD_NUMBER: builtins.int
1942+
FROM_HOSTS_FIELD_NUMBER: builtins.int
1943+
cluster_id: builtins.str
1944+
"""Required. ID of the OpenSearch cluster."""
1945+
@property
1946+
def from_hosts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1947+
"""Hosts list which are forbidden to be masters after operation.
1948+
If no hosts given, then current master will be switched.
1949+
"""
1950+
1951+
def __init__(
1952+
self,
1953+
*,
1954+
cluster_id: builtins.str = ...,
1955+
from_hosts: collections.abc.Iterable[builtins.str] | None = ...,
1956+
) -> None: ...
1957+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "from_hosts", b"from_hosts"]) -> None: ...
1958+
1959+
global___SwitchMasterRequest = SwitchMasterRequest
1960+
1961+
@typing.final
1962+
class SwitchMasterMetadata(google.protobuf.message.Message):
1963+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1964+
1965+
CLUSTER_ID_FIELD_NUMBER: builtins.int
1966+
FROM_HOSTS_FIELD_NUMBER: builtins.int
1967+
cluster_id: builtins.str
1968+
"""ID of the OpenSearch cluster."""
1969+
@property
1970+
def from_hosts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1971+
"""Host where masters will be expelled."""
1972+
1973+
def __init__(
1974+
self,
1975+
*,
1976+
cluster_id: builtins.str = ...,
1977+
from_hosts: collections.abc.Iterable[builtins.str] | None = ...,
1978+
) -> None: ...
1979+
def ClearField(self, field_name: typing.Literal["cluster_id", b"cluster_id", "from_hosts", b"from_hosts"]) -> None: ...
1980+
1981+
global___SwitchMasterMetadata = SwitchMasterMetadata

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

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ def __init__(self, channel):
163163
request_serializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.UpdateAuthSettingsRequest.SerializeToString,
164164
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
165165
_registered_method=True)
166+
self.RestartOpenSearch = channel.unary_unary(
167+
'/yandex.cloud.mdb.opensearch.v1.ClusterService/RestartOpenSearch',
168+
request_serializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.RestartOpenSearchRequest.SerializeToString,
169+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
170+
_registered_method=True)
171+
self.SwitchMaster = channel.unary_unary(
172+
'/yandex.cloud.mdb.opensearch.v1.ClusterService/SwitchMaster',
173+
request_serializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.SwitchMasterRequest.SerializeToString,
174+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
175+
_registered_method=True)
166176

167177

168178
class ClusterServiceServicer(object):
@@ -264,6 +274,7 @@ def Stop(self, request, context):
264274

265275
def ListLogs(self, request, context):
266276
"""Retrieves logs for the specified OpenSearch cluster.
277+
For detailed description, see the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developer's guide.
267278
"""
268279
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
269280
context.set_details('Method not implemented!')
@@ -346,6 +357,20 @@ def UpdateAuthSettings(self, request, context):
346357
context.set_details('Method not implemented!')
347358
raise NotImplementedError('Method not implemented!')
348359

360+
def RestartOpenSearch(self, request, context):
361+
"""Restarts OpenSearch on specified host.
362+
"""
363+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
364+
context.set_details('Method not implemented!')
365+
raise NotImplementedError('Method not implemented!')
366+
367+
def SwitchMaster(self, request, context):
368+
"""Switches current master or ensures that master not on specified hosts.
369+
"""
370+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
371+
context.set_details('Method not implemented!')
372+
raise NotImplementedError('Method not implemented!')
373+
349374

350375
def add_ClusterServiceServicer_to_server(servicer, server):
351376
rpc_method_handlers = {
@@ -474,6 +499,16 @@ def add_ClusterServiceServicer_to_server(servicer, server):
474499
request_deserializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.UpdateAuthSettingsRequest.FromString,
475500
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
476501
),
502+
'RestartOpenSearch': grpc.unary_unary_rpc_method_handler(
503+
servicer.RestartOpenSearch,
504+
request_deserializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.RestartOpenSearchRequest.FromString,
505+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
506+
),
507+
'SwitchMaster': grpc.unary_unary_rpc_method_handler(
508+
servicer.SwitchMaster,
509+
request_deserializer=yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.SwitchMasterRequest.FromString,
510+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
511+
),
477512
}
478513
generic_handler = grpc.method_handlers_generic_handler(
479514
'yandex.cloud.mdb.opensearch.v1.ClusterService', rpc_method_handlers)
@@ -1160,3 +1195,57 @@ def UpdateAuthSettings(request,
11601195
timeout,
11611196
metadata,
11621197
_registered_method=True)
1198+
1199+
@staticmethod
1200+
def RestartOpenSearch(request,
1201+
target,
1202+
options=(),
1203+
channel_credentials=None,
1204+
call_credentials=None,
1205+
insecure=False,
1206+
compression=None,
1207+
wait_for_ready=None,
1208+
timeout=None,
1209+
metadata=None):
1210+
return grpc.experimental.unary_unary(
1211+
request,
1212+
target,
1213+
'/yandex.cloud.mdb.opensearch.v1.ClusterService/RestartOpenSearch',
1214+
yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.RestartOpenSearchRequest.SerializeToString,
1215+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
1216+
options,
1217+
channel_credentials,
1218+
insecure,
1219+
call_credentials,
1220+
compression,
1221+
wait_for_ready,
1222+
timeout,
1223+
metadata,
1224+
_registered_method=True)
1225+
1226+
@staticmethod
1227+
def SwitchMaster(request,
1228+
target,
1229+
options=(),
1230+
channel_credentials=None,
1231+
call_credentials=None,
1232+
insecure=False,
1233+
compression=None,
1234+
wait_for_ready=None,
1235+
timeout=None,
1236+
metadata=None):
1237+
return grpc.experimental.unary_unary(
1238+
request,
1239+
target,
1240+
'/yandex.cloud.mdb.opensearch.v1.ClusterService/SwitchMaster',
1241+
yandex_dot_cloud_dot_mdb_dot_opensearch_dot_v1_dot_cluster__service__pb2.SwitchMasterRequest.SerializeToString,
1242+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
1243+
options,
1244+
channel_credentials,
1245+
insecure,
1246+
call_credentials,
1247+
compression,
1248+
wait_for_ready,
1249+
timeout,
1250+
metadata,
1251+
_registered_method=True)

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

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ class ClusterServiceStub:
109109
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsRequest,
110110
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsResponse,
111111
]
112-
"""Retrieves logs for the specified OpenSearch cluster."""
112+
"""Retrieves logs for the specified OpenSearch cluster.
113+
For detailed description, see the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developer's guide.
114+
"""
113115

114116
StreamLogs: grpc.UnaryStreamMultiCallable[
115117
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.StreamClusterLogsRequest,
@@ -177,6 +179,18 @@ class ClusterServiceStub:
177179
]
178180
"""Updates auth settings for specified cluster."""
179181

182+
RestartOpenSearch: grpc.UnaryUnaryMultiCallable[
183+
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.RestartOpenSearchRequest,
184+
yandex.cloud.operation.operation_pb2.Operation,
185+
]
186+
"""Restarts OpenSearch on specified host."""
187+
188+
SwitchMaster: grpc.UnaryUnaryMultiCallable[
189+
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.SwitchMasterRequest,
190+
yandex.cloud.operation.operation_pb2.Operation,
191+
]
192+
"""Switches current master or ensures that master not on specified hosts."""
193+
180194
class ClusterServiceAsyncStub:
181195
"""A set of methods for managing OpenSearch clusters."""
182196

@@ -265,7 +279,9 @@ class ClusterServiceAsyncStub:
265279
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsRequest,
266280
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsResponse,
267281
]
268-
"""Retrieves logs for the specified OpenSearch cluster."""
282+
"""Retrieves logs for the specified OpenSearch cluster.
283+
For detailed description, see the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developer's guide.
284+
"""
269285

270286
StreamLogs: grpc.aio.UnaryStreamMultiCallable[
271287
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.StreamClusterLogsRequest,
@@ -333,6 +349,18 @@ class ClusterServiceAsyncStub:
333349
]
334350
"""Updates auth settings for specified cluster."""
335351

352+
RestartOpenSearch: grpc.aio.UnaryUnaryMultiCallable[
353+
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.RestartOpenSearchRequest,
354+
yandex.cloud.operation.operation_pb2.Operation,
355+
]
356+
"""Restarts OpenSearch on specified host."""
357+
358+
SwitchMaster: grpc.aio.UnaryUnaryMultiCallable[
359+
yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.SwitchMasterRequest,
360+
yandex.cloud.operation.operation_pb2.Operation,
361+
]
362+
"""Switches current master or ensures that master not on specified hosts."""
363+
336364
class ClusterServiceServicer(metaclass=abc.ABCMeta):
337365
"""A set of methods for managing OpenSearch clusters."""
338366

@@ -449,7 +477,9 @@ class ClusterServiceServicer(metaclass=abc.ABCMeta):
449477
request: yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsRequest,
450478
context: _ServicerContext,
451479
) -> typing.Union[yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsResponse, collections.abc.Awaitable[yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.ListClusterLogsResponse]]:
452-
"""Retrieves logs for the specified OpenSearch cluster."""
480+
"""Retrieves logs for the specified OpenSearch cluster.
481+
For detailed description, see the [Logs](/yandex-mdb-guide/concepts/logs.html) section in the developer's guide.
482+
"""
453483

454484
@abc.abstractmethod
455485
def StreamLogs(
@@ -539,4 +569,20 @@ class ClusterServiceServicer(metaclass=abc.ABCMeta):
539569
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
540570
"""Updates auth settings for specified cluster."""
541571

572+
@abc.abstractmethod
573+
def RestartOpenSearch(
574+
self,
575+
request: yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.RestartOpenSearchRequest,
576+
context: _ServicerContext,
577+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
578+
"""Restarts OpenSearch on specified host."""
579+
580+
@abc.abstractmethod
581+
def SwitchMaster(
582+
self,
583+
request: yandex.cloud.mdb.opensearch.v1.cluster_service_pb2.SwitchMasterRequest,
584+
context: _ServicerContext,
585+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
586+
"""Switches current master or ensures that master not on specified hosts."""
587+
542588
def add_ClusterServiceServicer_to_server(servicer: ClusterServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

0 commit comments

Comments
 (0)