yandexcloud 0.321.0__py3-none-any.whl → 0.323.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.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +38 -8
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +89 -15
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +37 -6
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +55 -9
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +74 -11
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +18 -8
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +35 -5
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +15 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +8 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +15 -1
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +10 -5
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +14 -2
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +45 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +52 -9
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +18 -16
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +84 -10
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +21 -3
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +13 -6
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +24 -3
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +22 -5
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +47 -7
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +21 -5
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +43 -6
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +16 -8
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +26 -5
- yandex/cloud/ai/dataset/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/__init__.py +0 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.py +35 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +161 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.py +4 -0
- yandex/cloud/ai/dataset/v1/dataset_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +117 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +520 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +378 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +237 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +22 -5
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +53 -6
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +18 -9
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +30 -6
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +30 -13
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +197 -0
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +14 -14
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +9 -1
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.py +52 -51
- yandex/cloud/apploadbalancer/v1/load_balancer_pb2.pyi +11 -1
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.py +35 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2.pyi +62 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.py +4 -0
- yandex/cloud/apploadbalancer/v1/rate_limit_pb2_grpc.pyi +17 -0
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.py +44 -43
- yandex/cloud/apploadbalancer/v1/virtual_host_pb2.pyi +25 -6
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.py +30 -29
- yandex/cloud/apploadbalancer/v1/virtual_host_service_pb2.pyi +17 -4
- yandex/cloud/compute/v1/disk_pb2.py +12 -11
- yandex/cloud/compute/v1/disk_pb2.pyi +9 -2
- yandex/cloud/compute/v1/disk_service_pb2.py +36 -34
- yandex/cloud/compute/v1/disk_service_pb2.pyi +5 -1
- yandex/cloud/compute/v1/image_pb2.py +12 -11
- yandex/cloud/compute/v1/image_pb2.pyi +9 -2
- yandex/cloud/compute/v1/instance_service_pb2.py +39 -37
- yandex/cloud/compute/v1/instance_service_pb2.pyi +11 -7
- yandex/cloud/compute/v1/kek_pb2.py +26 -0
- yandex/cloud/compute/v1/kek_pb2.pyi +31 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.py +4 -0
- yandex/cloud/compute/v1/kek_pb2_grpc.pyi +17 -0
- yandex/cloud/compute/v1/snapshot_pb2.py +8 -7
- yandex/cloud/compute/v1/snapshot_pb2.pyi +9 -2
- yandex/cloud/datasphere/v1/project_pb2.py +6 -8
- yandex/cloud/datasphere/v1/project_pb2.pyi +1 -35
- yandex/cloud/datasphere/v1/project_service_pb2.py +39 -70
- yandex/cloud/datasphere/v1/project_service_pb2.pyi +0 -171
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.py +0 -102
- yandex/cloud/datasphere/v1/project_service_pb2_grpc.pyi +0 -60
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +21 -19
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +50 -1
- yandex/cloud/datasphere/v2/project_pb2.py +11 -15
- yandex/cloud/datasphere/v2/project_pb2.pyi +1 -55
- yandex/cloud/datasphere/v2/project_service_pb2.py +73 -84
- yandex/cloud/datasphere/v2/project_service_pb2.pyi +102 -119
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.py +34 -70
- yandex/cloud/datasphere/v2/project_service_pb2_grpc.pyi +20 -52
- yandex/cloud/datasphere/v2/resource_types_pb2.py +2 -2
- yandex/cloud/datasphere/v2/resource_types_pb2.pyi +0 -4
- yandex/cloud/k8s/v1/cluster_service_pb2.py +38 -38
- yandex/cloud/k8s/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +26 -24
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +32 -5
- yandex/cloud/mdb/kafka/v1/connector_service_pb2.py +37 -37
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +1 -0
- yandex/cloud/mdb/redis/v1/config/redis_pb2.py +16 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +56 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +19 -19
- yandex/cloud/serverless/functions/v1/function_service_pb2.py +37 -37
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/RECORD +105 -87
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.321.0.dist-info → yandexcloud-0.323.0.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,12 @@ isort:skip_file
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import builtins
|
|
7
|
+
import collections.abc
|
|
7
8
|
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
8
10
|
import google.protobuf.internal.enum_type_wrapper
|
|
9
11
|
import google.protobuf.message
|
|
12
|
+
import google.protobuf.struct_pb2
|
|
10
13
|
import google.protobuf.wrappers_pb2
|
|
11
14
|
import sys
|
|
12
15
|
import typing
|
|
@@ -132,6 +135,8 @@ class Alternative(google.protobuf.message.Message):
|
|
|
132
135
|
"""Generation was stopped due to the discovery of potentially sensitive content in the prompt or generated response.
|
|
133
136
|
To fix, modify the prompt and restart generation.
|
|
134
137
|
"""
|
|
138
|
+
ALTERNATIVE_STATUS_TOOL_CALLS: Alternative._AlternativeStatus.ValueType # 5
|
|
139
|
+
"""Tools were invoked during the completion generation."""
|
|
135
140
|
|
|
136
141
|
class AlternativeStatus(_AlternativeStatus, metaclass=_AlternativeStatusEnumTypeWrapper):
|
|
137
142
|
"""Enum representing the generation status of the alternative."""
|
|
@@ -148,6 +153,8 @@ class Alternative(google.protobuf.message.Message):
|
|
|
148
153
|
"""Generation was stopped due to the discovery of potentially sensitive content in the prompt or generated response.
|
|
149
154
|
To fix, modify the prompt and restart generation.
|
|
150
155
|
"""
|
|
156
|
+
ALTERNATIVE_STATUS_TOOL_CALLS: Alternative.AlternativeStatus.ValueType # 5
|
|
157
|
+
"""Tools were invoked during the completion generation."""
|
|
151
158
|
|
|
152
159
|
MESSAGE_FIELD_NUMBER: builtins.int
|
|
153
160
|
STATUS_FIELD_NUMBER: builtins.int
|
|
@@ -193,3 +200,193 @@ class Token(google.protobuf.message.Message):
|
|
|
193
200
|
def ClearField(self, field_name: typing.Literal["id", b"id", "special", b"special", "text", b"text"]) -> None: ...
|
|
194
201
|
|
|
195
202
|
global___Token = Token
|
|
203
|
+
|
|
204
|
+
@typing.final
|
|
205
|
+
class Tool(google.protobuf.message.Message):
|
|
206
|
+
"""Represents a tool that can be invoked during completion generation."""
|
|
207
|
+
|
|
208
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
209
|
+
|
|
210
|
+
FUNCTION_FIELD_NUMBER: builtins.int
|
|
211
|
+
@property
|
|
212
|
+
def function(self) -> global___FunctionTool:
|
|
213
|
+
"""Represents a function that can be called."""
|
|
214
|
+
|
|
215
|
+
def __init__(
|
|
216
|
+
self,
|
|
217
|
+
*,
|
|
218
|
+
function: global___FunctionTool | None = ...,
|
|
219
|
+
) -> None: ...
|
|
220
|
+
def HasField(self, field_name: typing.Literal["ToolType", b"ToolType", "function", b"function"]) -> builtins.bool: ...
|
|
221
|
+
def ClearField(self, field_name: typing.Literal["ToolType", b"ToolType", "function", b"function"]) -> None: ...
|
|
222
|
+
def WhichOneof(self, oneof_group: typing.Literal["ToolType", b"ToolType"]) -> typing.Literal["function"] | None: ...
|
|
223
|
+
|
|
224
|
+
global___Tool = Tool
|
|
225
|
+
|
|
226
|
+
@typing.final
|
|
227
|
+
class FunctionTool(google.protobuf.message.Message):
|
|
228
|
+
"""Represents a function tool that can be invoked during completion generation."""
|
|
229
|
+
|
|
230
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
231
|
+
|
|
232
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
233
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
234
|
+
PARAMETERS_FIELD_NUMBER: builtins.int
|
|
235
|
+
name: builtins.str
|
|
236
|
+
"""The name of the function."""
|
|
237
|
+
description: builtins.str
|
|
238
|
+
"""A description of the function's purpose or behavior."""
|
|
239
|
+
@property
|
|
240
|
+
def parameters(self) -> google.protobuf.struct_pb2.Struct:
|
|
241
|
+
"""A JSON Schema that defines the expected parameters for the function.
|
|
242
|
+
The schema should describe the required fields, their types, and any constraints or default values.
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
def __init__(
|
|
246
|
+
self,
|
|
247
|
+
*,
|
|
248
|
+
name: builtins.str = ...,
|
|
249
|
+
description: builtins.str = ...,
|
|
250
|
+
parameters: google.protobuf.struct_pb2.Struct | None = ...,
|
|
251
|
+
) -> None: ...
|
|
252
|
+
def HasField(self, field_name: typing.Literal["parameters", b"parameters"]) -> builtins.bool: ...
|
|
253
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "name", b"name", "parameters", b"parameters"]) -> None: ...
|
|
254
|
+
|
|
255
|
+
global___FunctionTool = FunctionTool
|
|
256
|
+
|
|
257
|
+
@typing.final
|
|
258
|
+
class ToolCall(google.protobuf.message.Message):
|
|
259
|
+
"""Represents a call to a tool."""
|
|
260
|
+
|
|
261
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
262
|
+
|
|
263
|
+
FUNCTION_CALL_FIELD_NUMBER: builtins.int
|
|
264
|
+
@property
|
|
265
|
+
def function_call(self) -> global___FunctionCall:
|
|
266
|
+
"""Represents a call to a function."""
|
|
267
|
+
|
|
268
|
+
def __init__(
|
|
269
|
+
self,
|
|
270
|
+
*,
|
|
271
|
+
function_call: global___FunctionCall | None = ...,
|
|
272
|
+
) -> None: ...
|
|
273
|
+
def HasField(self, field_name: typing.Literal["ToolCallType", b"ToolCallType", "function_call", b"function_call"]) -> builtins.bool: ...
|
|
274
|
+
def ClearField(self, field_name: typing.Literal["ToolCallType", b"ToolCallType", "function_call", b"function_call"]) -> None: ...
|
|
275
|
+
def WhichOneof(self, oneof_group: typing.Literal["ToolCallType", b"ToolCallType"]) -> typing.Literal["function_call"] | None: ...
|
|
276
|
+
|
|
277
|
+
global___ToolCall = ToolCall
|
|
278
|
+
|
|
279
|
+
@typing.final
|
|
280
|
+
class FunctionCall(google.protobuf.message.Message):
|
|
281
|
+
"""Represents the invocation of a function with specific arguments."""
|
|
282
|
+
|
|
283
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
284
|
+
|
|
285
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
286
|
+
ARGUMENTS_FIELD_NUMBER: builtins.int
|
|
287
|
+
name: builtins.str
|
|
288
|
+
"""The name of the function being called."""
|
|
289
|
+
@property
|
|
290
|
+
def arguments(self) -> google.protobuf.struct_pb2.Struct:
|
|
291
|
+
"""The structured arguments passed to the function.
|
|
292
|
+
These arguments must adhere to the JSON Schema defined in the corresponding function's parameters.
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
def __init__(
|
|
296
|
+
self,
|
|
297
|
+
*,
|
|
298
|
+
name: builtins.str = ...,
|
|
299
|
+
arguments: google.protobuf.struct_pb2.Struct | None = ...,
|
|
300
|
+
) -> None: ...
|
|
301
|
+
def HasField(self, field_name: typing.Literal["arguments", b"arguments"]) -> builtins.bool: ...
|
|
302
|
+
def ClearField(self, field_name: typing.Literal["arguments", b"arguments", "name", b"name"]) -> None: ...
|
|
303
|
+
|
|
304
|
+
global___FunctionCall = FunctionCall
|
|
305
|
+
|
|
306
|
+
@typing.final
|
|
307
|
+
class ToolCallList(google.protobuf.message.Message):
|
|
308
|
+
"""Represents a list of tool calls."""
|
|
309
|
+
|
|
310
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
311
|
+
|
|
312
|
+
TOOL_CALLS_FIELD_NUMBER: builtins.int
|
|
313
|
+
@property
|
|
314
|
+
def tool_calls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ToolCall]:
|
|
315
|
+
"""A list of tool calls to be executed."""
|
|
316
|
+
|
|
317
|
+
def __init__(
|
|
318
|
+
self,
|
|
319
|
+
*,
|
|
320
|
+
tool_calls: collections.abc.Iterable[global___ToolCall] | None = ...,
|
|
321
|
+
) -> None: ...
|
|
322
|
+
def ClearField(self, field_name: typing.Literal["tool_calls", b"tool_calls"]) -> None: ...
|
|
323
|
+
|
|
324
|
+
global___ToolCallList = ToolCallList
|
|
325
|
+
|
|
326
|
+
@typing.final
|
|
327
|
+
class ToolResult(google.protobuf.message.Message):
|
|
328
|
+
"""Represents the result of a tool call."""
|
|
329
|
+
|
|
330
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
331
|
+
|
|
332
|
+
FUNCTION_RESULT_FIELD_NUMBER: builtins.int
|
|
333
|
+
@property
|
|
334
|
+
def function_result(self) -> global___FunctionResult:
|
|
335
|
+
"""Represents the result of a function call."""
|
|
336
|
+
|
|
337
|
+
def __init__(
|
|
338
|
+
self,
|
|
339
|
+
*,
|
|
340
|
+
function_result: global___FunctionResult | None = ...,
|
|
341
|
+
) -> None: ...
|
|
342
|
+
def HasField(self, field_name: typing.Literal["ToolResultType", b"ToolResultType", "function_result", b"function_result"]) -> builtins.bool: ...
|
|
343
|
+
def ClearField(self, field_name: typing.Literal["ToolResultType", b"ToolResultType", "function_result", b"function_result"]) -> None: ...
|
|
344
|
+
def WhichOneof(self, oneof_group: typing.Literal["ToolResultType", b"ToolResultType"]) -> typing.Literal["function_result"] | None: ...
|
|
345
|
+
|
|
346
|
+
global___ToolResult = ToolResult
|
|
347
|
+
|
|
348
|
+
@typing.final
|
|
349
|
+
class FunctionResult(google.protobuf.message.Message):
|
|
350
|
+
"""Represents the result of a function call."""
|
|
351
|
+
|
|
352
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
353
|
+
|
|
354
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
355
|
+
CONTENT_FIELD_NUMBER: builtins.int
|
|
356
|
+
name: builtins.str
|
|
357
|
+
"""The name of the function that was executed."""
|
|
358
|
+
content: builtins.str
|
|
359
|
+
"""The result of the function call, represented as a string.
|
|
360
|
+
This field can be used to store the output of the function.
|
|
361
|
+
"""
|
|
362
|
+
def __init__(
|
|
363
|
+
self,
|
|
364
|
+
*,
|
|
365
|
+
name: builtins.str = ...,
|
|
366
|
+
content: builtins.str = ...,
|
|
367
|
+
) -> None: ...
|
|
368
|
+
def HasField(self, field_name: typing.Literal["ContentType", b"ContentType", "content", b"content"]) -> builtins.bool: ...
|
|
369
|
+
def ClearField(self, field_name: typing.Literal["ContentType", b"ContentType", "content", b"content", "name", b"name"]) -> None: ...
|
|
370
|
+
def WhichOneof(self, oneof_group: typing.Literal["ContentType", b"ContentType"]) -> typing.Literal["content"] | None: ...
|
|
371
|
+
|
|
372
|
+
global___FunctionResult = FunctionResult
|
|
373
|
+
|
|
374
|
+
@typing.final
|
|
375
|
+
class ToolResultList(google.protobuf.message.Message):
|
|
376
|
+
"""Represents a list of tool results."""
|
|
377
|
+
|
|
378
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
379
|
+
|
|
380
|
+
TOOL_RESULTS_FIELD_NUMBER: builtins.int
|
|
381
|
+
@property
|
|
382
|
+
def tool_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ToolResult]:
|
|
383
|
+
"""A list of tool results."""
|
|
384
|
+
|
|
385
|
+
def __init__(
|
|
386
|
+
self,
|
|
387
|
+
*,
|
|
388
|
+
tool_results: collections.abc.Iterable[global___ToolResult] | None = ...,
|
|
389
|
+
) -> None: ...
|
|
390
|
+
def ClearField(self, field_name: typing.Literal["tool_results", b"tool_results"]) -> None: ...
|
|
391
|
+
|
|
392
|
+
global___ToolResultList = ToolResultList
|
|
@@ -17,7 +17,7 @@ from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_opera
|
|
|
17
17
|
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nRyandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x36yandex/cloud/ai/foundation_models/v1/text_common.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\"\
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nRyandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service.proto\x12$yandex.cloud.ai.foundation_models.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x36yandex/cloud/ai/foundation_models/v1/text_common.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\"\xf7\x01\n\x11\x43ompletionRequest\x12\x11\n\tmodel_uri\x18\x01 \x01(\t\x12S\n\x12\x63ompletion_options\x18\x02 \x01(\x0b\x32\x37.yandex.cloud.ai.foundation_models.v1.CompletionOptions\x12?\n\x08messages\x18\x03 \x03(\x0b\x32-.yandex.cloud.ai.foundation_models.v1.Message\x12\x39\n\x05tools\x18\x04 \x03(\x0b\x32*.yandex.cloud.ai.foundation_models.v1.Tool\"\xb7\x01\n\x12\x43ompletionResponse\x12G\n\x0c\x61lternatives\x18\x01 \x03(\x0b\x32\x31.yandex.cloud.ai.foundation_models.v1.Alternative\x12\x41\n\x05usage\x18\x02 \x01(\x0b\x32\x32.yandex.cloud.ai.foundation_models.v1.ContentUsage\x12\x15\n\rmodel_version\x18\x03 \x01(\t\"2\n\x0fTokenizeRequest\x12\x11\n\tmodel_uri\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"f\n\x10TokenizeResponse\x12;\n\x06tokens\x18\x01 \x03(\x0b\x32+.yandex.cloud.ai.foundation_models.v1.Token\x12\x15\n\rmodel_version\x18\x02 \x01(\t2\xc7\x01\n\x15TextGenerationService\x12\xad\x01\n\nCompletion\x12\x37.yandex.cloud.ai.foundation_models.v1.CompletionRequest\x1a\x38.yandex.cloud.ai.foundation_models.v1.CompletionResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/foundationModels/v1/completion:\x01*0\x01\x32\xd0\x01\n\x1aTextGenerationAsyncService\x12\xb1\x01\n\nCompletion\x12\x37.yandex.cloud.ai.foundation_models.v1.CompletionRequest\x1a!.yandex.cloud.operation.Operation\"G\xb2\xd2*\x14\x12\x12\x43ompletionResponse\x82\xd3\xe4\x93\x02)\"$/foundationModels/v1/completionAsync:\x01*2\xf4\x02\n\x10TokenizerService\x12\xa3\x01\n\x08Tokenize\x12\x35.yandex.cloud.ai.foundation_models.v1.TokenizeRequest\x1a\x36.yandex.cloud.ai.foundation_models.v1.TokenizeResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/foundationModels/v1/tokenize:\x01*\x12\xb9\x01\n\x12TokenizeCompletion\x12\x37.yandex.cloud.ai.foundation_models.v1.CompletionRequest\x1a\x36.yandex.cloud.ai.foundation_models.v1.TokenizeResponse\"2\x82\xd3\xe4\x93\x02,\"\'/foundationModels/v1/tokenizeCompletion:\x01*B\x96\x01\n(yandex.cloud.api.ai.foundation_models.v1Zjgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1/text_generation;foundation_modelsb\x06proto3')
|
|
21
21
|
|
|
22
22
|
_globals = globals()
|
|
23
23
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -34,17 +34,17 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
34
34
|
_TOKENIZERSERVICE.methods_by_name['TokenizeCompletion']._options = None
|
|
35
35
|
_TOKENIZERSERVICE.methods_by_name['TokenizeCompletion']._serialized_options = b'\202\323\344\223\002,\"\'/foundationModels/v1/tokenizeCompletion:\001*'
|
|
36
36
|
_globals['_COMPLETIONREQUEST']._serialized_start=285
|
|
37
|
-
_globals['_COMPLETIONREQUEST']._serialized_end=
|
|
38
|
-
_globals['_COMPLETIONRESPONSE']._serialized_start=
|
|
39
|
-
_globals['_COMPLETIONRESPONSE']._serialized_end=
|
|
40
|
-
_globals['_TOKENIZEREQUEST']._serialized_start=
|
|
41
|
-
_globals['_TOKENIZEREQUEST']._serialized_end=
|
|
42
|
-
_globals['_TOKENIZERESPONSE']._serialized_start=
|
|
43
|
-
_globals['_TOKENIZERESPONSE']._serialized_end=
|
|
44
|
-
_globals['_TEXTGENERATIONSERVICE']._serialized_start=
|
|
45
|
-
_globals['_TEXTGENERATIONSERVICE']._serialized_end=
|
|
46
|
-
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_start=
|
|
47
|
-
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_end=
|
|
48
|
-
_globals['_TOKENIZERSERVICE']._serialized_start=
|
|
49
|
-
_globals['_TOKENIZERSERVICE']._serialized_end=
|
|
37
|
+
_globals['_COMPLETIONREQUEST']._serialized_end=532
|
|
38
|
+
_globals['_COMPLETIONRESPONSE']._serialized_start=535
|
|
39
|
+
_globals['_COMPLETIONRESPONSE']._serialized_end=718
|
|
40
|
+
_globals['_TOKENIZEREQUEST']._serialized_start=720
|
|
41
|
+
_globals['_TOKENIZEREQUEST']._serialized_end=770
|
|
42
|
+
_globals['_TOKENIZERESPONSE']._serialized_start=772
|
|
43
|
+
_globals['_TOKENIZERESPONSE']._serialized_end=874
|
|
44
|
+
_globals['_TEXTGENERATIONSERVICE']._serialized_start=877
|
|
45
|
+
_globals['_TEXTGENERATIONSERVICE']._serialized_end=1076
|
|
46
|
+
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_start=1079
|
|
47
|
+
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_end=1287
|
|
48
|
+
_globals['_TOKENIZERSERVICE']._serialized_start=1290
|
|
49
|
+
_globals['_TOKENIZERSERVICE']._serialized_end=1662
|
|
50
50
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -22,6 +22,7 @@ class CompletionRequest(google.protobuf.message.Message):
|
|
|
22
22
|
MODEL_URI_FIELD_NUMBER: builtins.int
|
|
23
23
|
COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
24
24
|
MESSAGES_FIELD_NUMBER: builtins.int
|
|
25
|
+
TOOLS_FIELD_NUMBER: builtins.int
|
|
25
26
|
model_uri: builtins.str
|
|
26
27
|
"""The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for completion generation."""
|
|
27
28
|
@property
|
|
@@ -32,15 +33,22 @@ class CompletionRequest(google.protobuf.message.Message):
|
|
|
32
33
|
def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.foundation_models.v1.text_common_pb2.Message]:
|
|
33
34
|
"""A list of messages representing the context for the completion model."""
|
|
34
35
|
|
|
36
|
+
@property
|
|
37
|
+
def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.foundation_models.v1.text_common_pb2.Tool]:
|
|
38
|
+
"""List of tools that are available for the model to invoke during the completion generation.
|
|
39
|
+
Note: This parameter is not yet supported and will be ignored if provided.
|
|
40
|
+
"""
|
|
41
|
+
|
|
35
42
|
def __init__(
|
|
36
43
|
self,
|
|
37
44
|
*,
|
|
38
45
|
model_uri: builtins.str = ...,
|
|
39
46
|
completion_options: yandex.cloud.ai.foundation_models.v1.text_common_pb2.CompletionOptions | None = ...,
|
|
40
47
|
messages: collections.abc.Iterable[yandex.cloud.ai.foundation_models.v1.text_common_pb2.Message] | None = ...,
|
|
48
|
+
tools: collections.abc.Iterable[yandex.cloud.ai.foundation_models.v1.text_common_pb2.Tool] | None = ...,
|
|
41
49
|
) -> None: ...
|
|
42
50
|
def HasField(self, field_name: typing.Literal["completion_options", b"completion_options"]) -> builtins.bool: ...
|
|
43
|
-
def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "messages", b"messages", "model_uri", b"model_uri"]) -> None: ...
|
|
51
|
+
def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "messages", b"messages", "model_uri", b"model_uri", "tools", b"tools"]) -> None: ...
|
|
44
52
|
|
|
45
53
|
global___CompletionRequest = CompletionRequest
|
|
46
54
|
|
|
@@ -11,13 +11,14 @@ from google.protobuf.internal import builder as _builder
|
|
|
11
11
|
_sym_db = _symbol_database.Default()
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
14
15
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
16
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
17
|
from yandex.cloud.apploadbalancer.v1 import logging_pb2 as yandex_dot_cloud_dot_apploadbalancer_dot_v1_dot_logging__pb2
|
|
17
18
|
from yandex.cloud.apploadbalancer.v1 import target_group_pb2 as yandex_dot_cloud_dot_apploadbalancer_dot_v1_dot_target__group__pb2
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/apploadbalancer/v1/load_balancer.proto\x12\x1fyandex.cloud.apploadbalancer.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\x1a-yandex/cloud/apploadbalancer/v1/logging.proto\x1a\x32yandex/cloud/apploadbalancer/v1/target_group.proto\"\xa7\x06\n\x0cLoadBalancer\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x04 \x01(\t\x12I\n\x06labels\x18\x05 \x03(\x0b\x32\x39.yandex.cloud.apploadbalancer.v1.LoadBalancer.LabelsEntry\x12\x44\n\x06status\x18\x06 \x01(\x0e\x32\x34.yandex.cloud.apploadbalancer.v1.LoadBalancer.Status\x12\x11\n\tregion_id\x18\x07 \x01(\t\x12\x12\n\nnetwork_id\x18\x08 \x01(\t\x12<\n\tlisteners\x18\t \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.Listener\x12L\n\x11\x61llocation_policy\x18\n \x01(\x0b\x32\x31.yandex.cloud.apploadbalancer.v1.AllocationPolicy\x12\x14\n\x0clog_group_id\x18\x0b \x01(\t\x12\x1a\n\x12security_group_ids\x18\x0c \x03(\t\x12.\n\ncreated_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x11\x61uto_scale_policy\x18\x0e \x01(\x0b\x32\x30.yandex.cloud.apploadbalancer.v1.AutoScalePolicy\x12@\n\x0blog_options\x18\x0f \x01(\x0b\x32+.yandex.cloud.apploadbalancer.v1.LogOptions\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08STARTING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\"\x9f\x02\n\x07\x41\x64\x64ress\x12U\n\x15\x65xternal_ipv4_address\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressH\x00\x12U\n\x15internal_ipv4_address\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.InternalIpv4AddressH\x00\x12U\n\x15\x65xternal_ipv6_address\x18\x03 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressH\x00\x42\x0f\n\x07\x61\x64\x64ress\x12\x04\xc0\xc1\x31\x01\"&\n\x13\x45xternalIpv4Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\"9\n\x13InternalIpv4Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x11\n\tsubnet_id\x18\x02 \x01(\t\"&\n\x13\x45xternalIpv6Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\"M\n\x08Location\x12\x15\n\x07zone_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x11\n\tsubnet_id\x18\x02 \x01(\t\x12\x17\n\x0f\x64isable_traffic\x18\x03 \x01(\x08\"]\n\x10\x41llocationPolicy\x12I\n\tlocations\x18\x01 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.LocationB\x0b\x82\xc8\x31\x03>=1\x90\xc8\x31\x01\"\xad\x02\n\x08Listener\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12<\n\tendpoints\x18\x02 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.Endpoint\x12=\n\x04http\x18\x03 \x01(\x0b\x32-.yandex.cloud.apploadbalancer.v1.HttpListenerH\x00\x12;\n\x03tls\x18\x04 \x01(\x0b\x32,.yandex.cloud.apploadbalancer.v1.TlsListenerH\x00\x12\x41\n\x06stream\x18\x05 \x01(\x0b\x32/.yandex.cloud.apploadbalancer.v1.StreamListenerH\x00\x42\x10\n\x08listener\x12\x04\xc0\xc1\x31\x01\"q\n\x08\x45ndpoint\x12\x43\n\taddresses\x18\x01 \x03(\x0b\x32(.yandex.cloud.apploadbalancer.v1.AddressB\x06\x82\xc8\x31\x02>0\x12 \n\x05ports\x18\x02 \x03(\x03\x42\x11\xfa\xc7\x31\x07\x31-65535\x82\xc8\x31\x02>0\"\x8c\x01\n\x0cHttpListener\x12=\n\x07handler\x18\x01 \x01(\x0b\x32,.yandex.cloud.apploadbalancer.v1.HttpHandler\x12=\n\tredirects\x18\x02 \x01(\x0b\x32*.yandex.cloud.apploadbalancer.v1.Redirects\"\x9a\x01\n\x0bTlsListener\x12J\n\x0f\x64\x65\x66\x61ult_handler\x18\x01 \x01(\x0b\x32+.yandex.cloud.apploadbalancer.v1.TlsHandlerB\x04\xe8\xc7\x31\x01\x12?\n\x0csni_handlers\x18\x02 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.SniMatch\"W\n\x0eStreamListener\x12\x45\n\x07handler\x18\x01 \x01(\x0b\x32..yandex.cloud.apploadbalancer.v1.StreamHandlerB\x04\xe8\xc7\x31\x01\".\n\x0cHttp2Options\x12\x1e\n\x16max_concurrent_streams\x18\x01 \x01(\x03\"
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/apploadbalancer/v1/load_balancer.proto\x12\x1fyandex.cloud.apploadbalancer.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\x1a-yandex/cloud/apploadbalancer/v1/logging.proto\x1a\x32yandex/cloud/apploadbalancer/v1/target_group.proto\"\xa7\x06\n\x0cLoadBalancer\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tfolder_id\x18\x04 \x01(\t\x12I\n\x06labels\x18\x05 \x03(\x0b\x32\x39.yandex.cloud.apploadbalancer.v1.LoadBalancer.LabelsEntry\x12\x44\n\x06status\x18\x06 \x01(\x0e\x32\x34.yandex.cloud.apploadbalancer.v1.LoadBalancer.Status\x12\x11\n\tregion_id\x18\x07 \x01(\t\x12\x12\n\nnetwork_id\x18\x08 \x01(\t\x12<\n\tlisteners\x18\t \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.Listener\x12L\n\x11\x61llocation_policy\x18\n \x01(\x0b\x32\x31.yandex.cloud.apploadbalancer.v1.AllocationPolicy\x12\x14\n\x0clog_group_id\x18\x0b \x01(\t\x12\x1a\n\x12security_group_ids\x18\x0c \x03(\t\x12.\n\ncreated_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\x11\x61uto_scale_policy\x18\x0e \x01(\x0b\x32\x30.yandex.cloud.apploadbalancer.v1.AutoScalePolicy\x12@\n\x0blog_options\x18\x0f \x01(\x0b\x32+.yandex.cloud.apploadbalancer.v1.LogOptions\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08STARTING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\"\x9f\x02\n\x07\x41\x64\x64ress\x12U\n\x15\x65xternal_ipv4_address\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.ExternalIpv4AddressH\x00\x12U\n\x15internal_ipv4_address\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.InternalIpv4AddressH\x00\x12U\n\x15\x65xternal_ipv6_address\x18\x03 \x01(\x0b\x32\x34.yandex.cloud.apploadbalancer.v1.ExternalIpv6AddressH\x00\x42\x0f\n\x07\x61\x64\x64ress\x12\x04\xc0\xc1\x31\x01\"&\n\x13\x45xternalIpv4Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\"9\n\x13InternalIpv4Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x11\n\tsubnet_id\x18\x02 \x01(\t\"&\n\x13\x45xternalIpv6Address\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\"M\n\x08Location\x12\x15\n\x07zone_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x11\n\tsubnet_id\x18\x02 \x01(\t\x12\x17\n\x0f\x64isable_traffic\x18\x03 \x01(\x08\"]\n\x10\x41llocationPolicy\x12I\n\tlocations\x18\x01 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.LocationB\x0b\x82\xc8\x31\x03>=1\x90\xc8\x31\x01\"\xad\x02\n\x08Listener\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12<\n\tendpoints\x18\x02 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.Endpoint\x12=\n\x04http\x18\x03 \x01(\x0b\x32-.yandex.cloud.apploadbalancer.v1.HttpListenerH\x00\x12;\n\x03tls\x18\x04 \x01(\x0b\x32,.yandex.cloud.apploadbalancer.v1.TlsListenerH\x00\x12\x41\n\x06stream\x18\x05 \x01(\x0b\x32/.yandex.cloud.apploadbalancer.v1.StreamListenerH\x00\x42\x10\n\x08listener\x12\x04\xc0\xc1\x31\x01\"q\n\x08\x45ndpoint\x12\x43\n\taddresses\x18\x01 \x03(\x0b\x32(.yandex.cloud.apploadbalancer.v1.AddressB\x06\x82\xc8\x31\x02>0\x12 \n\x05ports\x18\x02 \x03(\x03\x42\x11\xfa\xc7\x31\x07\x31-65535\x82\xc8\x31\x02>0\"\x8c\x01\n\x0cHttpListener\x12=\n\x07handler\x18\x01 \x01(\x0b\x32,.yandex.cloud.apploadbalancer.v1.HttpHandler\x12=\n\tredirects\x18\x02 \x01(\x0b\x32*.yandex.cloud.apploadbalancer.v1.Redirects\"\x9a\x01\n\x0bTlsListener\x12J\n\x0f\x64\x65\x66\x61ult_handler\x18\x01 \x01(\x0b\x32+.yandex.cloud.apploadbalancer.v1.TlsHandlerB\x04\xe8\xc7\x31\x01\x12?\n\x0csni_handlers\x18\x02 \x03(\x0b\x32).yandex.cloud.apploadbalancer.v1.SniMatch\"W\n\x0eStreamListener\x12\x45\n\x07handler\x18\x01 \x01(\x0b\x32..yandex.cloud.apploadbalancer.v1.StreamHandlerB\x04\xe8\xc7\x31\x01\".\n\x0cHttp2Options\x12\x1e\n\x16max_concurrent_streams\x18\x01 \x01(\x03\"`\n\rStreamHandler\x12\x1e\n\x10\x62\x61\x63kend_group_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12/\n\x0cidle_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb6\x01\n\x0bHttpHandler\x12\x16\n\x0ehttp_router_id\x18\x01 \x01(\t\x12\x46\n\rhttp2_options\x18\x02 \x01(\x0b\x32-.yandex.cloud.apploadbalancer.v1.Http2OptionsH\x00\x12\x16\n\x0c\x61llow_http10\x18\x03 \x01(\x08H\x00\x12\x1a\n\x12rewrite_request_id\x18\x04 \x01(\x08\x42\x13\n\x11protocol_settings\"\"\n\tRedirects\x12\x15\n\rhttp_to_https\x18\x01 \x01(\x08\"\x80\x01\n\x08SniMatch\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1c\n\x0cserver_names\x18\x02 \x03(\tB\x06\x82\xc8\x31\x02>0\x12\x42\n\x07handler\x18\x03 \x01(\x0b\x32+.yandex.cloud.apploadbalancer.v1.TlsHandlerB\x04\xe8\xc7\x31\x01\"\xce\x01\n\nTlsHandler\x12\x44\n\x0chttp_handler\x18\x02 \x01(\x0b\x32,.yandex.cloud.apploadbalancer.v1.HttpHandlerH\x00\x12H\n\x0estream_handler\x18\x04 \x01(\x0b\x32..yandex.cloud.apploadbalancer.v1.StreamHandlerH\x00\x12\x1f\n\x0f\x63\x65rtificate_ids\x18\x03 \x03(\tB\x06\x82\xc8\x31\x02>0B\x0f\n\x07handler\x12\x04\xc0\xc1\x31\x01\"\x8c\x04\n\x0bTargetState\x12N\n\x06status\x18\x01 \x01(\x0b\x32>.yandex.cloud.apploadbalancer.v1.TargetState.HealthcheckStatus\x12=\n\x06target\x18\x02 \x01(\x0b\x32\'.yandex.cloud.apploadbalancer.v1.TargetB\x04\xe8\xc7\x31\x01\x1an\n\x11HealthcheckStatus\x12Y\n\rzone_statuses\x18\x01 \x03(\x0b\x32\x42.yandex.cloud.apploadbalancer.v1.TargetState.ZoneHealthcheckStatus\x1a\x8d\x01\n\x15ZoneHealthcheckStatus\x12\x15\n\x07zone_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x43\n\x06status\x18\x02 \x01(\x0e\x32\x33.yandex.cloud.apploadbalancer.v1.TargetState.Status\x12\x18\n\x10\x66\x61iled_active_hc\x18\x03 \x01(\x08\"n\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\x15\n\x11PARTIALLY_HEALTHY\x10\x02\x12\r\n\tUNHEALTHY\x10\x03\x12\x0c\n\x08\x44RAINING\x10\x04\x12\x0b\n\x07TIMEOUT\x10\x05\"R\n\x0f\x41utoScalePolicy\x12!\n\rmin_zone_size\x18\x01 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000\x12\x1c\n\x08max_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06\x30-1000Bz\n#yandex.cloud.api.apploadbalancer.v1ZSgithub.com/yandex-cloud/go-genproto/yandex/cloud/apploadbalancer/v1;apploadbalancerb\x06proto3')
|
|
21
22
|
|
|
22
23
|
_globals = globals()
|
|
23
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -65,54 +66,54 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
65
66
|
_AUTOSCALEPOLICY.fields_by_name['min_zone_size']._serialized_options = b'\372\3071\0060-1000'
|
|
66
67
|
_AUTOSCALEPOLICY.fields_by_name['max_size']._options = None
|
|
67
68
|
_AUTOSCALEPOLICY.fields_by_name['max_size']._serialized_options = b'\372\3071\0060-1000'
|
|
68
|
-
_globals['_LOADBALANCER']._serialized_start=
|
|
69
|
-
_globals['_LOADBALANCER']._serialized_end=
|
|
70
|
-
_globals['_LOADBALANCER_LABELSENTRY']._serialized_start=
|
|
71
|
-
_globals['_LOADBALANCER_LABELSENTRY']._serialized_end=
|
|
72
|
-
_globals['_LOADBALANCER_STATUS']._serialized_start=
|
|
73
|
-
_globals['_LOADBALANCER_STATUS']._serialized_end=
|
|
74
|
-
_globals['_ADDRESS']._serialized_start=
|
|
75
|
-
_globals['_ADDRESS']._serialized_end=
|
|
76
|
-
_globals['_EXTERNALIPV4ADDRESS']._serialized_start=
|
|
77
|
-
_globals['_EXTERNALIPV4ADDRESS']._serialized_end=
|
|
78
|
-
_globals['_INTERNALIPV4ADDRESS']._serialized_start=
|
|
79
|
-
_globals['_INTERNALIPV4ADDRESS']._serialized_end=
|
|
80
|
-
_globals['_EXTERNALIPV6ADDRESS']._serialized_start=
|
|
81
|
-
_globals['_EXTERNALIPV6ADDRESS']._serialized_end=
|
|
82
|
-
_globals['_LOCATION']._serialized_start=
|
|
83
|
-
_globals['_LOCATION']._serialized_end=
|
|
84
|
-
_globals['_ALLOCATIONPOLICY']._serialized_start=
|
|
85
|
-
_globals['_ALLOCATIONPOLICY']._serialized_end=
|
|
86
|
-
_globals['_LISTENER']._serialized_start=
|
|
87
|
-
_globals['_LISTENER']._serialized_end=
|
|
88
|
-
_globals['_ENDPOINT']._serialized_start=
|
|
89
|
-
_globals['_ENDPOINT']._serialized_end=
|
|
90
|
-
_globals['_HTTPLISTENER']._serialized_start=
|
|
91
|
-
_globals['_HTTPLISTENER']._serialized_end=
|
|
92
|
-
_globals['_TLSLISTENER']._serialized_start=
|
|
93
|
-
_globals['_TLSLISTENER']._serialized_end=
|
|
94
|
-
_globals['_STREAMLISTENER']._serialized_start=
|
|
95
|
-
_globals['_STREAMLISTENER']._serialized_end=
|
|
96
|
-
_globals['_HTTP2OPTIONS']._serialized_start=
|
|
97
|
-
_globals['_HTTP2OPTIONS']._serialized_end=
|
|
98
|
-
_globals['_STREAMHANDLER']._serialized_start=
|
|
99
|
-
_globals['_STREAMHANDLER']._serialized_end=
|
|
100
|
-
_globals['_HTTPHANDLER']._serialized_start=
|
|
101
|
-
_globals['_HTTPHANDLER']._serialized_end=
|
|
102
|
-
_globals['_REDIRECTS']._serialized_start=
|
|
103
|
-
_globals['_REDIRECTS']._serialized_end=
|
|
104
|
-
_globals['_SNIMATCH']._serialized_start=
|
|
105
|
-
_globals['_SNIMATCH']._serialized_end=
|
|
106
|
-
_globals['_TLSHANDLER']._serialized_start=
|
|
107
|
-
_globals['_TLSHANDLER']._serialized_end=
|
|
108
|
-
_globals['_TARGETSTATE']._serialized_start=
|
|
109
|
-
_globals['_TARGETSTATE']._serialized_end=
|
|
110
|
-
_globals['_TARGETSTATE_HEALTHCHECKSTATUS']._serialized_start=
|
|
111
|
-
_globals['_TARGETSTATE_HEALTHCHECKSTATUS']._serialized_end=
|
|
112
|
-
_globals['_TARGETSTATE_ZONEHEALTHCHECKSTATUS']._serialized_start=
|
|
113
|
-
_globals['_TARGETSTATE_ZONEHEALTHCHECKSTATUS']._serialized_end=
|
|
114
|
-
_globals['_TARGETSTATE_STATUS']._serialized_start=
|
|
115
|
-
_globals['_TARGETSTATE_STATUS']._serialized_end=
|
|
116
|
-
_globals['_AUTOSCALEPOLICY']._serialized_start=
|
|
117
|
-
_globals['_AUTOSCALEPOLICY']._serialized_end=
|
|
69
|
+
_globals['_LOADBALANCER']._serialized_start=284
|
|
70
|
+
_globals['_LOADBALANCER']._serialized_end=1091
|
|
71
|
+
_globals['_LOADBALANCER_LABELSENTRY']._serialized_start=931
|
|
72
|
+
_globals['_LOADBALANCER_LABELSENTRY']._serialized_end=976
|
|
73
|
+
_globals['_LOADBALANCER_STATUS']._serialized_start=978
|
|
74
|
+
_globals['_LOADBALANCER_STATUS']._serialized_end=1091
|
|
75
|
+
_globals['_ADDRESS']._serialized_start=1094
|
|
76
|
+
_globals['_ADDRESS']._serialized_end=1381
|
|
77
|
+
_globals['_EXTERNALIPV4ADDRESS']._serialized_start=1383
|
|
78
|
+
_globals['_EXTERNALIPV4ADDRESS']._serialized_end=1421
|
|
79
|
+
_globals['_INTERNALIPV4ADDRESS']._serialized_start=1423
|
|
80
|
+
_globals['_INTERNALIPV4ADDRESS']._serialized_end=1480
|
|
81
|
+
_globals['_EXTERNALIPV6ADDRESS']._serialized_start=1482
|
|
82
|
+
_globals['_EXTERNALIPV6ADDRESS']._serialized_end=1520
|
|
83
|
+
_globals['_LOCATION']._serialized_start=1522
|
|
84
|
+
_globals['_LOCATION']._serialized_end=1599
|
|
85
|
+
_globals['_ALLOCATIONPOLICY']._serialized_start=1601
|
|
86
|
+
_globals['_ALLOCATIONPOLICY']._serialized_end=1694
|
|
87
|
+
_globals['_LISTENER']._serialized_start=1697
|
|
88
|
+
_globals['_LISTENER']._serialized_end=1998
|
|
89
|
+
_globals['_ENDPOINT']._serialized_start=2000
|
|
90
|
+
_globals['_ENDPOINT']._serialized_end=2113
|
|
91
|
+
_globals['_HTTPLISTENER']._serialized_start=2116
|
|
92
|
+
_globals['_HTTPLISTENER']._serialized_end=2256
|
|
93
|
+
_globals['_TLSLISTENER']._serialized_start=2259
|
|
94
|
+
_globals['_TLSLISTENER']._serialized_end=2413
|
|
95
|
+
_globals['_STREAMLISTENER']._serialized_start=2415
|
|
96
|
+
_globals['_STREAMLISTENER']._serialized_end=2502
|
|
97
|
+
_globals['_HTTP2OPTIONS']._serialized_start=2504
|
|
98
|
+
_globals['_HTTP2OPTIONS']._serialized_end=2550
|
|
99
|
+
_globals['_STREAMHANDLER']._serialized_start=2552
|
|
100
|
+
_globals['_STREAMHANDLER']._serialized_end=2648
|
|
101
|
+
_globals['_HTTPHANDLER']._serialized_start=2651
|
|
102
|
+
_globals['_HTTPHANDLER']._serialized_end=2833
|
|
103
|
+
_globals['_REDIRECTS']._serialized_start=2835
|
|
104
|
+
_globals['_REDIRECTS']._serialized_end=2869
|
|
105
|
+
_globals['_SNIMATCH']._serialized_start=2872
|
|
106
|
+
_globals['_SNIMATCH']._serialized_end=3000
|
|
107
|
+
_globals['_TLSHANDLER']._serialized_start=3003
|
|
108
|
+
_globals['_TLSHANDLER']._serialized_end=3209
|
|
109
|
+
_globals['_TARGETSTATE']._serialized_start=3212
|
|
110
|
+
_globals['_TARGETSTATE']._serialized_end=3736
|
|
111
|
+
_globals['_TARGETSTATE_HEALTHCHECKSTATUS']._serialized_start=3370
|
|
112
|
+
_globals['_TARGETSTATE_HEALTHCHECKSTATUS']._serialized_end=3480
|
|
113
|
+
_globals['_TARGETSTATE_ZONEHEALTHCHECKSTATUS']._serialized_start=3483
|
|
114
|
+
_globals['_TARGETSTATE_ZONEHEALTHCHECKSTATUS']._serialized_end=3624
|
|
115
|
+
_globals['_TARGETSTATE_STATUS']._serialized_start=3626
|
|
116
|
+
_globals['_TARGETSTATE_STATUS']._serialized_end=3736
|
|
117
|
+
_globals['_AUTOSCALEPOLICY']._serialized_start=3738
|
|
118
|
+
_globals['_AUTOSCALEPOLICY']._serialized_end=3820
|
|
118
119
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -6,6 +6,7 @@ isort:skip_file
|
|
|
6
6
|
import builtins
|
|
7
7
|
import collections.abc
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.duration_pb2
|
|
9
10
|
import google.protobuf.internal.containers
|
|
10
11
|
import google.protobuf.internal.enum_type_wrapper
|
|
11
12
|
import google.protobuf.message
|
|
@@ -532,6 +533,7 @@ class StreamHandler(google.protobuf.message.Message):
|
|
|
532
533
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
533
534
|
|
|
534
535
|
BACKEND_GROUP_ID_FIELD_NUMBER: builtins.int
|
|
536
|
+
IDLE_TIMEOUT_FIELD_NUMBER: builtins.int
|
|
535
537
|
backend_group_id: builtins.str
|
|
536
538
|
"""ID of the backend group processing requests. For details about the concept, see
|
|
537
539
|
[documentation](/docs/application-load-balancer/concepts/backend-group).
|
|
@@ -540,12 +542,20 @@ class StreamHandler(google.protobuf.message.Message):
|
|
|
540
542
|
|
|
541
543
|
To get the list of all available backend groups, make a [BackendGroupService.List] request.
|
|
542
544
|
"""
|
|
545
|
+
@property
|
|
546
|
+
def idle_timeout(self) -> google.protobuf.duration_pb2.Duration:
|
|
547
|
+
"""The idle timeout is duration during which no data is transmitted or received on either the upstream or downstream connection.
|
|
548
|
+
If not configured, the default idle timeout is 1 hour. Setting it to 0 disables the timeout.
|
|
549
|
+
"""
|
|
550
|
+
|
|
543
551
|
def __init__(
|
|
544
552
|
self,
|
|
545
553
|
*,
|
|
546
554
|
backend_group_id: builtins.str = ...,
|
|
555
|
+
idle_timeout: google.protobuf.duration_pb2.Duration | None = ...,
|
|
547
556
|
) -> None: ...
|
|
548
|
-
def
|
|
557
|
+
def HasField(self, field_name: typing.Literal["idle_timeout", b"idle_timeout"]) -> builtins.bool: ...
|
|
558
|
+
def ClearField(self, field_name: typing.Literal["backend_group_id", b"backend_group_id", "idle_timeout", b"idle_timeout"]) -> None: ...
|
|
549
559
|
|
|
550
560
|
global___StreamHandler = StreamHandler
|
|
551
561
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/apploadbalancer/v1/rate_limit.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0yandex/cloud/apploadbalancer/v1/rate_limit.proto\x12\x1fyandex.cloud.apploadbalancer.v1\x1a\x1dyandex/cloud/validation.proto\"\xf1\x01\n\tRateLimit\x12\x46\n\x0c\x61ll_requests\x18\x03 \x01(\x0b\x32\x30.yandex.cloud.apploadbalancer.v1.RateLimit.Limit\x12I\n\x0frequests_per_ip\x18\x04 \x01(\x0b\x32\x30.yandex.cloud.apploadbalancer.v1.RateLimit.Limit\x1aQ\n\x05Limit\x12\x1c\n\nper_second\x18\x01 \x01(\x03\x42\x06\xfa\xc7\x31\x02>0H\x00\x12\x1c\n\nper_minute\x18\x02 \x01(\x03\x42\x06\xfa\xc7\x31\x02>0H\x00\x42\x0c\n\x04rate\x12\x04\xc0\xc1\x31\x01\x42z\n#yandex.cloud.api.apploadbalancer.v1ZSgithub.com/yandex-cloud/go-genproto/yandex/cloud/apploadbalancer/v1;apploadbalancerb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.apploadbalancer.v1.rate_limit_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n#yandex.cloud.api.apploadbalancer.v1ZSgithub.com/yandex-cloud/go-genproto/yandex/cloud/apploadbalancer/v1;apploadbalancer'
|
|
25
|
+
_RATELIMIT_LIMIT.oneofs_by_name['rate']._options = None
|
|
26
|
+
_RATELIMIT_LIMIT.oneofs_by_name['rate']._serialized_options = b'\300\3011\001'
|
|
27
|
+
_RATELIMIT_LIMIT.fields_by_name['per_second']._options = None
|
|
28
|
+
_RATELIMIT_LIMIT.fields_by_name['per_second']._serialized_options = b'\372\3071\002>0'
|
|
29
|
+
_RATELIMIT_LIMIT.fields_by_name['per_minute']._options = None
|
|
30
|
+
_RATELIMIT_LIMIT.fields_by_name['per_minute']._serialized_options = b'\372\3071\002>0'
|
|
31
|
+
_globals['_RATELIMIT']._serialized_start=117
|
|
32
|
+
_globals['_RATELIMIT']._serialized_end=358
|
|
33
|
+
_globals['_RATELIMIT_LIMIT']._serialized_start=277
|
|
34
|
+
_globals['_RATELIMIT_LIMIT']._serialized_end=358
|
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class RateLimit(google.protobuf.message.Message):
|
|
15
|
+
"""RateLimit is a set of settings for global rate limiting."""
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class Limit(google.protobuf.message.Message):
|
|
21
|
+
"""Limit is a rate limit value settings."""
|
|
22
|
+
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
PER_SECOND_FIELD_NUMBER: builtins.int
|
|
26
|
+
PER_MINUTE_FIELD_NUMBER: builtins.int
|
|
27
|
+
per_second: builtins.int
|
|
28
|
+
"""PerSecond is a limit value specified with per second time unit."""
|
|
29
|
+
per_minute: builtins.int
|
|
30
|
+
"""PerMinute is a limit value specified with per minute time unit."""
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
per_second: builtins.int = ...,
|
|
35
|
+
per_minute: builtins.int = ...,
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def HasField(self, field_name: typing.Literal["per_minute", b"per_minute", "per_second", b"per_second", "rate", b"rate"]) -> builtins.bool: ...
|
|
38
|
+
def ClearField(self, field_name: typing.Literal["per_minute", b"per_minute", "per_second", b"per_second", "rate", b"rate"]) -> None: ...
|
|
39
|
+
def WhichOneof(self, oneof_group: typing.Literal["rate", b"rate"]) -> typing.Literal["per_second", "per_minute"] | None: ...
|
|
40
|
+
|
|
41
|
+
ALL_REQUESTS_FIELD_NUMBER: builtins.int
|
|
42
|
+
REQUESTS_PER_IP_FIELD_NUMBER: builtins.int
|
|
43
|
+
@property
|
|
44
|
+
def all_requests(self) -> global___RateLimit.Limit:
|
|
45
|
+
"""AllRequests is a rate limit configuration applied to all incoming requests."""
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def requests_per_ip(self) -> global___RateLimit.Limit:
|
|
49
|
+
"""RequestsPerIp is a rate limit configuration applied separately for each set of requests
|
|
50
|
+
grouped by client IP address.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def __init__(
|
|
54
|
+
self,
|
|
55
|
+
*,
|
|
56
|
+
all_requests: global___RateLimit.Limit | None = ...,
|
|
57
|
+
requests_per_ip: global___RateLimit.Limit | None = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def HasField(self, field_name: typing.Literal["all_requests", b"all_requests", "requests_per_ip", b"requests_per_ip"]) -> builtins.bool: ...
|
|
60
|
+
def ClearField(self, field_name: typing.Literal["all_requests", b"all_requests", "requests_per_ip", b"requests_per_ip"]) -> None: ...
|
|
61
|
+
|
|
62
|
+
global___RateLimit = RateLimit
|
|
@@ -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
|
+
...
|