yandexcloud 0.352.0__py3-none-any.whl → 0.353.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.

Files changed (72) hide show
  1. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.py +18 -18
  2. yandex/cloud/ai/foundation_models/v1/text_generation/text_generation_service_pb2.pyi +18 -2
  3. yandex/cloud/baremetal/v1alpha/server_pb2.py +13 -11
  4. yandex/cloud/connectionmanager/__init__.py +0 -0
  5. yandex/cloud/connectionmanager/v1/__init__.py +0 -0
  6. yandex/cloud/connectionmanager/v1/clickhouse_pb2.py +46 -0
  7. yandex/cloud/connectionmanager/v1/clickhouse_pb2.pyi +138 -0
  8. yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.py +24 -0
  9. yandex/cloud/connectionmanager/v1/clickhouse_pb2_grpc.pyi +17 -0
  10. yandex/cloud/connectionmanager/v1/common_pb2.py +49 -0
  11. yandex/cloud/connectionmanager/v1/common_pb2.pyi +187 -0
  12. yandex/cloud/connectionmanager/v1/common_pb2_grpc.py +24 -0
  13. yandex/cloud/connectionmanager/v1/common_pb2_grpc.pyi +17 -0
  14. yandex/cloud/connectionmanager/v1/connection_pb2.py +58 -0
  15. yandex/cloud/connectionmanager/v1/connection_pb2.pyi +205 -0
  16. yandex/cloud/connectionmanager/v1/connection_pb2_grpc.py +24 -0
  17. yandex/cloud/connectionmanager/v1/connection_pb2_grpc.pyi +17 -0
  18. yandex/cloud/connectionmanager/v1/connection_service_pb2.py +91 -0
  19. yandex/cloud/connectionmanager/v1/connection_service_pb2.pyi +320 -0
  20. yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.py +362 -0
  21. yandex/cloud/connectionmanager/v1/connection_service_pb2_grpc.pyi +163 -0
  22. yandex/cloud/connectionmanager/v1/greenplum_pb2.py +48 -0
  23. yandex/cloud/connectionmanager/v1/greenplum_pb2.pyi +151 -0
  24. yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.py +24 -0
  25. yandex/cloud/connectionmanager/v1/greenplum_pb2_grpc.pyi +17 -0
  26. yandex/cloud/connectionmanager/v1/mongodb_pb2.py +50 -0
  27. yandex/cloud/connectionmanager/v1/mongodb_pb2.pyi +169 -0
  28. yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.py +24 -0
  29. yandex/cloud/connectionmanager/v1/mongodb_pb2_grpc.pyi +17 -0
  30. yandex/cloud/connectionmanager/v1/mysql_pb2.py +48 -0
  31. yandex/cloud/connectionmanager/v1/mysql_pb2.pyi +151 -0
  32. yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.py +24 -0
  33. yandex/cloud/connectionmanager/v1/mysql_pb2_grpc.pyi +17 -0
  34. yandex/cloud/connectionmanager/v1/opensearch_pb2.py +48 -0
  35. yandex/cloud/connectionmanager/v1/opensearch_pb2.pyi +148 -0
  36. yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.py +24 -0
  37. yandex/cloud/connectionmanager/v1/opensearch_pb2_grpc.pyi +17 -0
  38. yandex/cloud/connectionmanager/v1/package_options_pb2.py +35 -0
  39. yandex/cloud/connectionmanager/v1/package_options_pb2.pyi +8 -0
  40. yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.py +24 -0
  41. yandex/cloud/connectionmanager/v1/package_options_pb2_grpc.pyi +17 -0
  42. yandex/cloud/connectionmanager/v1/postgresql_pb2.py +50 -0
  43. yandex/cloud/connectionmanager/v1/postgresql_pb2.pyi +171 -0
  44. yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.py +24 -0
  45. yandex/cloud/connectionmanager/v1/postgresql_pb2_grpc.pyi +17 -0
  46. yandex/cloud/connectionmanager/v1/redis_pb2.py +50 -0
  47. yandex/cloud/connectionmanager/v1/redis_pb2.pyi +163 -0
  48. yandex/cloud/connectionmanager/v1/redis_pb2_grpc.py +24 -0
  49. yandex/cloud/connectionmanager/v1/redis_pb2_grpc.pyi +17 -0
  50. yandex/cloud/connectionmanager/v1/trino_pb2.py +44 -0
  51. yandex/cloud/connectionmanager/v1/trino_pb2.pyi +88 -0
  52. yandex/cloud/connectionmanager/v1/trino_pb2_grpc.py +24 -0
  53. yandex/cloud/connectionmanager/v1/trino_pb2_grpc.pyi +17 -0
  54. yandex/cloud/connectionmanager/v1/valkey_pb2.py +50 -0
  55. yandex/cloud/connectionmanager/v1/valkey_pb2.pyi +173 -0
  56. yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.py +24 -0
  57. yandex/cloud/connectionmanager/v1/valkey_pb2_grpc.pyi +17 -0
  58. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.py +94 -76
  59. yandex/cloud/mdb/mongodb/v1/config/mongodb_pb2.pyi +239 -14
  60. yandex/cloud/organizationmanager/v1/saml/federation_pb2.py +17 -3
  61. yandex/cloud/organizationmanager/v1/saml/federation_pb2.pyi +209 -0
  62. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.py +55 -3
  63. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2.pyi +231 -0
  64. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.py +222 -0
  65. yandex/cloud/organizationmanager/v1/saml/federation_service_pb2_grpc.pyi +109 -0
  66. yandexcloud/__init__.py +1 -1
  67. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.0.dist-info}/METADATA +1 -1
  68. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.0.dist-info}/RECORD +72 -18
  69. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.0.dist-info}/AUTHORS +0 -0
  70. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.0.dist-info}/LICENSE +0 -0
  71. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.0.dist-info}/WHEEL +0 -0
  72. {yandexcloud-0.352.0.dist-info → yandexcloud-0.353.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\"\xaf\x01\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\x42\x10\n\x0erequest_format\"\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')
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=1242
57
- _globals['_BATCHCOMPLETIONMETADATA']._serialized_start=1245
58
- _globals['_BATCHCOMPLETIONMETADATA']._serialized_end=1422
59
- _globals['_BATCHCOMPLETIONRESPONSE']._serialized_start=1425
60
- _globals['_BATCHCOMPLETIONRESPONSE']._serialized_end=1579
61
- _globals['_TOKENIZEREQUEST']._serialized_start=1581
62
- _globals['_TOKENIZEREQUEST']._serialized_end=1631
63
- _globals['_TOKENIZERESPONSE']._serialized_start=1633
64
- _globals['_TOKENIZERESPONSE']._serialized_end=1735
65
- _globals['_TEXTGENERATIONSERVICE']._serialized_start=1738
66
- _globals['_TEXTGENERATIONSERVICE']._serialized_end=1937
67
- _globals['_TEXTGENERATIONASYNCSERVICE']._serialized_start=1940
68
- _globals['_TEXTGENERATIONASYNCSERVICE']._serialized_end=2148
69
- _globals['_TEXTGENERATIONBATCHSERVICE']._serialized_start=2151
70
- _globals['_TEXTGENERATIONBATCHSERVICE']._serialized_end=2394
71
- _globals['_TOKENIZERSERVICE']._serialized_start=2397
72
- _globals['_TOKENIZERSERVICE']._serialized_end=2769
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
@@ -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\"\xe2\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\"\xd4\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\x0c\n\x08\x44\x45LETING\x10\x08\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')
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=1068
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=1001
46
- _globals['_NETWORKINTERFACE']._serialized_start=1071
47
- _globals['_NETWORKINTERFACE']._serialized_end=1334
48
- _globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_start=1336
49
- _globals['_PRIVATESUBNETNETWORKINTERFACE']._serialized_end=1394
50
- _globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_start=1396
51
- _globals['_PUBLICSUBNETNETWORKINTERFACE']._serialized_end=1452
52
- _globals['_OSSETTINGS']._serialized_start=1454
53
- _globals['_OSSETTINGS']._serialized_end=1567
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)
@@ -0,0 +1,187 @@
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.empty_pb2
9
+ import google.protobuf.message
10
+ import google.protobuf.wrappers_pb2
11
+ import typing
12
+
13
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
14
+
15
+ @typing.final
16
+ class TLSParams(google.protobuf.message.Message):
17
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
18
+
19
+ DISABLED_FIELD_NUMBER: builtins.int
20
+ TLS_FIELD_NUMBER: builtins.int
21
+ @property
22
+ def disabled(self) -> google.protobuf.empty_pb2.Empty: ...
23
+ @property
24
+ def tls(self) -> global___TLSConfig: ...
25
+ def __init__(
26
+ self,
27
+ *,
28
+ disabled: google.protobuf.empty_pb2.Empty | None = ...,
29
+ tls: global___TLSConfig | None = ...,
30
+ ) -> None: ...
31
+ def HasField(self, field_name: typing.Literal["disabled", b"disabled", "tls", b"tls", "tls_mode", b"tls_mode"]) -> builtins.bool: ...
32
+ def ClearField(self, field_name: typing.Literal["disabled", b"disabled", "tls", b"tls", "tls_mode", b"tls_mode"]) -> None: ...
33
+ def WhichOneof(self, oneof_group: typing.Literal["tls_mode", b"tls_mode"]) -> typing.Literal["disabled", "tls"] | None: ...
34
+
35
+ global___TLSParams = TLSParams
36
+
37
+ @typing.final
38
+ class TLSConfig(google.protobuf.message.Message):
39
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
40
+
41
+ CA_CERTIFICATE_FIELD_NUMBER: builtins.int
42
+ ca_certificate: builtins.str
43
+ def __init__(
44
+ self,
45
+ *,
46
+ ca_certificate: builtins.str = ...,
47
+ ) -> None: ...
48
+ def ClearField(self, field_name: typing.Literal["ca_certificate", b"ca_certificate"]) -> None: ...
49
+
50
+ global___TLSConfig = TLSConfig
51
+
52
+ @typing.final
53
+ class Password(google.protobuf.message.Message):
54
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
55
+
56
+ RAW_FIELD_NUMBER: builtins.int
57
+ PASSWORD_GENERATION_OPTIONS_FIELD_NUMBER: builtins.int
58
+ LOCKBOX_SECRET_KEY_FIELD_NUMBER: builtins.int
59
+ raw: builtins.str
60
+ """When creating/updating Password, the field "raw" is mutually exclusive
61
+ with "password_generation_options". In order to switch to the "raw"
62
+ password you have to explicitly clear the "password_generation_options"
63
+ field.
64
+ """
65
+ lockbox_secret_key: builtins.str
66
+ """Read-only. Do not fill this field in create/update requests."""
67
+ @property
68
+ def password_generation_options(self) -> global___PasswordGenerationOptions:
69
+ """When creating/updating Password, the field "password_generation_options"
70
+ is mutually exclusive with "raw". In order to switch to the
71
+ "password_generation_options" you have to explicitly clear the "raw"
72
+ field.
73
+ """
74
+
75
+ def __init__(
76
+ self,
77
+ *,
78
+ raw: builtins.str = ...,
79
+ password_generation_options: global___PasswordGenerationOptions | None = ...,
80
+ lockbox_secret_key: builtins.str = ...,
81
+ ) -> None: ...
82
+ def HasField(self, field_name: typing.Literal["lockbox_secret_key", b"lockbox_secret_key", "password_generation_options", b"password_generation_options", "secret_key", b"secret_key"]) -> builtins.bool: ...
83
+ def ClearField(self, field_name: typing.Literal["lockbox_secret_key", b"lockbox_secret_key", "password_generation_options", b"password_generation_options", "raw", b"raw", "secret_key", b"secret_key"]) -> None: ...
84
+ def WhichOneof(self, oneof_group: typing.Literal["secret_key", b"secret_key"]) -> typing.Literal["lockbox_secret_key"] | None: ...
85
+
86
+ global___Password = Password
87
+
88
+ @typing.final
89
+ class PasswordGenerationOptions(google.protobuf.message.Message):
90
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
91
+
92
+ COOKIE_FIELD_NUMBER: builtins.int
93
+ LOCKBOX_PASSWORD_GENERATION_OPTIONS_FIELD_NUMBER: builtins.int
94
+ cookie: builtins.str
95
+ """Cookie is an arbitrary non-sensitive string that is saved with the
96
+ password. When updating PasswordGenerationOptions, if the cookie passed
97
+ in the update request differs from the cookie in the current
98
+ PasswordGenerationOptions, the password will be re-generated. If the
99
+ same cookie is passed, the password will not change.
100
+ """
101
+ @property
102
+ def lockbox_password_generation_options(self) -> global___LockboxPasswordGenerationOptions: ...
103
+ def __init__(
104
+ self,
105
+ *,
106
+ cookie: builtins.str = ...,
107
+ lockbox_password_generation_options: global___LockboxPasswordGenerationOptions | None = ...,
108
+ ) -> None: ...
109
+ def HasField(self, field_name: typing.Literal["lockbox_password_generation_options", b"lockbox_password_generation_options", "password_generation_options", b"password_generation_options"]) -> builtins.bool: ...
110
+ def ClearField(self, field_name: typing.Literal["cookie", b"cookie", "lockbox_password_generation_options", b"lockbox_password_generation_options", "password_generation_options", b"password_generation_options"]) -> None: ...
111
+ def WhichOneof(self, oneof_group: typing.Literal["password_generation_options", b"password_generation_options"]) -> typing.Literal["lockbox_password_generation_options"] | None: ...
112
+
113
+ global___PasswordGenerationOptions = PasswordGenerationOptions
114
+
115
+ @typing.final
116
+ class LockboxPasswordGenerationOptions(google.protobuf.message.Message):
117
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
118
+
119
+ LENGTH_FIELD_NUMBER: builtins.int
120
+ INCLUDE_UPPERCASE_FIELD_NUMBER: builtins.int
121
+ INCLUDE_LOWERCASE_FIELD_NUMBER: builtins.int
122
+ INCLUDE_DIGITS_FIELD_NUMBER: builtins.int
123
+ INCLUDE_PUNCTUATION_FIELD_NUMBER: builtins.int
124
+ INCLUDED_PUNCTUATION_FIELD_NUMBER: builtins.int
125
+ EXCLUDED_PUNCTUATION_FIELD_NUMBER: builtins.int
126
+ length: builtins.int
127
+ """password length; by default, a reasonable length will be decided"""
128
+ included_punctuation: builtins.str
129
+ """If include_punctuation is true, one of these two fields (not both) may be used optionally to customize the punctuation:
130
+ a string of specific punctuation characters to use
131
+ """
132
+ excluded_punctuation: builtins.str
133
+ """a string of punctuation characters to exclude from the default"""
134
+ @property
135
+ def include_uppercase(self) -> google.protobuf.wrappers_pb2.BoolValue:
136
+ """whether at least one A..Z character is included in the password, true by default"""
137
+
138
+ @property
139
+ def include_lowercase(self) -> google.protobuf.wrappers_pb2.BoolValue:
140
+ """whether at least one a..z character is included in the password, true by default"""
141
+
142
+ @property
143
+ def include_digits(self) -> google.protobuf.wrappers_pb2.BoolValue:
144
+ """whether at least one 0..9 character is included in the password, true by default"""
145
+
146
+ @property
147
+ def include_punctuation(self) -> google.protobuf.wrappers_pb2.BoolValue:
148
+ """whether at least one punctuation character is included in the password, true by default
149
+ punctuation characters by default: !"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~
150
+ to customize the punctuation characters, see included_punctuation and excluded_punctuation below
151
+ """
152
+
153
+ def __init__(
154
+ self,
155
+ *,
156
+ length: builtins.int = ...,
157
+ include_uppercase: google.protobuf.wrappers_pb2.BoolValue | None = ...,
158
+ include_lowercase: google.protobuf.wrappers_pb2.BoolValue | None = ...,
159
+ include_digits: google.protobuf.wrappers_pb2.BoolValue | None = ...,
160
+ include_punctuation: google.protobuf.wrappers_pb2.BoolValue | None = ...,
161
+ included_punctuation: builtins.str = ...,
162
+ excluded_punctuation: builtins.str = ...,
163
+ ) -> None: ...
164
+ def HasField(self, field_name: typing.Literal["include_digits", b"include_digits", "include_lowercase", b"include_lowercase", "include_punctuation", b"include_punctuation", "include_uppercase", b"include_uppercase"]) -> builtins.bool: ...
165
+ def ClearField(self, field_name: typing.Literal["excluded_punctuation", b"excluded_punctuation", "include_digits", b"include_digits", "include_lowercase", b"include_lowercase", "include_punctuation", b"include_punctuation", "include_uppercase", b"include_uppercase", "included_punctuation", b"included_punctuation", "length", b"length"]) -> None: ...
166
+
167
+ global___LockboxPasswordGenerationOptions = LockboxPasswordGenerationOptions
168
+
169
+ @typing.final
170
+ class UserPasswordAuth(google.protobuf.message.Message):
171
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
172
+
173
+ USER_FIELD_NUMBER: builtins.int
174
+ PASSWORD_FIELD_NUMBER: builtins.int
175
+ user: builtins.str
176
+ @property
177
+ def password(self) -> global___Password: ...
178
+ def __init__(
179
+ self,
180
+ *,
181
+ user: builtins.str = ...,
182
+ password: global___Password | None = ...,
183
+ ) -> None: ...
184
+ def HasField(self, field_name: typing.Literal["password", b"password"]) -> builtins.bool: ...
185
+ def ClearField(self, field_name: typing.Literal["password", b"password", "user", b"user"]) -> None: ...
186
+
187
+ global___UserPasswordAuth = UserPasswordAuth