yandexcloud 0.352.0__py3-none-any.whl → 0.354.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/foundation_models/v1/text_generation/text_generation_service_pb2.py +18 -18
- yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +18 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.py +2 -2
- yandex/cloud/baremetal/v1alpha/disk_pb2.pyi +8 -4
- yandex/cloud/baremetal/v1alpha/server_pb2.py +13 -11
- yandex/cloud/connectionmanager/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/__init__.py +0 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.py +46 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2.pyi +138 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/common_pb2.py +49 -0
- yandex/cloud/connectionmanager/v1/common_pb2.pyi +187 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.py +58 -0
- yandex/cloud/connectionmanager/v1/connection_pb2.pyi +205 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/connection_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.py +91 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2.pyi +320 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.py +371 -0
- yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +187 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2.pyi +169 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2.pyi +151 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.py +48 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2.pyi +148 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.py +35 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2.pyi +8 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2.pyi +171 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/redis_pb2.pyi +163 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/redis_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.py +44 -0
- yandex/cloud/connectionmanager/v1/trino_pb2.pyi +88 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/trino_pb2_grpc.pyi +17 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.py +50 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2.pyi +173 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.py +24 -0
- yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +94 -76
- yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +239 -14
- yandex/cloud/organizationmanager/v1/group_pb2.py +3 -3
- yandex/cloud/organizationmanager/v1/group_pb2.pyi +9 -1
- yandex/cloud/organizationmanager/v1/group_service_pb2.py +95 -37
- yandex/cloud/organizationmanager/v1/group_service_pb2.pyi +276 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.py +220 -0
- yandex/cloud/organizationmanager/v1/group_service_pb2_grpc.pyi +100 -0
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.py +17 -3
- yandex/cloud/organizationmanager/v1/saml/federation_pb2.pyi +209 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.py +55 -3
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.pyi +231 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.py +222 -0
- yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.pyi +109 -0
- yandexcloud/__init__.py +1 -1
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/RECORD +80 -26
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.352.0.dist-info → yandexcloud-0.354.0.dist-info}/top_level.txt +0 -0
|
@@ -30,7 +30,7 @@ from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operati
|
|
|
30
30
|
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
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\x46yandex/cloud/ai/foundation_models/v1/batch_inference_task_status.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe9\x03\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\x12\x15\n\x0bjson_object\x18\x05 \x01(\x08H\x00\x12G\n\x0bjson_schema\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.JsonSchemaH\x00\x12\x37\n\x13parallel_tool_calls\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x45\n\x0btool_choice\x18\x08 \x01(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.ToolChoiceB\x10\n\x0eResponseFormat\"\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\"\
|
|
33
|
+
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\x46yandex/cloud/ai/foundation_models/v1/batch_inference_task_status.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe9\x03\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\x12\x15\n\x0bjson_object\x18\x05 \x01(\x08H\x00\x12G\n\x0bjson_schema\x18\x06 \x01(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.JsonSchemaH\x00\x12\x37\n\x13parallel_tool_calls\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x45\n\x0btool_choice\x18\x08 \x01(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.ToolChoiceB\x10\n\x0eResponseFormat\"\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\"\xa1\x02\n\x16\x42\x61tchCompletionRequest\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\x1b\n\x11source_dataset_id\x18\x03 \x01(\tH\x00\x12\x15\n\x0bjson_object\x18\x04 \x01(\x08H\x01\x12G\n\x0bjson_schema\x18\x05 \x01(\x0b\x32\x30.yandex.cloud.ai.foundation_models.v1.JsonSchemaH\x01\x42\x10\n\x0erequest_formatB\x10\n\x0eResponseFormat\"\xb1\x01\n\x17\x42\x61tchCompletionMetadata\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12S\n\x0btask_status\x18\x02 \x01(\x0e\x32>.yandex.cloud.ai.foundation_models.v1.BatchInferenceTaskStatus\x12\x19\n\x11\x63ompleted_batches\x18\x03 \x01(\x03\x12\x15\n\rtotal_batches\x18\x04 \x01(\x03\"\x9a\x01\n\x17\x42\x61tchCompletionResponse\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12S\n\x0btask_status\x18\x02 \x01(\x0e\x32>.yandex.cloud.ai.foundation_models.v1.BatchInferenceTaskStatus\x12\x19\n\x11result_dataset_id\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\xf3\x01\n\x1aTextGenerationBatchService\x12\xd4\x01\n\nCompletion\x12<.yandex.cloud.ai.foundation_models.v1.BatchCompletionRequest\x1a!.yandex.cloud.operation.Operation\"e\xb2\xd2*2\n\x17\x42\x61tchCompletionMetadata\x12\x17\x42\x61tchCompletionResponse\x82\xd3\xe4\x93\x02)\"$/foundationModels/v1/completionBatch:\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')
|
|
34
34
|
|
|
35
35
|
_globals = globals()
|
|
36
36
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -53,21 +53,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
53
53
|
_globals['_COMPLETIONRESPONSE']._serialized_start=881
|
|
54
54
|
_globals['_COMPLETIONRESPONSE']._serialized_end=1064
|
|
55
55
|
_globals['_BATCHCOMPLETIONREQUEST']._serialized_start=1067
|
|
56
|
-
_globals['_BATCHCOMPLETIONREQUEST']._serialized_end=
|
|
57
|
-
_globals['_BATCHCOMPLETIONMETADATA']._serialized_start=
|
|
58
|
-
_globals['_BATCHCOMPLETIONMETADATA']._serialized_end=
|
|
59
|
-
_globals['_BATCHCOMPLETIONRESPONSE']._serialized_start=
|
|
60
|
-
_globals['_BATCHCOMPLETIONRESPONSE']._serialized_end=
|
|
61
|
-
_globals['_TOKENIZEREQUEST']._serialized_start=
|
|
62
|
-
_globals['_TOKENIZEREQUEST']._serialized_end=
|
|
63
|
-
_globals['_TOKENIZERESPONSE']._serialized_start=
|
|
64
|
-
_globals['_TOKENIZERESPONSE']._serialized_end=
|
|
65
|
-
_globals['_TEXTGENERATIONSERVICE']._serialized_start=
|
|
66
|
-
_globals['_TEXTGENERATIONSERVICE']._serialized_end=
|
|
67
|
-
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_start=
|
|
68
|
-
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_end=
|
|
69
|
-
_globals['_TEXTGENERATIONBATCHSERVICE']._serialized_start=
|
|
70
|
-
_globals['_TEXTGENERATIONBATCHSERVICE']._serialized_end=
|
|
71
|
-
_globals['_TOKENIZERSERVICE']._serialized_start=
|
|
72
|
-
_globals['_TOKENIZERSERVICE']._serialized_end=
|
|
56
|
+
_globals['_BATCHCOMPLETIONREQUEST']._serialized_end=1356
|
|
57
|
+
_globals['_BATCHCOMPLETIONMETADATA']._serialized_start=1359
|
|
58
|
+
_globals['_BATCHCOMPLETIONMETADATA']._serialized_end=1536
|
|
59
|
+
_globals['_BATCHCOMPLETIONRESPONSE']._serialized_start=1539
|
|
60
|
+
_globals['_BATCHCOMPLETIONRESPONSE']._serialized_end=1693
|
|
61
|
+
_globals['_TOKENIZEREQUEST']._serialized_start=1695
|
|
62
|
+
_globals['_TOKENIZEREQUEST']._serialized_end=1745
|
|
63
|
+
_globals['_TOKENIZERESPONSE']._serialized_start=1747
|
|
64
|
+
_globals['_TOKENIZERESPONSE']._serialized_end=1849
|
|
65
|
+
_globals['_TEXTGENERATIONSERVICE']._serialized_start=1852
|
|
66
|
+
_globals['_TEXTGENERATIONSERVICE']._serialized_end=2051
|
|
67
|
+
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_start=2054
|
|
68
|
+
_globals['_TEXTGENERATIONASYNCSERVICE']._serialized_end=2262
|
|
69
|
+
_globals['_TEXTGENERATIONBATCHSERVICE']._serialized_start=2265
|
|
70
|
+
_globals['_TEXTGENERATIONBATCHSERVICE']._serialized_end=2508
|
|
71
|
+
_globals['_TOKENIZERSERVICE']._serialized_start=2511
|
|
72
|
+
_globals['_TOKENIZERSERVICE']._serialized_end=2883
|
|
73
73
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -120,23 +120,39 @@ class BatchCompletionRequest(google.protobuf.message.Message):
|
|
|
120
120
|
MODEL_URI_FIELD_NUMBER: builtins.int
|
|
121
121
|
COMPLETION_OPTIONS_FIELD_NUMBER: builtins.int
|
|
122
122
|
SOURCE_DATASET_ID_FIELD_NUMBER: builtins.int
|
|
123
|
+
JSON_OBJECT_FIELD_NUMBER: builtins.int
|
|
124
|
+
JSON_SCHEMA_FIELD_NUMBER: builtins.int
|
|
123
125
|
model_uri: builtins.str
|
|
124
126
|
"""The [ID of the model](/docs/foundation-models/concepts/yandexgpt/models) to be used for batch completion generation."""
|
|
125
127
|
source_dataset_id: builtins.str
|
|
126
128
|
"""ID of the dataset containing the context for the completion model."""
|
|
129
|
+
json_object: builtins.bool
|
|
130
|
+
"""When set to true, the model will respond with a valid JSON object.
|
|
131
|
+
Be sure to explicitly ask the model for JSON.
|
|
132
|
+
Otherwise, it may generate excessive whitespace and run indefinitely until it reaches the token limit.
|
|
133
|
+
"""
|
|
127
134
|
@property
|
|
128
135
|
def completion_options(self) -> yandex.cloud.ai.foundation_models.v1.text_common_pb2.CompletionOptions:
|
|
129
136
|
"""Configuration options for completion generation."""
|
|
130
137
|
|
|
138
|
+
@property
|
|
139
|
+
def json_schema(self) -> yandex.cloud.ai.foundation_models.v1.text_common_pb2.JsonSchema:
|
|
140
|
+
"""Enforces a specific JSON structure for the model's response based on a provided schema."""
|
|
141
|
+
|
|
131
142
|
def __init__(
|
|
132
143
|
self,
|
|
133
144
|
*,
|
|
134
145
|
model_uri: builtins.str = ...,
|
|
135
146
|
completion_options: yandex.cloud.ai.foundation_models.v1.text_common_pb2.CompletionOptions | None = ...,
|
|
136
147
|
source_dataset_id: builtins.str = ...,
|
|
148
|
+
json_object: builtins.bool = ...,
|
|
149
|
+
json_schema: yandex.cloud.ai.foundation_models.v1.text_common_pb2.JsonSchema | None = ...,
|
|
137
150
|
) -> None: ...
|
|
138
|
-
def HasField(self, field_name: typing.Literal["completion_options", b"completion_options", "request_format", b"request_format", "source_dataset_id", b"source_dataset_id"]) -> builtins.bool: ...
|
|
139
|
-
def ClearField(self, field_name: typing.Literal["completion_options", b"completion_options", "model_uri", b"model_uri", "request_format", b"request_format", "source_dataset_id", b"source_dataset_id"]) -> None: ...
|
|
151
|
+
def HasField(self, field_name: typing.Literal["ResponseFormat", b"ResponseFormat", "completion_options", b"completion_options", "json_object", b"json_object", "json_schema", b"json_schema", "request_format", b"request_format", "source_dataset_id", b"source_dataset_id"]) -> builtins.bool: ...
|
|
152
|
+
def ClearField(self, field_name: typing.Literal["ResponseFormat", b"ResponseFormat", "completion_options", b"completion_options", "json_object", b"json_object", "json_schema", b"json_schema", "model_uri", b"model_uri", "request_format", b"request_format", "source_dataset_id", b"source_dataset_id"]) -> None: ...
|
|
153
|
+
@typing.overload
|
|
154
|
+
def WhichOneof(self, oneof_group: typing.Literal["ResponseFormat", b"ResponseFormat"]) -> typing.Literal["json_object", "json_schema"] | None: ...
|
|
155
|
+
@typing.overload
|
|
140
156
|
def WhichOneof(self, oneof_group: typing.Literal["request_format", b"request_format"]) -> typing.Literal["source_dataset_id"] | None: ...
|
|
141
157
|
|
|
142
158
|
global___BatchCompletionRequest = BatchCompletionRequest
|
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)yandex/cloud/baremetal/v1alpha/disk.proto\x12\x1eyandex.cloud.baremetal.v1alpha\"a\n\x04\x44isk\x12\n\n\x02id\x18\x01 \x01(\t\x12;\n\x04type\x18\x02 \x01(\x0e\x32-.yandex.cloud.baremetal.v1alpha.DiskDriveType\x12\x10\n\x08size_gib\x18\x03 \x01(\x03*
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)yandex/cloud/baremetal/v1alpha/disk.proto\x12\x1eyandex.cloud.baremetal.v1alpha\"a\n\x04\x44isk\x12\n\n\x02id\x18\x01 \x01(\t\x12;\n\x04type\x18\x02 \x01(\x0e\x32-.yandex.cloud.baremetal.v1alpha.DiskDriveType\x12\x10\n\x08size_gib\x18\x03 \x01(\x03*L\n\rDiskDriveType\x12\x1f\n\x1b\x44ISK_DRIVE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03HDD\x10\x01\x12\x07\n\x03SSD\x10\x02\x12\x08\n\x04NVME\x10\x03\x42r\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -33,7 +33,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
34
|
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
35
35
|
_globals['_DISKDRIVETYPE']._serialized_start=176
|
|
36
|
-
_globals['_DISKDRIVETYPE']._serialized_end=
|
|
36
|
+
_globals['_DISKDRIVETYPE']._serialized_end=252
|
|
37
37
|
_globals['_DISK']._serialized_start=77
|
|
38
38
|
_globals['_DISK']._serialized_end=174
|
|
39
39
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -26,9 +26,11 @@ class _DiskDriveTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._
|
|
|
26
26
|
DISK_DRIVE_TYPE_UNSPECIFIED: _DiskDriveType.ValueType # 0
|
|
27
27
|
"""Unspecified disk drive type."""
|
|
28
28
|
HDD: _DiskDriveType.ValueType # 1
|
|
29
|
-
"""Hard disk drive."""
|
|
29
|
+
"""Hard disk drive (magnetic storage)."""
|
|
30
30
|
SSD: _DiskDriveType.ValueType # 2
|
|
31
|
-
"""Solid state drive."""
|
|
31
|
+
"""Solid state drive with SATA/SAS interface."""
|
|
32
|
+
NVME: _DiskDriveType.ValueType # 3
|
|
33
|
+
"""Solid state drive with NVMe interface."""
|
|
32
34
|
|
|
33
35
|
class DiskDriveType(_DiskDriveType, metaclass=_DiskDriveTypeEnumTypeWrapper):
|
|
34
36
|
"""Disk drive type."""
|
|
@@ -36,9 +38,11 @@ class DiskDriveType(_DiskDriveType, metaclass=_DiskDriveTypeEnumTypeWrapper):
|
|
|
36
38
|
DISK_DRIVE_TYPE_UNSPECIFIED: DiskDriveType.ValueType # 0
|
|
37
39
|
"""Unspecified disk drive type."""
|
|
38
40
|
HDD: DiskDriveType.ValueType # 1
|
|
39
|
-
"""Hard disk drive."""
|
|
41
|
+
"""Hard disk drive (magnetic storage)."""
|
|
40
42
|
SSD: DiskDriveType.ValueType # 2
|
|
41
|
-
"""Solid state drive."""
|
|
43
|
+
"""Solid state drive with SATA/SAS interface."""
|
|
44
|
+
NVME: DiskDriveType.ValueType # 3
|
|
45
|
+
"""Solid state drive with NVMe interface."""
|
|
42
46
|
global___DiskDriveType = DiskDriveType
|
|
43
47
|
|
|
44
48
|
@typing.final
|
|
@@ -27,7 +27,7 @@ from yandex.cloud.baremetal.v1alpha import disk_pb2 as yandex_dot_cloud_dot_bare
|
|
|
27
27
|
from yandex.cloud.baremetal.v1alpha import storage_pb2 as yandex_dot_cloud_dot_baremetal_dot_v1alpha_dot_storage__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/baremetal/v1alpha/server.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\x1a)yandex/cloud/baremetal/v1alpha/disk.proto\x1a,yandex/cloud/baremetal/v1alpha/storage.proto\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/baremetal/v1alpha/server.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\x1a)yandex/cloud/baremetal/v1alpha/disk.proto\x1a,yandex/cloud/baremetal/v1alpha/storage.proto\"\xe6\x06\n\x06Server\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x63loud_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x0f\n\x07zone_id\x18\x06 \x01(\t\x12\x18\n\x10hardware_pool_id\x18\x07 \x01(\t\x12=\n\x06status\x18\t \x01(\x0e\x32-.yandex.cloud.baremetal.v1alpha.Server.Status\x12?\n\x0bos_settings\x18\n \x01(\x0b\x32*.yandex.cloud.baremetal.v1alpha.OsSettings\x12L\n\x12network_interfaces\x18\x12 \x03(\x0b\x32\x30.yandex.cloud.baremetal.v1alpha.NetworkInterface\x12\x18\n\x10\x63onfiguration_id\x18\x14 \x01(\t\x12\x33\n\x05\x64isks\x18\x15 \x03(\x0b\x32$.yandex.cloud.baremetal.v1alpha.Disk\x12.\n\ncreated_at\x18\x64 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\xc8\x01 \x03(\x0b\x32\x32.yandex.cloud.baremetal.v1alpha.Server.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd8\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0c\n\x08STOPPING\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x0c\n\x08STARTING\x10\x05\x12\x0e\n\nRESTARTING\x10\x06\x12\t\n\x05\x45RROR\x10\x07\x12\x10\n\x08\x44\x45LETING\x10\x08\x1a\x02\x08\x01\x12\x10\n\x0cREINSTALLING\x10\t\x12\x0c\n\x08UPDATING\x10\n\x12\x0f\n\x0bQUARANTINED\x10\x0c\x12\x0b\n\x07RUNNING\x10\x0e\"\x04\x08\x02\x10\x02\"\x04\x08\x0b\x10\x0b\"\x04\x08\r\x10\rJ\x04\x08\x08\x10\tJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0f\x10\x12J\x04\x08\x13\x10\x14J\x04\x08\x16\x10\x17J\x04\x08\x17\x10\x18J\x04\x08\r\x10\x0eJ\x04\x08\x0e\x10\x0fJ\x04\x08\x18\x10\x64J\x05\x08\x65\x10\xc8\x01\"\x87\x02\n\x10NetworkInterface\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bmac_address\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t\x12W\n\x0eprivate_subnet\x18\x07 \x01(\x0b\x32=.yandex.cloud.baremetal.v1alpha.PrivateSubnetNetworkInterfaceH\x00\x12U\n\rpublic_subnet\x18\x08 \x01(\x0b\x32<.yandex.cloud.baremetal.v1alpha.PublicSubnetNetworkInterfaceH\x00\x42\x08\n\x06subnetJ\x04\x08\x04\x10\x07\":\n\x1dPrivateSubnetNetworkInterface\x12\x19\n\x11private_subnet_id\x18\x01 \x01(\t\"8\n\x1cPublicSubnetNetworkInterface\x12\x18\n\x10public_subnet_id\x18\x01 \x01(\t\"q\n\nOsSettings\x12\x10\n\x08image_id\x18\x01 \x01(\t\x12\x16\n\x0essh_public_key\x18\x02 \x01(\t\x12\x39\n\x08storages\x18\x03 \x03(\x0b\x32\'.yandex.cloud.baremetal.v1alpha.StorageBr\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -37,18 +37,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
37
37
|
_globals['DESCRIPTOR']._serialized_options = b'\n\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetal'
|
|
38
38
|
_globals['_SERVER_LABELSENTRY']._loaded_options = None
|
|
39
39
|
_globals['_SERVER_LABELSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_SERVER_STATUS'].values_by_name["DELETING"]._loaded_options = None
|
|
41
|
+
_globals['_SERVER_STATUS'].values_by_name["DELETING"]._serialized_options = b'\010\001'
|
|
40
42
|
_globals['_SERVER']._serialized_start=202
|
|
41
|
-
_globals['_SERVER']._serialized_end=
|
|
43
|
+
_globals['_SERVER']._serialized_end=1072
|
|
42
44
|
_globals['_SERVER_LABELSENTRY']._serialized_start=741
|
|
43
45
|
_globals['_SERVER_LABELSENTRY']._serialized_end=786
|
|
44
46
|
_globals['_SERVER_STATUS']._serialized_start=789
|
|
45
|
-
_globals['_SERVER_STATUS']._serialized_end=
|
|
46
|
-
_globals['_NETWORKINTERFACE']._serialized_start=
|
|
47
|
-
_globals['_NETWORKINTERFACE']._serialized_end=
|
|
48
|
-
_globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_start=
|
|
49
|
-
_globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_end=
|
|
50
|
-
_globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_start=
|
|
51
|
-
_globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_end=
|
|
52
|
-
_globals['_OSSETTINGS']._serialized_start=
|
|
53
|
-
_globals['_OSSETTINGS']._serialized_end=
|
|
47
|
+
_globals['_SERVER_STATUS']._serialized_end=1005
|
|
48
|
+
_globals['_NETWORKINTERFACE']._serialized_start=1075
|
|
49
|
+
_globals['_NETWORKINTERFACE']._serialized_end=1338
|
|
50
|
+
_globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_start=1340
|
|
51
|
+
_globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_end=1398
|
|
52
|
+
_globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_start=1400
|
|
53
|
+
_globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_end=1456
|
|
54
|
+
_globals['_OSSETTINGS']._serialized_start=1458
|
|
55
|
+
_globals['_OSSETTINGS']._serialized_end=1571
|
|
54
56
|
# @@protoc_insertion_point(module_scope)
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/connectionmanager/v1/clickhouse.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/connectionmanager/v1/clickhouse.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from yandex.cloud.connectionmanager.v1 import common_pb2 as yandex_dot_cloud_dot_connectionmanager_dot_v1_dot_common__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2yandex/cloud/connectionmanager/v1/clickhouse.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"j\n\x0e\x43lickHouseAuth\x12L\n\ruser_password\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00\x42\n\n\x08security\"\x8e\x03\n\x11\x43lickHouseCluster\x12H\n\x05hosts\x18\x06 \x03(\x0b\x32\x39.yandex.cloud.connectionmanager.v1.ClickHouseCluster.Host\x12@\n\ntls_params\x18\x04 \x01(\x0b\x32,.yandex.cloud.connectionmanager.v1.TLSParams\x1a\xe0\x01\n\x04Host\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x11\n\thttp_port\x18\x02 \x01(\x03\x12\x10\n\x08tcp_port\x18\x03 \x01(\x03\x12\x12\n\nshard_name\x18\x04 \x01(\t\x12P\n\x06health\x18\x05 \x01(\x0e\x32@.yandex.cloud.connectionmanager.v1.ClickHouseCluster.Host.Health\"?\n\x06Health\x12\x12\n\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n\x05\x41LIVE\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0c\n\x08\x44\x45GRADED\x10\x03J\x04\x08\x01\x10\x04J\x04\x08\x05\x10\x06\"\xcd\x01\n\x14\x43lickHouseConnection\x12\x45\n\x07\x63luster\x18\x01 \x01(\x0b\x32\x34.yandex.cloud.connectionmanager.v1.ClickHouseCluster\x12\x1a\n\x12managed_cluster_id\x18\x02 \x01(\t\x12?\n\x04\x61uth\x18\x03 \x01(\x0b\x32\x31.yandex.cloud.connectionmanager.v1.ClickHouseAuth\x12\x11\n\tdatabases\x18\x04 \x03(\tB\x80\x01\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.connectionmanager.v1.clickhouse_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanager'
|
|
36
|
+
_globals['_CLICKHOUSEAUTH']._serialized_start=137
|
|
37
|
+
_globals['_CLICKHOUSEAUTH']._serialized_end=243
|
|
38
|
+
_globals['_CLICKHOUSECLUSTER']._serialized_start=246
|
|
39
|
+
_globals['_CLICKHOUSECLUSTER']._serialized_end=644
|
|
40
|
+
_globals['_CLICKHOUSECLUSTER_HOST']._serialized_start=408
|
|
41
|
+
_globals['_CLICKHOUSECLUSTER_HOST']._serialized_end=632
|
|
42
|
+
_globals['_CLICKHOUSECLUSTER_HOST_HEALTH']._serialized_start=569
|
|
43
|
+
_globals['_CLICKHOUSECLUSTER_HOST_HEALTH']._serialized_end=632
|
|
44
|
+
_globals['_CLICKHOUSECONNECTION']._serialized_start=647
|
|
45
|
+
_globals['_CLICKHOUSECONNECTION']._serialized_end=852
|
|
46
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import sys
|
|
13
|
+
import typing
|
|
14
|
+
import yandex.cloud.connectionmanager.v1.common_pb2
|
|
15
|
+
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class ClickHouseAuth(google.protobuf.message.Message):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
26
|
+
|
|
27
|
+
USER_PASSWORD_FIELD_NUMBER: builtins.int
|
|
28
|
+
@property
|
|
29
|
+
def user_password(self) -> yandex.cloud.connectionmanager.v1.common_pb2.UserPasswordAuth: ...
|
|
30
|
+
def __init__(
|
|
31
|
+
self,
|
|
32
|
+
*,
|
|
33
|
+
user_password: yandex.cloud.connectionmanager.v1.common_pb2.UserPasswordAuth | None = ...,
|
|
34
|
+
) -> None: ...
|
|
35
|
+
def HasField(self, field_name: typing.Literal["security", b"security", "user_password", b"user_password"]) -> builtins.bool: ...
|
|
36
|
+
def ClearField(self, field_name: typing.Literal["security", b"security", "user_password", b"user_password"]) -> None: ...
|
|
37
|
+
def WhichOneof(self, oneof_group: typing.Literal["security", b"security"]) -> typing.Literal["user_password"] | None: ...
|
|
38
|
+
|
|
39
|
+
global___ClickHouseAuth = ClickHouseAuth
|
|
40
|
+
|
|
41
|
+
@typing.final
|
|
42
|
+
class ClickHouseCluster(google.protobuf.message.Message):
|
|
43
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
44
|
+
|
|
45
|
+
@typing.final
|
|
46
|
+
class Host(google.protobuf.message.Message):
|
|
47
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
48
|
+
|
|
49
|
+
class _Health:
|
|
50
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
51
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
52
|
+
|
|
53
|
+
class _HealthEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ClickHouseCluster.Host._Health.ValueType], builtins.type):
|
|
54
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
55
|
+
HEALTH_UNKNOWN: ClickHouseCluster.Host._Health.ValueType # 0
|
|
56
|
+
ALIVE: ClickHouseCluster.Host._Health.ValueType # 1
|
|
57
|
+
DEAD: ClickHouseCluster.Host._Health.ValueType # 2
|
|
58
|
+
DEGRADED: ClickHouseCluster.Host._Health.ValueType # 3
|
|
59
|
+
|
|
60
|
+
class Health(_Health, metaclass=_HealthEnumTypeWrapper): ...
|
|
61
|
+
HEALTH_UNKNOWN: ClickHouseCluster.Host.Health.ValueType # 0
|
|
62
|
+
ALIVE: ClickHouseCluster.Host.Health.ValueType # 1
|
|
63
|
+
DEAD: ClickHouseCluster.Host.Health.ValueType # 2
|
|
64
|
+
DEGRADED: ClickHouseCluster.Host.Health.ValueType # 3
|
|
65
|
+
|
|
66
|
+
HOST_FIELD_NUMBER: builtins.int
|
|
67
|
+
HTTP_PORT_FIELD_NUMBER: builtins.int
|
|
68
|
+
TCP_PORT_FIELD_NUMBER: builtins.int
|
|
69
|
+
SHARD_NAME_FIELD_NUMBER: builtins.int
|
|
70
|
+
HEALTH_FIELD_NUMBER: builtins.int
|
|
71
|
+
host: builtins.str
|
|
72
|
+
http_port: builtins.int
|
|
73
|
+
"""depends on tls params may vary as http or https"""
|
|
74
|
+
tcp_port: builtins.int
|
|
75
|
+
shard_name: builtins.str
|
|
76
|
+
health: global___ClickHouseCluster.Host.Health.ValueType
|
|
77
|
+
def __init__(
|
|
78
|
+
self,
|
|
79
|
+
*,
|
|
80
|
+
host: builtins.str = ...,
|
|
81
|
+
http_port: builtins.int = ...,
|
|
82
|
+
tcp_port: builtins.int = ...,
|
|
83
|
+
shard_name: builtins.str = ...,
|
|
84
|
+
health: global___ClickHouseCluster.Host.Health.ValueType = ...,
|
|
85
|
+
) -> None: ...
|
|
86
|
+
def ClearField(self, field_name: typing.Literal["health", b"health", "host", b"host", "http_port", b"http_port", "shard_name", b"shard_name", "tcp_port", b"tcp_port"]) -> None: ...
|
|
87
|
+
|
|
88
|
+
HOSTS_FIELD_NUMBER: builtins.int
|
|
89
|
+
TLS_PARAMS_FIELD_NUMBER: builtins.int
|
|
90
|
+
@property
|
|
91
|
+
def hosts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ClickHouseCluster.Host]: ...
|
|
92
|
+
@property
|
|
93
|
+
def tls_params(self) -> yandex.cloud.connectionmanager.v1.common_pb2.TLSParams: ...
|
|
94
|
+
def __init__(
|
|
95
|
+
self,
|
|
96
|
+
*,
|
|
97
|
+
hosts: collections.abc.Iterable[global___ClickHouseCluster.Host] | None = ...,
|
|
98
|
+
tls_params: yandex.cloud.connectionmanager.v1.common_pb2.TLSParams | None = ...,
|
|
99
|
+
) -> None: ...
|
|
100
|
+
def HasField(self, field_name: typing.Literal["tls_params", b"tls_params"]) -> builtins.bool: ...
|
|
101
|
+
def ClearField(self, field_name: typing.Literal["hosts", b"hosts", "tls_params", b"tls_params"]) -> None: ...
|
|
102
|
+
|
|
103
|
+
global___ClickHouseCluster = ClickHouseCluster
|
|
104
|
+
|
|
105
|
+
@typing.final
|
|
106
|
+
class ClickHouseConnection(google.protobuf.message.Message):
|
|
107
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
108
|
+
|
|
109
|
+
CLUSTER_FIELD_NUMBER: builtins.int
|
|
110
|
+
MANAGED_CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
111
|
+
AUTH_FIELD_NUMBER: builtins.int
|
|
112
|
+
DATABASES_FIELD_NUMBER: builtins.int
|
|
113
|
+
managed_cluster_id: builtins.str
|
|
114
|
+
"""When creating/updating Connection, the field "managed_cluster_id" is
|
|
115
|
+
mutually exclusive with "cluster".
|
|
116
|
+
"""
|
|
117
|
+
@property
|
|
118
|
+
def cluster(self) -> global___ClickHouseCluster:
|
|
119
|
+
"""When creating/updating Connection, the field "cluster" is mutually
|
|
120
|
+
exclusive with "managed_cluster_id".
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def auth(self) -> global___ClickHouseAuth: ...
|
|
125
|
+
@property
|
|
126
|
+
def databases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
127
|
+
def __init__(
|
|
128
|
+
self,
|
|
129
|
+
*,
|
|
130
|
+
cluster: global___ClickHouseCluster | None = ...,
|
|
131
|
+
managed_cluster_id: builtins.str = ...,
|
|
132
|
+
auth: global___ClickHouseAuth | None = ...,
|
|
133
|
+
databases: collections.abc.Iterable[builtins.str] | None = ...,
|
|
134
|
+
) -> None: ...
|
|
135
|
+
def HasField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster"]) -> builtins.bool: ...
|
|
136
|
+
def ClearField(self, field_name: typing.Literal["auth", b"auth", "cluster", b"cluster", "databases", b"databases", "managed_cluster_id", b"managed_cluster_id"]) -> None: ...
|
|
137
|
+
|
|
138
|
+
global___ClickHouseConnection = ClickHouseConnection
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -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
|
+
...
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/connectionmanager/v1/common.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/connectionmanager/v1/common.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
26
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/connectionmanager/v1/common.proto\x12!yandex.cloud.connectionmanager.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x80\x01\n\tTLSParams\x12*\n\x08\x64isabled\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12;\n\x03tls\x18\x02 \x01(\x0b\x32,.yandex.cloud.connectionmanager.v1.TLSConfigH\x00\x42\n\n\x08tls_mode\"#\n\tTLSConfig\x12\x16\n\x0e\x63\x61_certificate\x18\x01 \x01(\t\"\xa6\x01\n\x08Password\x12\x0b\n\x03raw\x18\x01 \x01(\t\x12\x61\n\x1bpassword_generation_options\x18\x03 \x01(\x0b\x32<.yandex.cloud.connectionmanager.v1.PasswordGenerationOptions\x12\x1c\n\x12lockbox_secret_key\x18\x02 \x01(\tH\x00\x42\x0c\n\nsecret_key\"\xbe\x01\n\x19PasswordGenerationOptions\x12\x0e\n\x06\x63ookie\x18\x01 \x01(\t\x12r\n#lockbox_password_generation_options\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.connectionmanager.v1.LockboxPasswordGenerationOptionsH\x00\x42\x1d\n\x1bpassword_generation_options\"\xcf\x02\n LockboxPasswordGenerationOptions\x12\x0e\n\x06length\x18\x02 \x01(\x03\x12\x35\n\x11include_uppercase\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x11include_lowercase\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x32\n\x0einclude_digits\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x37\n\x13include_punctuation\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1c\n\x14included_punctuation\x18\x07 \x01(\t\x12\x1c\n\x14\x65xcluded_punctuation\x18\x08 \x01(\tJ\x04\x08\x01\x10\x02\"_\n\x10UserPasswordAuth\x12\x0c\n\x04user\x18\x01 \x01(\t\x12=\n\x08password\x18\x02 \x01(\x0b\x32+.yandex.cloud.connectionmanager.v1.PasswordB\x80\x01\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.connectionmanager.v1.common_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanager'
|
|
37
|
+
_globals['_TLSPARAMS']._serialized_start=147
|
|
38
|
+
_globals['_TLSPARAMS']._serialized_end=275
|
|
39
|
+
_globals['_TLSCONFIG']._serialized_start=277
|
|
40
|
+
_globals['_TLSCONFIG']._serialized_end=312
|
|
41
|
+
_globals['_PASSWORD']._serialized_start=315
|
|
42
|
+
_globals['_PASSWORD']._serialized_end=481
|
|
43
|
+
_globals['_PASSWORDGENERATIONOPTIONS']._serialized_start=484
|
|
44
|
+
_globals['_PASSWORDGENERATIONOPTIONS']._serialized_end=674
|
|
45
|
+
_globals['_LOCKBOXPASSWORDGENERATIONOPTIONS']._serialized_start=677
|
|
46
|
+
_globals['_LOCKBOXPASSWORDGENERATIONOPTIONS']._serialized_end=1012
|
|
47
|
+
_globals['_USERPASSWORDAUTH']._serialized_start=1014
|
|
48
|
+
_globals['_USERPASSWORDAUTH']._serialized_end=1109
|
|
49
|
+
# @@protoc_insertion_point(module_scope)
|