Skip to content

Commit a912990

Browse files
feat: regenerate proto
1 parent 60ae684 commit a912990

13 files changed

+660
-193
lines changed

yandex/cloud/gitlab/v1/instance_service_pb2.py

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

yandex/cloud/gitlab/v1/instance_service_pb2.pyi

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ isort:skip_file
66
import builtins
77
import collections.abc
88
import google.protobuf.descriptor
9+
import google.protobuf.field_mask_pb2
910
import google.protobuf.internal.containers
1011
import google.protobuf.message
1112
import typing
@@ -196,6 +197,107 @@ class CreateInstanceMetadata(google.protobuf.message.Message):
196197

197198
global___CreateInstanceMetadata = CreateInstanceMetadata
198199

200+
@typing.final
201+
class UpdateInstanceRequest(google.protobuf.message.Message):
202+
"""Request message for InstanceService.Update."""
203+
204+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
205+
206+
@typing.final
207+
class LabelsEntry(google.protobuf.message.Message):
208+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
209+
210+
KEY_FIELD_NUMBER: builtins.int
211+
VALUE_FIELD_NUMBER: builtins.int
212+
key: builtins.str
213+
value: builtins.str
214+
def __init__(
215+
self,
216+
*,
217+
key: builtins.str = ...,
218+
value: builtins.str = ...,
219+
) -> None: ...
220+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
221+
222+
INSTANCE_ID_FIELD_NUMBER: builtins.int
223+
NAME_FIELD_NUMBER: builtins.int
224+
DESCRIPTION_FIELD_NUMBER: builtins.int
225+
LABELS_FIELD_NUMBER: builtins.int
226+
BACKUP_RETAIN_PERIOD_DAYS_FIELD_NUMBER: builtins.int
227+
RESOURCE_PRESET_ID_FIELD_NUMBER: builtins.int
228+
MAINTENANCE_DELETE_UNTAGGED_FIELD_NUMBER: builtins.int
229+
DELETION_PROTECTION_FIELD_NUMBER: builtins.int
230+
APPROVAL_RULES_ID_FIELD_NUMBER: builtins.int
231+
APPROVAL_RULES_TOKEN_FIELD_NUMBER: builtins.int
232+
DISK_SIZE_FIELD_NUMBER: builtins.int
233+
UPDATE_MASK_FIELD_NUMBER: builtins.int
234+
instance_id: builtins.str
235+
"""ID of the GitLab instance to update."""
236+
name: builtins.str
237+
"""Name of the instance (must be unique within the folder)."""
238+
description: builtins.str
239+
"""Description of the instance."""
240+
backup_retain_period_days: builtins.int
241+
"""Number of days to retain backups."""
242+
resource_preset_id: builtins.str
243+
"""ID of the resource preset for computational resources."""
244+
maintenance_delete_untagged: builtins.bool
245+
"""Whether to delete untagged resources during maintenance."""
246+
deletion_protection: builtins.bool
247+
"""Whether deletion protection is enabled."""
248+
approval_rules_id: builtins.str
249+
"""ID of approval rules for the instance."""
250+
approval_rules_token: builtins.str
251+
"""Token of approval rules for the instance."""
252+
disk_size: builtins.int
253+
"""Disk size in bytes."""
254+
@property
255+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
256+
"""Custom labels for the instance as `` key:value `` pairs. For example, "env": "prod" """
257+
258+
@property
259+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
260+
"""Field mask that specifies which attributes of the trail are going to be updated."""
261+
262+
def __init__(
263+
self,
264+
*,
265+
instance_id: builtins.str = ...,
266+
name: builtins.str = ...,
267+
description: builtins.str = ...,
268+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
269+
backup_retain_period_days: builtins.int = ...,
270+
resource_preset_id: builtins.str = ...,
271+
maintenance_delete_untagged: builtins.bool = ...,
272+
deletion_protection: builtins.bool = ...,
273+
approval_rules_id: builtins.str = ...,
274+
approval_rules_token: builtins.str = ...,
275+
disk_size: builtins.int = ...,
276+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
277+
) -> None: ...
278+
def HasField(self, field_name: typing.Literal["update_mask", b"update_mask"]) -> builtins.bool: ...
279+
def ClearField(self, field_name: typing.Literal["approval_rules_id", b"approval_rules_id", "approval_rules_token", b"approval_rules_token", "backup_retain_period_days", b"backup_retain_period_days", "deletion_protection", b"deletion_protection", "description", b"description", "disk_size", b"disk_size", "instance_id", b"instance_id", "labels", b"labels", "maintenance_delete_untagged", b"maintenance_delete_untagged", "name", b"name", "resource_preset_id", b"resource_preset_id", "update_mask", b"update_mask"]) -> None: ...
280+
281+
global___UpdateInstanceRequest = UpdateInstanceRequest
282+
283+
@typing.final
284+
class UpdateInstanceMetadata(google.protobuf.message.Message):
285+
"""Metadata message for InstanceService.Update."""
286+
287+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
288+
289+
INSTANCE_ID_FIELD_NUMBER: builtins.int
290+
instance_id: builtins.str
291+
"""ID of the GitLab instance to update."""
292+
def __init__(
293+
self,
294+
*,
295+
instance_id: builtins.str = ...,
296+
) -> None: ...
297+
def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id"]) -> None: ...
298+
299+
global___UpdateInstanceMetadata = UpdateInstanceMetadata
300+
199301
@typing.final
200302
class DeleteInstanceRequest(google.protobuf.message.Message):
201303
"""Request message for InstanceService.Delete."""

yandex/cloud/gitlab/v1/instance_service_pb2_grpc.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ def __init__(self, channel):
5252
request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.CreateInstanceRequest.SerializeToString,
5353
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
5454
_registered_method=True)
55+
self.Update = channel.unary_unary(
56+
'/yandex.cloud.gitlab.v1.InstanceService/Update',
57+
request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.UpdateInstanceRequest.SerializeToString,
58+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
59+
_registered_method=True)
5560
self.Delete = channel.unary_unary(
5661
'/yandex.cloud.gitlab.v1.InstanceService/Delete',
5762
request_serializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.DeleteInstanceRequest.SerializeToString,
@@ -94,6 +99,13 @@ def Create(self, request, context):
9499
context.set_details('Method not implemented!')
95100
raise NotImplementedError('Method not implemented!')
96101

102+
def Update(self, request, context):
103+
"""Updates GitLab instance.
104+
"""
105+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
106+
context.set_details('Method not implemented!')
107+
raise NotImplementedError('Method not implemented!')
108+
97109
def Delete(self, request, context):
98110
"""Deletes the specified GitLab instance.
99111
"""
@@ -133,6 +145,11 @@ def add_InstanceServiceServicer_to_server(servicer, server):
133145
request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.CreateInstanceRequest.FromString,
134146
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
135147
),
148+
'Update': grpc.unary_unary_rpc_method_handler(
149+
servicer.Update,
150+
request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.UpdateInstanceRequest.FromString,
151+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
152+
),
136153
'Delete': grpc.unary_unary_rpc_method_handler(
137154
servicer.Delete,
138155
request_deserializer=yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.DeleteInstanceRequest.FromString,
@@ -241,6 +258,33 @@ def Create(request,
241258
metadata,
242259
_registered_method=True)
243260

261+
@staticmethod
262+
def Update(request,
263+
target,
264+
options=(),
265+
channel_credentials=None,
266+
call_credentials=None,
267+
insecure=False,
268+
compression=None,
269+
wait_for_ready=None,
270+
timeout=None,
271+
metadata=None):
272+
return grpc.experimental.unary_unary(
273+
request,
274+
target,
275+
'/yandex.cloud.gitlab.v1.InstanceService/Update',
276+
yandex_dot_cloud_dot_gitlab_dot_v1_dot_instance__service__pb2.UpdateInstanceRequest.SerializeToString,
277+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
278+
options,
279+
channel_credentials,
280+
insecure,
281+
call_credentials,
282+
compression,
283+
wait_for_ready,
284+
timeout,
285+
metadata,
286+
_registered_method=True)
287+
244288
@staticmethod
245289
def Delete(request,
246290
target,

yandex/cloud/gitlab/v1/instance_service_pb2_grpc.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ class InstanceServiceStub:
4141
]
4242
"""Creates a new GitLab instance in the specified folder."""
4343

44+
Update: grpc.UnaryUnaryMultiCallable[
45+
yandex.cloud.gitlab.v1.instance_service_pb2.UpdateInstanceRequest,
46+
yandex.cloud.operation.operation_pb2.Operation,
47+
]
48+
"""Updates GitLab instance."""
49+
4450
Delete: grpc.UnaryUnaryMultiCallable[
4551
yandex.cloud.gitlab.v1.instance_service_pb2.DeleteInstanceRequest,
4652
yandex.cloud.operation.operation_pb2.Operation,
@@ -80,6 +86,12 @@ class InstanceServiceAsyncStub:
8086
]
8187
"""Creates a new GitLab instance in the specified folder."""
8288

89+
Update: grpc.aio.UnaryUnaryMultiCallable[
90+
yandex.cloud.gitlab.v1.instance_service_pb2.UpdateInstanceRequest,
91+
yandex.cloud.operation.operation_pb2.Operation,
92+
]
93+
"""Updates GitLab instance."""
94+
8395
Delete: grpc.aio.UnaryUnaryMultiCallable[
8496
yandex.cloud.gitlab.v1.instance_service_pb2.DeleteInstanceRequest,
8597
yandex.cloud.operation.operation_pb2.Operation,
@@ -125,6 +137,14 @@ class InstanceServiceServicer(metaclass=abc.ABCMeta):
125137
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
126138
"""Creates a new GitLab instance in the specified folder."""
127139

140+
@abc.abstractmethod
141+
def Update(
142+
self,
143+
request: yandex.cloud.gitlab.v1.instance_service_pb2.UpdateInstanceRequest,
144+
context: _ServicerContext,
145+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]:
146+
"""Updates GitLab instance."""
147+
128148
@abc.abstractmethod
129149
def Delete(
130150
self,

0 commit comments

Comments
 (0)